Skip to content

Commit b244c9f

Browse files
lcao8rkrcmar
authored andcommitted
KVM: VMX: handle PML full VMEXIT that occurs during event delivery
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 <[email protected]> Cc: [email protected] Fixes: 843e433 ("KVM: VMX: Add PML support in VMX") [Shortened the summary and Cc'd stable.] Signed-off-by: Radim Krčmář <[email protected]>
1 parent 6a907cd commit b244c9f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/x86/kvm/vmx.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8214,6 +8214,7 @@ static int vmx_handle_exit(struct kvm_vcpu *vcpu)
82148214
if ((vectoring_info & VECTORING_INFO_VALID_MASK) &&
82158215
(exit_reason != EXIT_REASON_EXCEPTION_NMI &&
82168216
exit_reason != EXIT_REASON_EPT_VIOLATION &&
8217+
exit_reason != EXIT_REASON_PML_FULL &&
82178218
exit_reason != EXIT_REASON_TASK_SWITCH)) {
82188219
vcpu->run->exit_reason = KVM_EXIT_INTERNAL_ERROR;
82198220
vcpu->run->internal.suberror = KVM_INTERNAL_ERROR_DELIVERY_EV;

0 commit comments

Comments
 (0)