Re: [PATCH v4 13/34] KVM: arm64: Enable access to sanitized CPU features at EL2

2021-03-12 Thread Will Deacon
On Fri, Mar 12, 2021 at 06:34:09AM +, Quentin Perret wrote: > On Thursday 11 Mar 2021 at 19:36:39 (+), Will Deacon wrote: > > On Wed, Mar 10, 2021 at 05:57:30PM +, Quentin Perret wrote: > > > diff --git a/arch/arm64/kvm/sys_regs.c b/arch/arm64/kvm/sys_regs.c > > > index

Re: [PATCH v4 13/34] KVM: arm64: Enable access to sanitized CPU features at EL2

2021-03-11 Thread Quentin Perret
On Thursday 11 Mar 2021 at 19:36:39 (+), Will Deacon wrote: > On Wed, Mar 10, 2021 at 05:57:30PM +, Quentin Perret wrote: > > diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c > > index 066030717a4c..f2d8b479ff74 100644 > > --- a/arch/arm64/kernel/cpufeature.c >

Re: [PATCH v4 13/34] KVM: arm64: Enable access to sanitized CPU features at EL2

2021-03-11 Thread Will Deacon
On Wed, Mar 10, 2021 at 05:57:30PM +, Quentin Perret wrote: > Introduce the infrastructure in KVM enabling to copy CPU feature > registers into EL2-owned data-structures, to allow reading sanitised > values directly at EL2 in nVHE. > > Given that only a subset of these features are being read

[PATCH v4 13/34] KVM: arm64: Enable access to sanitized CPU features at EL2

2021-03-10 Thread Quentin Perret
Introduce the infrastructure in KVM enabling to copy CPU feature registers into EL2-owned data-structures, to allow reading sanitised values directly at EL2 in nVHE. Given that only a subset of these features are being read by the hypervisor, the ones that need to be copied are to be listed under