OSDN Git Service

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)
commit684c0422da71da0cd81319c90b8099b563b13da4
tree149e0e42b2faea4c31780c9c6641afbf89be552b
parent307f1cfa269657c63cfe2c932386fcc24684d9dd
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: 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>
arch/x86/kvm/vmx/nested.c