selftests: fix check for circular KVM_CAP_VM_MOVE_ENC_CONTEXT_FROM
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 18 Nov 2021 10:23:20 +0000 (05:23 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 26 Nov 2021 11:43:29 +0000 (06:43 -0500)
commit4916ea8b06a594d9d4e0cf5aa434e9ebd56baafb
tree6128bbb718f3f9ee83d27a8716bb1dd9d8900cdc
parent78311a514099932cd8434d5d2194aa94e56ab67c
selftests: fix check for circular KVM_CAP_VM_MOVE_ENC_CONTEXT_FROM

KVM_CAP_VM_MOVE_ENC_CONTEXT_FROM leaves the source VM in a dead state,
so migrating back to the original source VM fails the ioctl.  Adjust
the test.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/x86_64/sev_migrate_tests.c