selftests: KVM: sev_migrate_tests: Fix test_sev_mirror()
authorPeter Gonda <pgonda@google.com>
Wed, 8 Dec 2021 19:16:40 +0000 (11:16 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 7 Jan 2022 15:44:38 +0000 (10:44 -0500)
commit4c66b56781eb114d478d8488e614a4f832a44a2c
tree4bb3fa06cf15221baa0d32900a8601eecf3183a1
parent1b0c9d00aa2cf93dd26760dc9e4cf4725fc5ec03
selftests: KVM: sev_migrate_tests: Fix test_sev_mirror()

Mirrors should not be able to call LAUNCH_START. Remove the call on the
mirror to correct the test before fixing sev_ioctl() to correctly assert
on this failed ioctl.

Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Sean Christopherson <seanjc@google.com>
Cc: Marc Orr <marcorr@google.com>
Signed-off-by: Peter Gonda <pgonda@google.com>
Message-Id: <20211208191642.3792819-2-pgonda@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/x86_64/sev_migrate_tests.c