[PATCH 0/3] Fixes for SEV mirror VM tests

From: Peter Gonda
Date: Wed Dec 08 2021 - 14:16:50 EST


Updated patch series for fixing bug in sev_ioctl() which allowed test
to look like a mirror vm could call KVM_SEV_LAUNCH_START. Adds
additional testing to validate mirror vm can only call subset of
commands.

I could not add the patch Seanjc recommended due to issues with
sev_platform_init() not correctly setting the fw error. I'll work ontop
of the INIT_EX patch series to fix this issue with the PSP driver.

Peter Gonda (3):
selftests: sev_migrate_tests: Fix test_sev_mirror()
selftests: sev_migrate_tests: Fix sev_ioctl()
selftests: sev_migrate_tests: Add mirror command tests

.../selftests/kvm/x86_64/sev_migrate_tests.c | 59 ++++++++++++++++---
1 file changed, 52 insertions(+), 7 deletions(-)

--
2.34.1.400.ga245620fadb-goog