KVM: selftests: Assign guest page size in sync area early in memslot_perf_test
authorGavin Shan <gshan@redhat.com>
Wed, 18 Jan 2023 09:21:33 +0000 (17:21 +0800)
committerSean Christopherson <seanjc@google.com>
Tue, 7 Feb 2023 23:44:19 +0000 (15:44 -0800)
commit45f679550d7295b52a1cd8b7afaf2bd31453a5b0
tree65790fb7664611536085cc10c8878e9223dcb218
parente5b426879fc39063d940902adbf38d5485925304
KVM: selftests: Assign guest page size in sync area early in memslot_perf_test

The guest page size in the synchronization area is needed by all test
cases. So it's reasonable to set it in the unified preparation function
(prepare_vm()).

Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com>
Link: https://lore.kernel.org/r/20230118092133.320003-3-gshan@redhat.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/memslot_perf_test.c