summaryrefslogtreecommitdiff
path: root/rust/kernel
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw@amazon.co.uk>2026-07-20 12:03:02 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2026-07-21 12:25:26 +0200
commitcd76ec58be59b061cc6a835226abff50fa35e3e6 (patch)
tree317245b9379f58ac755cbb52cef975e19f04c9bf /rust/kernel
parent52f2f7c30126037975389aa04d24c506a5177c35 (diff)
downloadlinux-cd76ec58be59b061cc6a835226abff50fa35e3e6.tar.gz
linux-cd76ec58be59b061cc6a835226abff50fa35e3e6.zip
KVM: selftests: sev_smoke_test: Only run VM types the host offers
sev_smoke_test ran the plain SEV subtest unconditionally, gated only on the X86_FEATURE_SEV CPUID bit, while gating SEV-ES and SNP on the KVM_CAP_VM_TYPES bits. CPUID reporting SEV does not mean KVM offers the SEV VM type: when all SEV ASIDs are assigned to SEV-SNP, KVM_X86_SEV_VM is unavailable even though X86_FEATURE_SEV is set. On such a host the test aborts in KVM_CREATE_VM instead of exercising the available modes. Gate the SEV subtest on KVM_CAP_VM_TYPES like the others, so the test runs the VM types the host actually offers. Reviewed-by: Tycho Andersen (AMD) <tycho@kernel.org> Signed-off-by: David Woodhouse <dwmw@amazon.co.uk> Message-ID: <2b5e7a83d277134294199a455469bb436196b902.1784545391.git.dwmw@amazon.co.uk> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'rust/kernel')
0 files changed, 0 insertions, 0 deletions