lkml.org 
[lkml]   [2020]   [Sep]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.4 115/132] KVM: VMX: Dont freeze guest when event delivery causes an APIC-access exit
    Date
    From: Wanpeng Li <wanpengli@tencent.com>

    commit 99b82a1437cb31340dbb2c437a2923b9814a7b15 upstream.

    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>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    arch/x86/kvm/vmx/vmx.c | 1 +
    1 file changed, 1 insertion(+)

    --- a/arch/x86/kvm/vmx/vmx.c
    +++ b/arch/x86/kvm/vmx/vmx.c
    @@ -5895,6 +5895,7 @@ static int vmx_handle_exit(struct kvm_vc
    (exit_reason != EXIT_REASON_EXCEPTION_NMI &&
    exit_reason != EXIT_REASON_EPT_VIOLATION &&
    exit_reason != EXIT_REASON_PML_FULL &&
    + exit_reason != EXIT_REASON_APIC_ACCESS &&
    exit_reason != EXIT_REASON_TASK_SWITCH)) {
    vcpu->run->exit_reason = KVM_EXIT_INTERNAL_ERROR;
    vcpu->run->internal.suberror = KVM_INTERNAL_ERROR_DELIVERY_EV;

    \
     
     \ /
      Last update: 2020-09-16 01:57    [W:4.169 / U:0.060 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site