Re: [PATCH v2 16/16] KVM: x86: selftests: Add APX state handling and XCR0 sanity checks

From: Paolo Bonzini

Date: Wed Mar 11 2026 - 14:46:32 EST


On 3/7/26 02:33, Chang S. Bae wrote:
On 3/4/2026 8:28 PM, Sean Christopherson wrote:

I assume/hope there a more tests coming in future versions...

KVM-Unit-Tests' x86/xsave.c would be a good fit, or at least a good reference
for what we should be testing as far as EGPR accesses are concerned.

Yeah, I can see establishing a solid test set along with a new feature is pretty much a requirement for KVM. I'd come up with some updates. Right now, yes, considering that xsave.c. Thanks a lot!

Not a lot is needed, but please add at least something that uses the forced emulation prefix to trigger the emulation paths.

Paolo