]> git.baikalelectronics.ru Git - 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)
commitaa091898b56e1c813b1125522bd9104b5be3773d
tree741a3e52cba63d3d019e495f44ed041ce8a0e810
parentb6d6d324c3cda46a4a8fe1c7a1f5c9f56747376e
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