OSDN Git Service

KVM: selftests: Use alloc_page helper for x86-64's GDT/IDT/TSS allocations
authorSean Christopherson <seanjc@google.com>
Tue, 22 Jun 2021 20:05:18 +0000 (13:05 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 24 Jun 2021 08:31:18 +0000 (04:31 -0400)
commit5ae4d8706f091278709cd8af410685dd17c1dca9
tree221f0636e5b3b39c23a2ab8250f90e7b808ebaef
parent106a2e766eae7161a0500048004bbc2f75ea9a98
KVM: selftests: Use alloc_page helper for x86-64's GDT/IDT/TSS allocations

Switch to the vm_vaddr_alloc_page() helper for x86-64's "kernel"
allocations now that the helper uses the same min virtual address as the
open coded versions.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210622200529.3650424-9-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/lib/x86_64/processor.c