aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/kvm/lib/perf_test_util.c
diff options
context:
space:
mode:
authorZhenzhong Duan <[email protected]>2021-05-12 04:31:06 +0000
committerPaolo Bonzini <[email protected]>2021-05-27 11:45:53 +0000
commit39fe2fc96694164723846fccf6caa42c3aee6ec4 (patch)
tree56d77e22b8dc055e513bdf0fe0f84c30ddce6167 /tools/testing/selftests/kvm/lib/perf_test_util.c
parentKVM: X86: hyper-v: Task srcu lock when accessing kvm_memslots() (diff)
downloadkernel-39fe2fc96694164723846fccf6caa42c3aee6ec4.tar.gz
kernel-39fe2fc96694164723846fccf6caa42c3aee6ec4.zip
selftests: kvm: make allocation of extra memory take effect
The extra memory pages is missed to be allocated during VM creating. perf_test_util and kvm_page_table_test use it to alloc extra memory currently. Fix it by adding extra_mem_pages to the total memory calculation before allocate. Signed-off-by: Zhenzhong Duan <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/testing/selftests/kvm/lib/perf_test_util.c')
0 files changed, 0 insertions, 0 deletions