Re: [PATCH v2 3/3] KVM: arm64: Drop the CPU_FTR_REG_HYP_COPY infrastructure

2021-03-23 Thread Quentin Perret
On Monday 22 Mar 2021 at 17:56:39 (+), Marc Zyngier wrote: > 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 nee

[PATCH v2 3/3] KVM: arm64: Drop the CPU_FTR_REG_HYP_COPY infrastructure

2021-03-22 Thread Marc Zyngier
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. Signed-off-by: Marc Zyngier --- arch/arm64/include/asm/cpufeature.h