]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Use perf util's per-vCPU GPA/pages in demand paging test
authorSean Christopherson <seanjc@google.com>
Thu, 11 Nov 2021 00:03:05 +0000 (00:03 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Nov 2021 12:43:26 +0000 (07:43 -0500)
commit27f0577d523782406257dadf78fdba7da5badd81
treeb1e5092fef7eb72a7a5452801b5f2285f4378e72
parent55bd8704e7c899077779bae5ebc9823ae1775add
KVM: selftests: Use perf util's per-vCPU GPA/pages in demand paging test

Grab the per-vCPU GPA and number of pages from perf_util in the demand
paging test instead of duplicating perf_util's calculations.

Note, this may or may not result in a functional change.  It's not clear
that the test's calculations are guaranteed to yield the same value as
perf_util, e.g. if guest_percpu_mem_size != vcpu_args->pages.

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-8-dmatlack@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/demand_paging_test.c