aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2024-10-10 18:24:18 +0000
committerPaolo Bonzini <[email protected]>2024-10-25 17:00:50 +0000
commitf42e289a2095f61755e6ca5fd1370d441bf589d5 (patch)
treefce15b66ea8ee18be28f3e409a1748bdcd20c5c2 /rust/helpers/helpers.c
parentKVM: Convert gfn_to_page() to use kvm_follow_pfn() (diff)
downloadkernel-f42e289a2095f61755e6ca5fd1370d441bf589d5.tar.gz
kernel-f42e289a2095f61755e6ca5fd1370d441bf589d5.zip
KVM: Add support for read-only usage of gfn_to_page()
Rework gfn_to_page() to support read-only accesses so that it can be used by arm64 to get MTE tags out of guest memory. Opportunistically rewrite the comment to be even more stern about using gfn_to_page(), as there are very few scenarios where requiring a struct page is actually the right thing to do (though there are such scenarios). Add a FIXME to call out that KVM probably should be pinning pages, not just getting pages. Tested-by: Alex BennĂ©e <[email protected]> Signed-off-by: Sean Christopherson <[email protected]> Tested-by: Dmitry Osipenko <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]> Message-ID: <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions