diff options
| author | Zhenzhong Duan <[email protected]> | 2021-05-12 04:31:06 +0000 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2021-05-27 11:45:53 +0000 |
| commit | 39fe2fc96694164723846fccf6caa42c3aee6ec4 (patch) | |
| tree | 56d77e22b8dc055e513bdf0fe0f84c30ddce6167 /tools/testing/selftests/kvm/lib/perf_test_util.c | |
| parent | KVM: X86: hyper-v: Task srcu lock when accessing kvm_memslots() (diff) | |
| download | kernel-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
