]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Push vm_adjust_num_guest_pages() into "w/o vCPUs" helper
authorSean Christopherson <seanjc@google.com>
Mon, 18 Apr 2022 19:58:44 +0000 (12:58 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 15:46:30 +0000 (11:46 -0400)
commit362b3d0fb235d77a96024045245203e830ae7c6c
tree60b06c954cabba3b06d4616e9820468f4856916c
parent6ca35025ceb6d55fba1ae0dc0c33099da44775d4
KVM: selftests: Push vm_adjust_num_guest_pages() into "w/o vCPUs" helper

Move the call to vm_adjust_num_guest_pages() from vm_create_with_vcpus()
down into vm_create_without_vcpus().  This will allow a future patch to
make the "w/o vCPUs" variant the common inner helper, e.g. so that the
"with_vcpus" helper calls the "without_vcpus" helper, instead of having
them be separate paths.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/lib/kvm_util.c
tools/testing/selftests/kvm/x86_64/monitor_mwait_test [new file with mode: 0755]