]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: selftests: Ensure KVM supports AVX for SEV-ES VMSA FPU test
authorSean Christopherson <seanjc@google.com>
Thu, 3 Oct 2024 23:43:37 +0000 (16:43 -0700)
committerSean Christopherson <seanjc@google.com>
Fri, 1 Nov 2024 16:26:37 +0000 (09:26 -0700)
commit89f8869835e4da836bc60ab20568b7864706f94b
treed30732c4fc5c4f7cddb8ecea6e4bd22f146527d2
parent3c4c128d02ed81ddbf9b374a77bc0cb5a91e0a87
KVM: selftests: Ensure KVM supports AVX for SEV-ES VMSA FPU test

Verify that KVM's supported XCR0 includes AVX (and earlier features) when
running the SEV-ES VMSA XSAVE test.  In practice, the issue will likely
never pop up, since KVM support for AVX predates KVM support for SEV-ES,
but checking for KVM support makes the requirement more obvious.

Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Link: https://lore.kernel.org/r/20241003234337.273364-12-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/x86_64/sev_smoke_test.c