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)
commit0c276ff22c7eb1a6ebf889b25d631f4cd358a482
tree60b06c954cabba3b06d4616e9820468f4856916c
parentf17686aac61fb23c08efba56ee3f3ceb89572d08
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]