diff options
author | Gavin Shan <[email protected]> | 2022-10-20 15:12:06 +0800 |
---|---|---|
committer | Marc Zyngier <[email protected]> | 2022-11-10 18:56:15 +0000 |
commit | 34396437b11f904fc61b272e3974f4c92868451b (patch) | |
tree | 1b8d7f50293863cc5e213c4c90a2e752d2251a11 /lib/mpi/mpi-sub-ui.c | |
parent | 2aae5e6795e1407334bb849f96f11c9051b959e2 (diff) |
KVM: selftests: memslot_perf_test: Probe memory slots for once
prepare_vm() is called in every iteration and run. The allowed memory
slots (KVM_CAP_NR_MEMSLOTS) are probed for multiple times. It's not
free and unnecessary.
Move the probing logic for the allowed memory slots to parse_args()
for once, which is upper layer of prepare_vm().
No functional change intended.
Signed-off-by: Gavin Shan <[email protected]>
Reviewed-by: Maciej S. Szmigiero <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions