Re: [PATCH v6 19/27] KVM: arm64: Enumerate SVE register indices for KVM_GET_REG_LIST

2019-03-28 Thread Julien Thierry
On 28/03/2019 16:48, Dave Martin wrote: > On Thu, Mar 28, 2019 at 02:29:23PM +, Julien Thierry wrote: >> >> >> On 28/03/2019 12:27, Dave Martin wrote: >>> On Wed, Mar 27, 2019 at 03:21:02PM +, Julien Thierry wrote: On 27/03/2019 10:33, Dave Martin wrote: > > [...] >

Re: [PATCH v6 19/27] KVM: arm64: Enumerate SVE register indices for KVM_GET_REG_LIST

2019-03-28 Thread Dave Martin
On Thu, Mar 28, 2019 at 02:29:23PM +, Julien Thierry wrote: > > > On 28/03/2019 12:27, Dave Martin wrote: > > On Wed, Mar 27, 2019 at 03:21:02PM +, Julien Thierry wrote: > >> > >> > >> On 27/03/2019 10:33, Dave Martin wrote: [...] > >>> return slices; > >>> } > >>> > >>> This may be c

Re: [PATCH v6 19/27] KVM: arm64: Enumerate SVE register indices for KVM_GET_REG_LIST

2019-03-28 Thread Julien Thierry
On 28/03/2019 12:27, Dave Martin wrote: > On Wed, Mar 27, 2019 at 03:21:02PM +, Julien Thierry wrote: >> >> >> On 27/03/2019 10:33, Dave Martin wrote: >>> On Wed, Mar 27, 2019 at 09:47:42AM +, Julien Thierry wrote: Hi Dave, On 19/03/2019 17:52, Dave Martin wrote: > > [...

Re: [PATCH v6 19/27] KVM: arm64: Enumerate SVE register indices for KVM_GET_REG_LIST

2019-03-28 Thread Dave Martin
On Wed, Mar 27, 2019 at 03:21:02PM +, Julien Thierry wrote: > > > On 27/03/2019 10:33, Dave Martin wrote: > > On Wed, Mar 27, 2019 at 09:47:42AM +, Julien Thierry wrote: > >> Hi Dave, > >> > >> On 19/03/2019 17:52, Dave Martin wrote: [...] > >>> +static unsigned long num_sve_regs(const

Re: [PATCH v6 19/27] KVM: arm64: Enumerate SVE register indices for KVM_GET_REG_LIST

2019-03-27 Thread Julien Thierry
On 27/03/2019 10:33, Dave Martin wrote: > On Wed, Mar 27, 2019 at 09:47:42AM +, Julien Thierry wrote: >> Hi Dave, >> >> On 19/03/2019 17:52, Dave Martin wrote: >>> This patch includes the SVE register IDs in the list returned by >>> KVM_GET_REG_LIST, as appropriate. >>> >>> On a non-SVE-enab

Re: [PATCH v6 19/27] KVM: arm64: Enumerate SVE register indices for KVM_GET_REG_LIST

2019-03-27 Thread Dave Martin
On Wed, Mar 27, 2019 at 09:47:42AM +, Julien Thierry wrote: > Hi Dave, > > On 19/03/2019 17:52, Dave Martin wrote: > > This patch includes the SVE register IDs in the list returned by > > KVM_GET_REG_LIST, as appropriate. > > > > On a non-SVE-enabled vcpu, no new IDs are added. > > > > On an

Re: [PATCH v6 19/27] KVM: arm64: Enumerate SVE register indices for KVM_GET_REG_LIST

2019-03-27 Thread Julien Thierry
Hi Dave, On 19/03/2019 17:52, Dave Martin wrote: > This patch includes the SVE register IDs in the list returned by > KVM_GET_REG_LIST, as appropriate. > > On a non-SVE-enabled vcpu, no new IDs are added. > > On an SVE-enabled vcpu, IDs for the FPSIMD V-registers are removed > from the list, sin

[PATCH v6 19/27] KVM: arm64: Enumerate SVE register indices for KVM_GET_REG_LIST

2019-03-19 Thread Dave Martin
This patch includes the SVE register IDs in the list returned by KVM_GET_REG_LIST, as appropriate. On a non-SVE-enabled vcpu, no new IDs are added. On an SVE-enabled vcpu, IDs for the FPSIMD V-registers are removed from the list, since userspace is required to access the Z- registers instead in o