]> www.infradead.org Git - users/dwmw2/linux.git/commit
KVM: SVM: Don't rewrite guest ICR on AVIC IPI virtualization failure
authorSean Christopherson <seanjc@google.com>
Fri, 4 Feb 2022 21:41:59 +0000 (21:41 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 25 Feb 2022 13:20:21 +0000 (08:20 -0500)
commit57b5d31165b5195ef6f9fed44285d4e0fa4aa8b4
tree5e67d5baee2ba338546910dd8ec3f011311bd23d
parente7f92e9fa869ba3615db0edfce05421dd761f9e6
KVM: SVM: Don't rewrite guest ICR on AVIC IPI virtualization failure

Don't bother rewriting the ICR value into the vAPIC page on an AVIC IPI
virtualization failure, the access is a trap, i.e. the value has already
been written to the vAPIC page.  The one caveat is if hardware left the
BUSY flag set (which appears to happen somewhat arbitrarily), in which
case go through the "nodecode" APIC-write path in order to clear the BUSY
flag.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20220204214205.3306634-6-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/lapic.c
arch/x86/kvm/svm/avic.c