summaryrefslogtreecommitdiff
path: root/rust/kernel/ptr
diff options
context:
space:
mode:
authorYeoreum Yun <yeoreum.yun@arm.com>2026-03-14 17:51:32 +0000
committerCatalin Marinas <catalin.marinas@arm.com>2026-03-27 12:52:45 +0000
commit16dbe77a5be2defe5797cc33da87e33f72ef150c (patch)
tree704f000c2a14df5cb7834222d90e039395728e80 /rust/kernel/ptr
parent44adf2bf40efe56c68c1563779ab2047eb0a57ea (diff)
KVM: arm64: Use CAST instruction for swapping guest descriptor
Use the CAST instruction to swap the guest descriptor when FEAT_LSUI is enabled, avoiding the need to clear the PAN bit. FEAT_LSUI is introduced in Armv9.6, where FEAT_PAN is mandatory. However, this assumption may not always hold: - Some CPUs may advertise FEAT_LSUI but lack FEAT_PAN. - Virtualization or ID register overrides may expose invalid feature combinations. Therefore, instead of disabling FEAT_LSUI when FEAT_PAN is absent, wrap LSUI instructions with uaccess_ttbr0_enable()/disable() when ARM64_SW_TTBR0_PAN is enabled. Signed-off-by: Yeoreum Yun <yeoreum.yun@arm.com> Reviewed-by: Marc Zyngier <maz@kernel.org> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'rust/kernel/ptr')
0 files changed, 0 insertions, 0 deletions