Skip to content

Commit 99b82a1

Browse files
Wanpeng Libonzini
authored andcommitted
KVM: VMX: Don't freeze guest when event delivery causes an APIC-access exit
According to SDM 27.2.4, Event delivery causes an APIC-access VM exit. Don't report internal error and freeze guest when event delivery causes an APIC-access exit, it is handleable and the event will be re-injected during the next vmentry. Signed-off-by: Wanpeng Li <wanpengli@tencent.com> Message-Id: <1597827327-25055-2-git-send-email-wanpengli@tencent.com> Cc: stable@vger.kernel.org Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
1 parent e42c682 commit 99b82a1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/x86/kvm/vmx/vmx.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6054,6 +6054,7 @@ static int vmx_handle_exit(struct kvm_vcpu *vcpu, fastpath_t exit_fastpath)
60546054
(exit_reason != EXIT_REASON_EXCEPTION_NMI &&
60556055
exit_reason != EXIT_REASON_EPT_VIOLATION &&
60566056
exit_reason != EXIT_REASON_PML_FULL &&
6057+
exit_reason != EXIT_REASON_APIC_ACCESS &&
60576058
exit_reason != EXIT_REASON_TASK_SWITCH)) {
60586059
vcpu->run->exit_reason = KVM_EXIT_INTERNAL_ERROR;
60596060
vcpu->run->internal.suberror = KVM_INTERNAL_ERROR_DELIVERY_EV;

0 commit comments

Comments
 (0)