KVM: VMX: handle PML full VMEXIT that occurs during event delivery
authorCao, Lei <Lei.Cao@stratus.com>
Fri, 15 Jul 2016 13:54:04 +0000 (13:54 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Aug 2016 16:09:17 +0000 (18:09 +0200)
commit6bd2820f906f75c4a05484a5b446e50a1f1b0e34
tree2dd824a04e7f24cf51669bc914b4661fea5fc4f7
parentb9ab0b3614fca6b363b2f2cfa918e7b7f74592ea
KVM: VMX: handle PML full VMEXIT that occurs during event delivery

commit b244c9fc251e14a083a1cbf04bef10bd99303a76 upstream.

With PML enabled, guest will shut down if a PML full VMEXIT occurs during
event delivery. According to Intel SDM 27.2.3, PML full VMEXIT can occur when
event is being delivered through IDT, so KVM should not exit to user space
with error. Instead, it should let EXIT_REASON_PML_FULL go through and the
event will be re-injected on the next VMENTRY.

Signed-off-by: Lei Cao <lei.cao@stratus.com>
Fixes: 843e4330573c ("KVM: VMX: Add PML support in VMX")
[Shortened the summary and Cc'd stable.]
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/vmx.c