]> 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)
commit3c3d47b3e6c4275f57e43cd43c60306f1980e9fe
treeb3f4e6ed57a6deccd8829bbf72ce649b7822a1c5
parentb61d0f88aaa9bff1ea84dd09eb50885a39d3afbe
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