]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4cd459a9e7be41dba012ebda44d53cb5b5b6982c
tree3d5869cc527cef169011bb2b61229faccfcc7b16
parent575f12ad2b88f58959748990a3d64a46bcd787d0
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