Patch "KVM: VMX: handle PML full VMEXIT that occurs during event delivery" has been added to the 4.4-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
KVM: VMX: handle PML full VMEXIT that occurs during event delivery
to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
kvm-vmx-handle-pml-full-vmexit-that-occurs-during-event-delivery.patch
and it can be found in the queue-4.4 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
b244c9fc251e14a083a1cbf04bef10bd99303a76Mon Sep 17 00:00:00 2001
From: "Cao, Lei" <[email protected]>
Date: Fri, 15 Jul 2016 13:54:04 +0000
Subject: KVM: VMX: handle PML full VMEXIT that occurs during event delivery
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
From: Cao, Lei <[email protected]>
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.
--- arch/x86/kvm/vmx.c | 1 + 1 file changed, 1 insertion(+)
arch/x86/kvm/vmx.c +1 -0
@@ -8124,6 +8124,7 @@ static int vmx_handle_exit(struct kvm_vcif ((vectoring_info &VECTORING_INFO_VALID_MASK ) && (exit_reason !=EXIT_REASON_EXCEPTION_NMI && exit_reason !=EXIT_REASON_EPT_VIOLATION && + exit_reason !=EXIT_REASON_PML_FULL && exit_reason !=EXIT_REASON_TASK_SWITCH )) { vcpu->run->exit_reason =KVM_EXIT_INTERNAL_ERROR ; vcpu->run->internal.suberror =KVM_INTERNAL_ERROR_DELIVERY_EV ;
Patches currently in stable-queue which might be from [email protected] are
queue-4.4/kvm-vmx-handle-pml-full-vmexit-that-occurs-during-event-delivery.patch