OSDN Git Service

KVM: selftests: Move per-VM GPA into perf_test_args
authorSean Christopherson <seanjc@google.com>
Thu, 11 Nov 2021 00:03:06 +0000 (00:03 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Nov 2021 12:43:26 +0000 (07:43 -0500)
commitb91b637f4a595c5be435e215f78b1a3bd8c252b3
tree9fc553912d6f098f9f1f82c8a79092f4d742f412
parent92e34c9974f55519bc0c3386221aadf387162ea6
KVM: selftests: Move per-VM GPA into perf_test_args

Move the per-VM GPA into perf_test_args instead of storing it as a
separate global variable.  It's not obvious that guest_test_phys_mem
holds a GPA, nor that it's connected/coupled with per_vcpu->gpa.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Ben Gardon <bgardon@google.com>
Signed-off-by: David Matlack <dmatlack@google.com>
Message-Id: <20211111000310.1435032-9-dmatlack@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/include/perf_test_util.h
tools/testing/selftests/kvm/lib/perf_test_util.c
tools/testing/selftests/kvm/memslot_modification_stress_test.c