OSDN Git Service

KVM: selftests: Unconditionally use memslot 0 when loading elf binary
authorSean Christopherson <seanjc@google.com>
Tue, 22 Jun 2021 20:05:13 +0000 (13:05 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 24 Jun 2021 08:31:17 +0000 (04:31 -0400)
commit7a4f1a75b78c10d0d0e90841f45a60e12f599eff
tree0064b164b1eecaa4abe13afeb695b053596333f3
parent96d41cfd1bb9964602fabea9c7e72ca723f749db
KVM: selftests: Unconditionally use memslot 0 when loading elf binary

Use memslot '0' for all vm_vaddr_alloc() calls when loading the test
binary.  This is the first step toward adding a helper to handle page
allocations with a default value for the target memslot.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210622200529.3650424-4-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/dirty_log_test.c
tools/testing/selftests/kvm/hardware_disable_test.c
tools/testing/selftests/kvm/include/kvm_util.h
tools/testing/selftests/kvm/lib/elf.c
tools/testing/selftests/kvm/lib/kvm_util.c
tools/testing/selftests/kvm/x86_64/set_boot_cpu_id.c