mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-26 20:40:24 +09:00
The VMM may not wish to have it's own mapping of guest memory mapped
with PROT_MTE because this causes problems if the VMM has tag checking
enabled (the guest controls the tags in physical RAM and it's unlikely
the tags are correct for the VMM).
Instead add a new ioctl which allows the VMM to easily read/write the
tags from guest memory, allowing the VMM's mapping to be non-PROT_MTE
while the VMM can still read/write the tags for the purpose of
migration.
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Steven Price <steven.price@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210621111716.37157-6-steven.price@arm.com
(cherry picked from commit f0376edb1d)
Signed-off-by: Will Deacon <willdeacon@google.com>
Bug: 192636784
Change-Id: I2f1ea19d9f2bdbdd3025934b770468b1404020c6