]> 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)
commit8882c4523f9b9fd49ca61c48574356d423c97f59
tree48ee5fc5a5ac15f86d8f74ce56b686a69baa46c3
parent8e8ed391a9fc97a2b10d16847a96f18a4e785c24
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