]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit50f6d6fa07640570c2dd3a3edbb3c95f5e7f3260
tree7eda4b783b3d2a84d5499c384b058485a0465178
parentc533cc6ca6e9645d375f23145f5dbf51fd0b27b8
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