summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorShaoqin Huang <shahuang@redhat.com>2023-02-08 08:18:00 +0100
committerSean Christopherson <seanjc@google.com>2023-02-08 15:53:14 +0100
commit695fa5a64cf52ab1aa2c89c93bbb1fd08995304a (patch)
tree8955ec96bbdf614fc4a8c8d3b6b161cb85d5070c /tools
parentKVM: selftests: Clean up misnomers in xen_shinfo_test (diff)
downloadlinux-695fa5a64cf52ab1aa2c89c93bbb1fd08995304a.tar.xz
linux-695fa5a64cf52ab1aa2c89c93bbb1fd08995304a.zip
KVM: selftests: Remove duplicate macro definition
The KVM_GUEST_PAGE_TABLE_MIN_PADDR macro has been defined in include/kvm_util_base.h. So remove the duplicate definition in lib/kvm_util.c. Fixes: cce0c23dd944 ("KVM: selftests: Add wrapper to allocate page table page") Signed-off-by: Shaoqin Huang <shahuang@redhat.com> Link: https://lore.kernel.org/r/20230208071801.68620-1-shahuang@redhat.com Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/selftests/kvm/lib/kvm_util.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/tools/testing/selftests/kvm/lib/kvm_util.c b/tools/testing/selftests/kvm/lib/kvm_util.c
index 56d5ea949cbb..a3648c3f273f 100644
--- a/tools/testing/selftests/kvm/lib/kvm_util.c
+++ b/tools/testing/selftests/kvm/lib/kvm_util.c
@@ -1941,9 +1941,6 @@ vm_paddr_t vm_phy_page_alloc(struct kvm_vm *vm, vm_paddr_t paddr_min,
return vm_phy_pages_alloc(vm, 1, paddr_min, memslot);
}
-/* Arbitrary minimum physical address used for virtual translation tables. */
-#define KVM_GUEST_PAGE_TABLE_MIN_PADDR 0x180000
-
vm_paddr_t vm_alloc_page_table(struct kvm_vm *vm)
{
return vm_phy_page_alloc(vm, KVM_GUEST_PAGE_TABLE_MIN_PADDR,