KVM: selftests: Convert set_memory_region_test away from VCPU_ID
authorSean Christopherson <seanjc@google.com>
Wed, 16 Feb 2022 01:44:50 +0000 (17:44 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 15:46:58 +0000 (11:46 -0400)
commitd7828144d4651efc063d0889c9498176da2aed8c
tree7eda4b783b3d2a84d5499c384b058485a0465178
parentc09aee348495af4cc15f823ff7256b77728d53c7
KVM: selftests: Convert set_memory_region_test away from VCPU_ID

Convert set_memory_region_test to use vm_create_with_one_vcpu() and pass
around a 'struct kvm_vcpu' object instead of using a global VCPU_ID.

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