aboutsummaryrefslogtreecommitdiffstats
path: root/Kbuild
diff options
context:
space:
mode:
authorMaciej S. Szmigiero <maciej.szmigiero@oracle.com>2021-12-06 20:54:25 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2021-12-08 04:24:30 -0500
commitc928bfc2632fa3dd6a3bd4504ac6d8e42302287a (patch)
tree79d34395cf30656db4734e314a56e1aeeefcaf42 /Kbuild
parentKVM: x86: Use nr_memslot_pages to avoid traversing the memslots array (diff)
downloadlinux-dev-c928bfc2632fa3dd6a3bd4504ac6d8e42302287a.tar.xz
linux-dev-c928bfc2632fa3dd6a3bd4504ac6d8e42302287a.zip
KVM: Integrate gfn_to_memslot_approx() into search_memslots()
s390 arch has gfn_to_memslot_approx() which is almost identical to search_memslots(), differing only in that in case the gfn falls in a hole one of the memslots bordering the hole is returned. Add this lookup mode as an option to search_memslots() so we don't have two almost identical functions for looking up a memslot by its gfn. Signed-off-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com> [sean: tweaked helper names to keep gfn_to_memslot_approx() in s390] Reviewed-by: Sean Christopherson <seanjc@google.com> Message-Id: <171cd89b52c718dbe180ecd909b4437a64a7e2ec.1638817640.git.maciej.szmigiero@oracle.com>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions