]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6778f547971f4aa51f9b8e17cb393360cbb359d7
treeb3f4e6ed57a6deccd8829bbf72ce649b7822a1c5
parent50f77b755f305e8eb41d22c52c2fe8990e74758b
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