summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/kvm/kvm_page_table_test.c
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2022-05-02 17:25:17 -0700
committerPaolo Bonzini <pbonzini@redhat.com>2022-06-11 11:47:25 -0400
commit3222d0264fb60a9aa359a58a059a7fb0d2b3c467 (patch)
tree52426f8539be73ad90cfebadcb38df6c0f9ac8bb /tools/testing/selftests/kvm/kvm_page_table_test.c
parent68c1b3e910c0451ed9a51093c603cc4898d643ce (diff)
KVM: selftests: Drop @slot0_mem_pages from __vm_create_with_vcpus()
All callers of __vm_create_with_vcpus() pass DEFAULT_GUEST_PHY_PAGES for @slot_mem_pages; drop the param and just hardcode the "default" as the base number of pages for slot0. Signed-off-by: Sean Christopherson <seanjc@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/testing/selftests/kvm/kvm_page_table_test.c')
-rw-r--r--tools/testing/selftests/kvm/kvm_page_table_test.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/testing/selftests/kvm/kvm_page_table_test.c b/tools/testing/selftests/kvm/kvm_page_table_test.c
index 0f8792aa0366..a68c57572ab4 100644
--- a/tools/testing/selftests/kvm/kvm_page_table_test.c
+++ b/tools/testing/selftests/kvm/kvm_page_table_test.c
@@ -254,9 +254,8 @@ static struct kvm_vm *pre_init_before_test(enum vm_guest_mode mode, void *arg)
/* Create a VM with enough guest pages */
guest_num_pages = test_mem_size / guest_page_size;
- vm = __vm_create_with_vcpus(mode, nr_vcpus, DEFAULT_GUEST_PHY_PAGES,
- guest_num_pages, 0, guest_code,
- test_args.vcpus);
+ vm = __vm_create_with_vcpus(mode, nr_vcpus, guest_num_pages, 0,
+ guest_code, test_args.vcpus);
/* Align down GPA of the testing memslot */
if (!p->phys_offset)