OSDN Git Service

KVM: selftests: Unconditionally use memslot 0 for x86's GDT/TSS setup
authorSean Christopherson <seanjc@google.com>
Tue, 22 Jun 2021 20:05:14 +0000 (13:05 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 24 Jun 2021 08:31:17 +0000 (04:31 -0400)
commit1dcd1c58ae7dc42102d2976421aefb5362427b9e
tree92123b9c1f8372a182f8dec90a8bf31b690b3972
parent7a4f1a75b78c10d0d0e90841f45a60e12f599eff
KVM: selftests: Unconditionally use memslot 0 for x86's GDT/TSS setup

Refactor x86's GDT/TSS allocations to for memslot '0' at its
vm_addr_alloc() call sites instead of passing in '0' from on high.  This
is a step toward using a common helper for allocating pages.

No functional change intended.

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