]> git.baikalelectronics.ru Git - kernel.git/commitdiff
KVM: selftests: Use vm_create_without_vcpus() in psci_test
authorSean Christopherson <seanjc@google.com>
Mon, 18 Apr 2022 20:16:39 +0000 (13:16 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 15:46:32 +0000 (11:46 -0400)
Use vm_create_without_vcpus() instead of open coding a rough equivalent
in psci_test.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/aarch64/psci_test.c

index 1485d0b05b6683e1114a7f5a1f23693731fc4676..c9b82c0cc8d5f10f28c71988eedeb5c0ef840111 100644 (file)
@@ -78,8 +78,7 @@ static struct kvm_vm *setup_vm(void *guest_code)
        struct kvm_vcpu_init init;
        struct kvm_vm *vm;
 
-       vm = vm_create(DEFAULT_GUEST_PHY_PAGES);
-       kvm_vm_elf_load(vm, program_invocation_name);
+       vm = vm_create_without_vcpus(VM_MODE_DEFAULT, DEFAULT_GUEST_PHY_PAGES);
        ucall_init(vm, NULL);
 
        vm_ioctl(vm, KVM_ARM_PREFERRED_TARGET, &init);