]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: selftests: Play nice with AMD's AVIC errata
authorSean Christopherson <seanjc@google.com>
Fri, 19 Jul 2024 23:51:07 +0000 (16:51 -0700)
committerSean Christopherson <seanjc@google.com>
Thu, 29 Aug 2024 23:25:06 +0000 (16:25 -0700)
commit5a7c7d148e488f43cf9c8e64fa5e1bd715ae0485
tree73b2f6c5fdd4417af5d4067f491ae0af07d6b690
parent0cb26ec320851f685280ff061f84855d0e97bf86
KVM: selftests: Play nice with AMD's AVIC errata

When AVIC, and thus IPI virtualization on AMD, is enabled, the CPU will
virtualize ICR writes.  Unfortunately, the CPU doesn't do a very good job,
as it fails to clear the BUSY bit and also allows writing ICR2[23:0],
despite them being "RESERVED MBZ".  Account for the quirky behavior in
the xapic_state test to avoid failures in a configuration that likely has
no hope of ever being enabled in production.

Link: https://lore.kernel.org/r/20240719235107.3023592-11-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/x86_64/xapic_state_test.c