]> 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)
commit2ae1ffe5a1cd52e37b2e68f3ce3e9c4c845378dc
tree3d5869cc527cef169011bb2b61229faccfcc7b16
parent913d1d1b472d5c882a32b4179d44d22a1f371671
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