diff options
| author | Sean Christopherson <[email protected]> | 2024-08-02 20:45:09 +0000 |
|---|---|---|
| committer | Sean Christopherson <[email protected]> | 2024-08-30 02:06:12 +0000 |
| commit | 48547fe75ea7d5bf1ff9425a0a5d4d32b3a77777 (patch) | |
| tree | 67b1d7f42643726d1c6185de39f7c93776d65954 /lib/crypto/mpi/mpi-mul.c | |
| parent | KVM: SVM: Remove unnecessary GFP_KERNEL_ACCOUNT in svm_set_nested_state() (diff) | |
| download | kernel-48547fe75ea7d5bf1ff9425a0a5d4d32b3a77777.tar.gz kernel-48547fe75ea7d5bf1ff9425a0a5d4d32b3a77777.zip | |
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/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-mul.c')
0 files changed, 0 insertions, 0 deletions
