KVM: selftests: Align memory region addresses to 1M on s390x
authorThomas Huth <thuth@redhat.com>
Thu, 23 May 2019 16:43:05 +0000 (18:43 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 4 Jun 2019 12:05:38 +0000 (14:05 +0200)
commitda2a2d601c2d95bedf23b896bd409d53c92c04ad
treea77c8680885dc86d1a11cac3e8d5deb1f64019bd
parentfe85ec86fcd5998389274b6e12977bcf8509d3e0
KVM: selftests: Align memory region addresses to 1M on s390x

On s390x, there is a constraint that memory regions have to be aligned
to 1M (or running the VM will fail). Introduce a new "alignment" variable
in the vm_userspace_mem_region_add() function which now can be used for
both, huge page and s390x alignment requirements.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20190523164309.13345-6-thuth@redhat.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
[prepare for THP as outlined by Andrew Jones]
tools/testing/selftests/kvm/lib/kvm_util.c