KVM: selftests: Sync stage before VM is freed in hypercalls test
authorSean Christopherson <seanjc@google.com>
Thu, 2 Jun 2022 00:27:51 +0000 (17:27 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 15:47:10 +0000 (11:47 -0400)
commitf05427faedff746e08b2098195c15d8691bc5fbe
tree3d5869cc527cef169011bb2b61229faccfcc7b16
parentbfff0f60db89f425920580900ba242df3bd3c652
KVM: selftests: Sync stage before VM is freed in hypercalls test

Sync the next stage using the VM before said VM is potentially freed by
the TEST_STAGE_HVC_IFACE_FEAT_DISABLED stage.

Opportunistically take a double pointer in anticipation of also having to
set the new vCPU pointer once the test stops hardcoding '0' everywhere.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/aarch64/hypercalls.c