aboutsummaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorQuentin Perret <[email protected]>2022-10-25 14:51:56 +0000
committerMarc Zyngier <[email protected]>2022-10-25 16:29:58 +0100
commit6853a71726b6f5930b4450889faf02e8f1cfe35c (patch)
treed21f598dfa01bf1c18572e81dded4adac61b5af2 /fs
parent247f34f7b80357943234f93f247a1ae6b6c3a740 (diff)
KVM: arm64: Use correct accessor to parse stage-1 PTEs
hyp_get_page_state() is used with pKVM to retrieve metadata about a page by parsing a hypervisor stage-1 PTE. However, it incorrectly uses a helper which parses *stage-2* mappings. Ouch. Luckily, pkvm_getstate() only looks at the software bits, which happen to be in the same place for stage-1 and stage-2 PTEs, and this all ends up working correctly by accident. But clearly, we should do better. Fix hyp_get_page_state() to use the correct helper. Fixes: e82edcc75c4e ("KVM: arm64: Implement do_share() helper for sharing memory") Signed-off-by: Quentin Perret <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions