KVM: nVMX: Don't halt vcpu when L1 is injecting events to L2
authorChao Gao <chao.gao@intel.com>
Sun, 11 Feb 2018 02:06:30 +0000 (10:06 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 24 Feb 2018 00:43:37 +0000 (01:43 +0100)
commit135a06c3a515bbd17729eb04f4f26316d48363d7
treeb3f4e6ed57a6deccd8829bbf72ce649b7822a1c5
parentb28676bb8ae4569cced423dc2a88f7cb319d5379
KVM: nVMX: Don't halt vcpu when L1 is injecting events to L2

Although L2 is in halt state, it will be in the active state after
VM entry if the VM entry is vectoring according to SDM 26.6.2 Activity
State. Halting the vcpu here means the event won't be injected to L2
and this decision isn't reported to L1. Thus L0 drops an event that
should be injected to L2.

Cc: Liran Alon <liran.alon@oracle.com>
Reviewed-by: Liran Alon <liran.alon@oracle.com>
Signed-off-by: Chao Gao <chao.gao@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c