diff options
author | Steven Price <steven.price@arm.com> | 2021-06-21 14:17:13 +0300 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2021-06-22 16:08:05 +0300 |
commit | e1f358b5046479d2897f23b1d5b092687c6e7a67 (patch) | |
tree | 2b99e61386b7a7c63bb55cc694b8787dce8a00c1 /arch/arm64/include/asm/kvm_arm.h | |
parent | ea7fc1bb1cd1b92b42b1d9273ce7e231d3dc9321 (diff) | |
download | linux-e1f358b5046479d2897f23b1d5b092687c6e7a67.tar.xz |
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
Diffstat (limited to 'arch/arm64/include/asm/kvm_arm.h')
-rw-r--r-- | arch/arm64/include/asm/kvm_arm.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm64/include/asm/kvm_arm.h b/arch/arm64/include/asm/kvm_arm.h index 692c9049befa..d436831dd706 100644 --- a/arch/arm64/include/asm/kvm_arm.h +++ b/arch/arm64/include/asm/kvm_arm.h @@ -12,7 +12,8 @@ #include <asm/types.h> /* Hyp Configuration Register (HCR) bits */ -#define HCR_ATA (UL(1) << 56) +#define HCR_ATA_SHIFT 56 +#define HCR_ATA (UL(1) << HCR_ATA_SHIFT) #define HCR_FWB (UL(1) << 46) #define HCR_API (UL(1) << 41) #define HCR_APK (UL(1) << 40) |