]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Remove perf_test_args.host_page_size
authorSean Christopherson <seanjc@google.com>
Thu, 11 Nov 2021 00:03:07 +0000 (00:03 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Nov 2021 12:43:26 +0000 (07:43 -0500)
commit0076fc2c5971b2bacd63da4ef0c01cfb7e84f84d
tree48ee5fc5a5ac15f86d8f74ce56b686a69baa46c3
parent6e722dae962628e0f84df64ec4fad463aa63ca3c
KVM: selftests: Remove perf_test_args.host_page_size

Remove perf_test_args.host_page_size and instead use getpagesize() so
that it's somewhat obvious that, for tests that care about the host page
size, they care about the system page size, not the hardware page size,
e.g. that the logic is unchanged if hugepages are in play.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Ben Gardon <bgardon@google.com>
Signed-off-by: David Matlack <dmatlack@google.com>
Message-Id: <20211111000310.1435032-10-dmatlack@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/include/perf_test_util.h
tools/testing/selftests/kvm/lib/perf_test_util.c