KVM: VMX: Use accessor to read vmcs.INTR_INFO when handling exception
authorSean Christopherson <sean.j.christopherson@intel.com>
Mon, 27 Apr 2020 17:18:37 +0000 (10:18 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 13 May 2020 16:15:01 +0000 (12:15 -0400)
commitf27ad73a6ef791731fa75ca183d5c64a930b9cc1
tree85c9c8f0be7e576c3c064b14fc0dc233f321e140
parentfede8076aab4c2280c673492f8f7a2e87712e8b4
KVM: VMX: Use accessor to read vmcs.INTR_INFO when handling exception

Use vmx_get_intr_info() when grabbing the cached vmcs.INTR_INFO in
handle_exception_nmi() to ensure the cache isn't stale.  Bypassing the
caching accessor doesn't cause any known issues as the cache is always
refreshed by handle_exception_nmi_irqoff(), but the whole point of
adding the proper caching mechanism was to avoid such dependencies.

Fixes: 8791585837f6 ("KVM: VMX: Cache vmcs.EXIT_INTR_INFO using arch avail_reg flags")
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Message-Id: <20200427171837.22613-1-sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c