KVM: selftests: s390x: Provide additional num-guest-pages adjustment
authorAndrew Jones <drjones@redhat.com>
Thu, 12 Mar 2020 10:40:55 +0000 (11:40 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 16 Mar 2020 16:58:57 +0000 (17:58 +0100)
commit331b4de9a7e780f9648ced959c08f4d593aa2e7b
tree2603da283a97b9f4762bdaf2de81c7bcdc3131ba
parentab56f8e62dafe4c9bec9fc236937c9884bd9966d
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>
tools/testing/selftests/kvm/demand_paging_test.c
tools/testing/selftests/kvm/dirty_log_test.c
tools/testing/selftests/kvm/include/kvm_util.h