]> git.baikalelectronics.ru Git - kernel.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)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 12 Feb 2020 11:34:09 +0000 (12:34 +0100)
commit479e43265362f3f76c9ae7ddabb98361f9b3b40e
tree149e0e42b2faea4c31780c9c6641afbf89be552b
parentfbc4937d916b97e614927d1a65fa26397dc5196a
KVM: nVMX: Handle pending #DB when injecting INIT VM-exit

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: ea39328e11ab ("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>
arch/x86/kvm/vmx/nested.c