diff options
author | Andrew Jones <drjones@redhat.com> | 2020-03-12 11:40:55 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-03-16 17:58:57 +0100 |
commit | 331b4de9a7e780f9648ced959c08f4d593aa2e7b (patch) | |
tree | 2603da283a97b9f4762bdaf2de81c7bcdc3131ba /tools/testing/selftests/kvm/demand_paging_test.c | |
parent | ab56f8e62dafe4c9bec9fc236937c9884bd9966d (diff) | |
download | kernel_replicant_linux-331b4de9a7e780f9648ced959c08f4d593aa2e7b.tar.gz kernel_replicant_linux-331b4de9a7e780f9648ced959c08f4d593aa2e7b.tar.bz2 kernel_replicant_linux-331b4de9a7e780f9648ced959c08f4d593aa2e7b.zip |
KVM: selftests: s390x: Provide additional num-guest-pages adjustment
s390 requires 1M aligned guest sizes. Embedding the rounding in
vm_adjust_num_guest_pages() allows us to remove it from a few
other places.
Signed-off-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/testing/selftests/kvm/demand_paging_test.c')
-rw-r--r-- | tools/testing/selftests/kvm/demand_paging_test.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/tools/testing/selftests/kvm/demand_paging_test.c b/tools/testing/selftests/kvm/demand_paging_test.c index c1e326d3ed7f..ae086c5dc118 100644 --- a/tools/testing/selftests/kvm/demand_paging_test.c +++ b/tools/testing/selftests/kvm/demand_paging_test.c @@ -378,10 +378,6 @@ static void run_test(enum vm_guest_mode mode, bool use_uffd, guest_num_pages = (vcpus * vcpu_memory_bytes) / guest_page_size; guest_num_pages = vm_adjust_num_guest_pages(mode, guest_num_pages); -#ifdef __s390x__ - /* Round up to multiple of 1M (segment size) */ - guest_num_pages = (guest_num_pages + 0xff) & ~0xffUL; -#endif /* * If there should be more memory in the guest test region than there * can be pages in the guest, it will definitely cause problems. |