Skip to contentSkip to conversation

KVM: selftests: Add simple sev vm testing

PATCH New Peter Gonda 1 participant 1 message Jan 10, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 7/7 KVM: selftests: Add simple sev vm testing

A very simple of booting SEV guests that checks related CPUID bits. This is a stripped down version of "[PATCH v2 08/13] KVM: selftests: add SEV boot tests" from Michael but much simpler.

Cc Paolo Bonzini <[email protected]>
Cc Sean Christopherson <[email protected]>
Cc Vishal Annapurve <[email protected]>
Cc Ackerley Tng <[email protected]>
cc Andrew Jones <[email protected]>

---
V6.1
*Fixes gitignore change headers.

---
 tools/testing/selftests/kvm/Makefile          |  1 +
 .../selftests/kvm/x86_64/sev_all_boot_test.c  | 84 +++++++++++++++++++
 3 files changed, 169 insertions(+)
 create mode 100644 tools/testing/selftests/kvm/x86_64/sev_all_boot_test.c
tools/testing/selftests/kvm/Makefile +1 -0
index b7cfb15712d1..66d7ab3da990 100644
@@ -111,6 +111,7 @@ TEST_GEN_PROGS_x86_64 += x86_64/tsc_msrs_test
 TEST_GEN_PROGS_x86_64 += x86_64/vmx_pmu_caps_test
 TEST_GEN_PROGS_x86_64 += x86_64/xen_shinfo_test
 TEST_GEN_PROGS_x86_64 += x86_64/xen_vmcall_test
+TEST_GEN_PROGS_x86_64 += x86_64/sev_all_boot_test
 TEST_GEN_PROGS_x86_64 += x86_64/sev_migrate_tests
 TEST_GEN_PROGS_x86_64 += x86_64/amx_test
 TEST_GEN_PROGS_x86_64 += x86_64/max_vcpuid_cap_test
tools/testing/selftests/kvm/x86_64/sev_all_boot_test.c new file +84 -0

84 lines not on this page · raw message

Signature · 1 line
2.39.0.314.g84b9a713c41-goog