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)
committerSasha Levin <alexander.levin@verizon.com>
Sat, 20 Aug 2016 03:07:58 +0000 (23:07 -0400)
commit5436aa6c963c736d49ff256ce51f632d2a65f6d0
treeef202fb56af342f8c536375e4bef504a57fbb0b6
parentaef1e06da0d03039075d4b5ae8ff95b1a856c8ba
KVM: VMX: handle PML full VMEXIT that occurs during event delivery

[ Upstream commit b244c9fc251e14a083a1cbf04bef10bd99303a76 ]

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>
Cc: stable@vger.kernel.org
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: Sasha Levin <alexander.levin@verizon.com>
arch/x86/kvm/vmx.c