summaryrefslogtreecommitdiff
path: root/tools/perf/python
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2026-05-01 13:35:35 -0700
committerSean Christopherson <seanjc@google.com>2026-05-13 15:03:18 -0700
commit99694add4af382a8fd594e3fc8d02342b1afde02 (patch)
tree25c60bdf3484b3c9febc6fa2367fcbebe2a4c647 /tools/perf/python
parentcb32e895546bf45ebdd0e76ae7a7d783eed2c304 (diff)
KVM: SEV: Add helper function to pin/unpin a single page
Add helpers to pin/unpin a single page, and use it in all flows that pin exactly one page. None of the single-page users actually check that the correct number of pages was pinned, which is functionally ok, but visually jarring, especially in the decrypt/encrypt flow, which separately pins two pages, but uses a single variable to track how pages were pinned each time. Again, it's functionally ok since core mm guarantees exactly one page will be pinned on success, but it's ugly. Opportunistically use page_to_phys() instead of open coding an equivalent via page_to_pfn(). Note, all users of the single-page helper pre-validate the address and length, i.e. don't rely on the sanity check in sev_pin_memory(). No functional change intended. Link: https://patch.msgid.link/20260501203537.2120074-5-seanjc@google.com Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/python')
0 files changed, 0 insertions, 0 deletions