diff options
| author | Maciej S. Szmigiero <[email protected]> | 2021-12-06 20:54:25 +0100 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2021-12-08 04:24:30 -0500 |
| commit | c928bfc2632fa3dd6a3bd4504ac6d8e42302287a (patch) | |
| tree | 79d34395cf30656db4734e314a56e1aeeefcaf42 /tools/perf/scripts/python/stackcollapse.py | |
| parent | f5756029eef501bcd39ecd844968e4fb3055c1bd (diff) | |
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 <[email protected]>
[sean: tweaked helper names to keep gfn_to_memslot_approx() in s390]
Reviewed-by: Sean Christopherson <[email protected]>
Message-Id: <171cd89b52c718dbe180ecd909b4437a64a7e2ec.1638817640.git.maciej.szmigiero@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions