diff options
author | Marc Zyngier <maz@kernel.org> | 2020-10-29 20:17:23 +0300 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2020-11-10 14:22:51 +0300 |
commit | 1da42c34d7c42fe2840bfe3de83cd0b5aa374859 (patch) | |
tree | 5b933ad6e25b7205fbde2f269173f9180eb82db3 /arch/arm64/include/asm/kvm_host.h | |
parent | b1ea1d760d3331da19e33650bf8c09ce028a0a49 (diff) | |
download | linux-1da42c34d7c42fe2840bfe3de83cd0b5aa374859.tar.xz |
KVM: arm64: Map AArch32 cp14 register to AArch64 sysregs
Similarly to what has been done on the cp15 front, repaint the
debug registers to use their AArch64 counterparts. This results
in some simplification as we can remove the 32bit-specific
accessors.
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'arch/arm64/include/asm/kvm_host.h')
-rw-r--r-- | arch/arm64/include/asm/kvm_host.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/arch/arm64/include/asm/kvm_host.h b/arch/arm64/include/asm/kvm_host.h index c905c3fcaaa0..0d023e4f80a0 100644 --- a/arch/arm64/include/asm/kvm_host.h +++ b/arch/arm64/include/asm/kvm_host.h @@ -555,14 +555,6 @@ static inline bool __vcpu_write_sys_reg_to_cpu(u64 val, int reg) return true; } -/* - * CP14 and CP15 live in the same array, as they are backed by the - * same system registers. - */ -#define CPx_BIAS IS_ENABLED(CONFIG_CPU_BIG_ENDIAN) - -#define vcpu_cp14(v,r) ((v)->arch.ctxt.copro[(r) ^ CPx_BIAS]) - struct kvm_vm_stat { ulong remote_tlb_flush; }; |