KVM: arm64: Save/restore MTE registers
authorSteven Price <steven.price@arm.com>
Mon, 21 Jun 2021 11:17:13 +0000 (12:17 +0100)
committerMarc Zyngier <maz@kernel.org>
Tue, 22 Jun 2021 13:08:05 +0000 (14:08 +0100)
commite1f358b5046479d2897f23b1d5b092687c6e7a67
tree2b99e61386b7a7c63bb55cc694b8787dce8a00c1
parentea7fc1bb1cd1b92b42b1d9273ce7e231d3dc9321
KVM: arm64: Save/restore MTE registers

Define the new system registers that MTE introduces and context switch
them. The MTE feature is still hidden from the ID register as it isn't
supported in a VM yet.

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-4-steven.price@arm.com
arch/arm64/include/asm/kvm_arm.h
arch/arm64/include/asm/kvm_host.h
arch/arm64/include/asm/kvm_mte.h [new file with mode: 0644]
arch/arm64/include/asm/sysreg.h
arch/arm64/kernel/asm-offsets.c
arch/arm64/kvm/hyp/entry.S
arch/arm64/kvm/hyp/include/hyp/sysreg-sr.h
arch/arm64/kvm/sys_regs.c