]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: nVMX: Handle pending #DB when injecting INIT VM-exit
authorOliver Upton <oupton@google.com>
Fri, 7 Feb 2020 10:36:05 +0000 (02:36 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Feb 2020 18:54:12 +0000 (19:54 +0100)
commitceb720324ef7611d6f963cf3f4eb0135abe8b2ee
tree93124bf4d6c56e2564a9fbc854ee886e44d9001d
parentc289fca8bd8e6742be7c3f92a60d7fa756202457
KVM: nVMX: Handle pending #DB when injecting INIT VM-exit

commit 684c0422da71da0cd81319c90b8099b563b13da4 upstream.

SDM 27.3.4 states that the 'pending debug exceptions' VMCS field will
be populated if a VM-exit caused by an INIT signal takes priority over a
debug-trap. Emulate this behavior when synthesizing an INIT signal
VM-exit into L1.

Fixes: 4b9852f4f389 ("KVM: x86: Fix INIT signal handling in various CPU states")
Signed-off-by: Oliver Upton <oupton@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/vmx/nested.c