drivers/virt: pkvm: Intercept ioremap using pKVM MMIO_GUARD hypercall
authorWill Deacon <will@kernel.org>
Fri, 30 Aug 2024 13:01:49 +0000 (14:01 +0100)
committerWill Deacon <will@kernel.org>
Fri, 30 Aug 2024 15:30:41 +0000 (16:30 +0100)
commit0f12694958001c96bda811473fdb23f333c6d3ca
tree89427b8cf9699902c19ade73e40057f6bcaf7ce3
parentc86fa3470c1026e9f63a93e8885ea51ef99fae35
drivers/virt: pkvm: Intercept ioremap using pKVM MMIO_GUARD hypercall

Hook up pKVM's MMIO_GUARD hypercall so that ioremap() and friends will
register the target physical address as MMIO with the hypervisor,
allowing guest exits to that page to be emulated by the host with full
syndrome information.

Acked-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20240830130150.8568-7-will@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
Documentation/virt/kvm/arm/hypercalls.rst
drivers/virt/coco/pkvm-guest/arm-pkvm-guest.c
include/linux/arm-smccc.h