OSDN Git Service

KVM: selftests: introduce P47V64 for s390x
authorChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 8 Jun 2021 12:39:54 +0000 (14:39 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 8 Jun 2021 17:19:19 +0000 (13:19 -0400)
commit1bc603af73dd8fb2934306e861009c54f973dcc2
treeb26adf42b560f55b37bbc454e3067e63cb7be2c8
parentaf3511ff7fa2107d6410831f3d71030f5e8d2b25
KVM: selftests: introduce P47V64 for s390x

s390x can have up to 47bits of physical guest and 64bits of virtual
address  bits. Add a new address mode to avoid errors of testcases
going beyond 47bits.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Message-Id: <20210608123954.10991-1-borntraeger@de.ibm.com>
Fixes: ef4c9f4f6546 ("KVM: selftests: Fix 32-bit truncation of vm_get_max_gfn()")
Cc: stable@vger.kernel.org
Reviewed-by: David Matlack <dmatlack@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/include/kvm_util.h
tools/testing/selftests/kvm/lib/kvm_util.c