KVM: arm64: Drop the CPU_FTR_REG_HYP_COPY infrastructure
authorMarc Zyngier <maz@kernel.org>
Mon, 22 Mar 2021 13:32:34 +0000 (13:32 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 25 Mar 2021 11:01:03 +0000 (11:01 +0000)
commit7c4199375ae347449fbde43cc8bf174ae6383d8e
tree15403240bf72e0c6f8c23f2bfbe6b6b6e339c854
parent755db23420a1ce4b740186543432983e9bbe713e
KVM: arm64: Drop the CPU_FTR_REG_HYP_COPY infrastructure

Now that the read_ctr macro has been specialised for nVHE,
the whole CPU_FTR_REG_HYP_COPY infrastrcture looks completely
overengineered.

Simplify it by populating the two u64 quantities (MMFR0 and 1)
that the hypervisor need.

Reviewed-by: Quentin Perret <qperret@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/cpufeature.h
arch/arm64/include/asm/kvm_cpufeature.h [deleted file]
arch/arm64/include/asm/kvm_host.h
arch/arm64/include/asm/kvm_hyp.h
arch/arm64/kernel/cpufeature.c
arch/arm64/kvm/arm.c
arch/arm64/kvm/hyp/nvhe/hyp-smp.c
arch/arm64/kvm/hyp/nvhe/mem_protect.c
arch/arm64/kvm/sys_regs.c