]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
arm64: kvm: mte: Hide the MTE CPUID information from the guests
authorCatalin Marinas <catalin.marinas@arm.com>
Wed, 26 Aug 2020 17:52:59 +0000 (18:52 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 4 Sep 2020 11:45:44 +0000 (12:45 +0100)
commit2ac638fc5724f011f8ba1b425667c5592e1571ce
tree741a3e52cba63d3d019e495f44ed041ce8a0e810
parent3b714d24ef173f81c78af16f73dcc9b40428c803
arm64: kvm: mte: Hide the MTE CPUID information from the guests

KVM does not support MTE in guests yet, so clear the corresponding field
in the ID_AA64PFR1_EL1 register. In addition, inject an undefined
exception in the guest if it accesses one of the GCR_EL1, RGSR_EL1,
TFSR_EL1 or TFSRE0_EL1 registers. While the emulate_sys_reg() function
already injects an undefined exception, this patch prevents the
unnecessary printk.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Steven Price <steven.price@arm.com>
Acked-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/sys_regs.c