diff options
| author | Sean Christopherson <[email protected]> | 2022-04-29 01:04:15 +0000 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2022-06-20 06:21:35 -0400 |
| commit | b14b2690c50e02145bb867dfcde8845eb17aa8a4 (patch) | |
| tree | c2bcbe2c4cef258a7523defc5a733b99de1a079d /tools/perf/scripts/python | |
| parent | 284dc49307738d2a897fd375431f741213cd0f27 (diff) | |
KVM: Rename/refactor kvm_is_reserved_pfn() to kvm_pfn_to_refcounted_page()
Rename and refactor kvm_is_reserved_pfn() to kvm_pfn_to_refcounted_page()
to better reflect what KVM is actually checking, and to eliminate extra
pfn_to_page() lookups. The kvm_release_pfn_*() an kvm_try_get_pfn()
helpers in particular benefit from "refouncted" nomenclature, as it's not
all that obvious why KVM needs to get/put refcounts for some PG_reserved
pages (ZERO_PAGE and ZONE_DEVICE).
Add a comment to call out that the list of exceptions to PG_reserved is
all but guaranteed to be incomplete. The list has mostly been compiled
by people throwing noodles at KVM and finding out they stick a little too
well, e.g. the ZERO_PAGE's refcount overflowed and ZONE_DEVICE pages
didn't get freed.
No functional change intended.
Signed-off-by: Sean Christopherson <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions