KVM: selftests: Drop unused kvm_userspace_memory_region_find() helper
authorSean Christopherson <seanjc@google.com>
Fri, 27 Oct 2023 18:22:06 +0000 (11:22 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 14 Nov 2023 13:01:05 +0000 (08:01 -0500)
commit335869c3f2b881bda6eeeb2df342841a1db3310b
treefafef0861fad83846039555537249668fae65f3f
parent89ea60c2c7b5838bf192c50062d5720cd6ab8662
KVM: selftests: Drop unused kvm_userspace_memory_region_find() helper

Drop kvm_userspace_memory_region_find(), it's unused and a terrible API
(probably why it's unused).  If anything outside of kvm_util.c needs to
get at the memslot, userspace_mem_region_find() can be exposed to give
others full access to all memory region/slot information.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20231027182217.3615211-25-seanjc@google.com>
Reviewed-by: Fuad Tabba <tabba@google.com>
Tested-by: Fuad Tabba <tabba@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/include/kvm_util_base.h
tools/testing/selftests/kvm/lib/kvm_util.c