Re: [PATCH v5 14/26] KVM: arm64/sve: Context switch the SVE registers

2019-02-27 Thread Dave Martin
On Tue, Feb 26, 2019 at 04:56:36PM +, Julien Grall wrote: > Hi Dave, > > On 26/02/2019 12:13, Dave Martin wrote: > >On Wed, Feb 20, 2019 at 04:46:57PM +, Julien Thierry wrote: > >> > >> > >>On 18/02/2019 19:52, Dave Martin wrote: > >>>In order to give each vcpu its own view of the SVE regi

Re: [PATCH v5 14/26] KVM: arm64/sve: Context switch the SVE registers

2019-02-26 Thread Julien Grall
Hi Dave, On 26/02/2019 12:13, Dave Martin wrote: On Wed, Feb 20, 2019 at 04:46:57PM +, Julien Thierry wrote: On 18/02/2019 19:52, Dave Martin wrote: In order to give each vcpu its own view of the SVE registers, this patch adds context storage via a new sve_state pointer in struct vcpu_ar

Re: [PATCH v5 14/26] KVM: arm64/sve: Context switch the SVE registers

2019-02-26 Thread Dave Martin
On Wed, Feb 20, 2019 at 04:46:57PM +, Julien Thierry wrote: > > > On 18/02/2019 19:52, Dave Martin wrote: > > In order to give each vcpu its own view of the SVE registers, this > > patch adds context storage via a new sve_state pointer in struct > > vcpu_arch. An additional member sve_max_vl

Re: [PATCH v5 14/26] KVM: arm64/sve: Context switch the SVE registers

2019-02-26 Thread Dave Martin
On Wed, Feb 20, 2019 at 04:19:18PM +, Mark Rutland wrote: > On Mon, Feb 18, 2019 at 07:52:27PM +, Dave Martin wrote: > > -static bool __hyp_text __hyp_switch_fpsimd(struct kvm_vcpu *vcpu) > > +/* Check for an FPSIMD/SVE trap and handle as appropriate */ > > +static bool __hyp_text __hyp_han

Re: [PATCH v5 14/26] KVM: arm64/sve: Context switch the SVE registers

2019-02-20 Thread Julien Thierry
On 18/02/2019 19:52, Dave Martin wrote: > In order to give each vcpu its own view of the SVE registers, this > patch adds context storage via a new sve_state pointer in struct > vcpu_arch. An additional member sve_max_vl is also added for each > vcpu, to determine the maximum vector length visi

Re: [PATCH v5 14/26] KVM: arm64/sve: Context switch the SVE registers

2019-02-20 Thread Mark Rutland
On Mon, Feb 18, 2019 at 07:52:27PM +, Dave Martin wrote: > -static bool __hyp_text __hyp_switch_fpsimd(struct kvm_vcpu *vcpu) > +/* Check for an FPSIMD/SVE trap and handle as appropriate */ > +static bool __hyp_text __hyp_handle_fpsimd(struct kvm_vcpu *vcpu) > { > - struct user_fpsimd_stat

[PATCH v5 14/26] KVM: arm64/sve: Context switch the SVE registers

2019-02-18 Thread Dave Martin
In order to give each vcpu its own view of the SVE registers, this patch adds context storage via a new sve_state pointer in struct vcpu_arch. An additional member sve_max_vl is also added for each vcpu, to determine the maximum vector length visible to the guest and thus the value to be configure