diff options
author | Sean Christopherson <seanjc@google.com> | 2024-08-02 13:45:09 -0700 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2024-08-29 19:06:12 -0700 |
commit | 48547fe75ea7d5bf1ff9425a0a5d4d32b3a77777 (patch) | |
tree | 67b1d7f42643726d1c6185de39f7c93776d65954 /tools/perf/scripts/python/mem-phys-addr.py | |
parent | c501062bb22ba325b7b77c91433d79574b4a3dcc (diff) |
KVM: SVM: Add a helper to convert a SME-aware PA back to a struct page
Add __sme_pa_to_page() to pair with __sme_page_pa() and use it to replace
open coded equivalents, including for "iopm_base", which previously
avoided having to do __sme_clr() by storing the raw PA in the global
variable.
Opportunistically convert __sme_page_pa() to a helper to provide type
safety.
No functional change intended.
Link: https://lore.kernel.org/r/20240802204511.352017-2-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions