[RFC v2 REPOST] arm64: KVM: KVM API extensions for SVE

2018-01-26 Thread Dave Martin
Hi all, Reposting this to give people another chance to comment before I move ahead... ---8<--- Here's a second, slightly more complete stab at the KVM API extensions for SVE. I haven't started implementing in earnest yet, so any comments at this stage would be very helpful. [libvir-list read

Re: [RFC v2 REPOST] arm64: KVM: KVM API extensions for SVE

2018-02-05 Thread Christoffer Dall
Hi Dave, On Fri, Jan 26, 2018 at 05:28:49PM +, Dave Martin wrote: > New feature KVM_ARM_VCPU_SVE: > > * enables exposure of SVE to the guest > > * enables visibility of / access to KVM_REG_ARM_SVE_*() via KVM reg >ioctls. The main purposes of this are a) is to allow userspace to hide

Re: [RFC v2 REPOST] arm64: KVM: KVM API extensions for SVE

2018-02-06 Thread Dave Martin
On Mon, Feb 05, 2018 at 05:13:08PM +0100, Christoffer Dall wrote: > Hi Dave, > > On Fri, Jan 26, 2018 at 05:28:49PM +, Dave Martin wrote: > > New feature KVM_ARM_VCPU_SVE: > > > > * enables exposure of SVE to the guest > > > > * enables visibility of / access to KVM_REG_ARM_SVE_*() via KVM

Re: [RFC v2 REPOST] arm64: KVM: KVM API extensions for SVE

2018-02-06 Thread Christoffer Dall
On Tue, Feb 06, 2018 at 11:43:16AM +, Dave Martin wrote: > On Mon, Feb 05, 2018 at 05:13:08PM +0100, Christoffer Dall wrote: > > Hi Dave, > > > > On Fri, Jan 26, 2018 at 05:28:49PM +, Dave Martin wrote: > > > New feature KVM_ARM_VCPU_SVE: > > > > > > * enables exposure of SVE to the gues

Re: [RFC v2 REPOST] arm64: KVM: KVM API extensions for SVE

2018-02-07 Thread Dave Martin
On Tue, Feb 06, 2018 at 02:17:57PM +0100, Christoffer Dall wrote: > On Tue, Feb 06, 2018 at 11:43:16AM +, Dave Martin wrote: > > On Mon, Feb 05, 2018 at 05:13:08PM +0100, Christoffer Dall wrote: > > > Hi Dave, > > > > > > On Fri, Jan 26, 2018 at 05:28:49PM +, Dave Martin wrote: [...] > >

Re: [RFC v2 REPOST] arm64: KVM: KVM API extensions for SVE

2018-02-07 Thread Christoffer Dall
On Wed, Feb 07, 2018 at 11:33:28AM +, Dave Martin wrote: > On Tue, Feb 06, 2018 at 02:17:57PM +0100, Christoffer Dall wrote: > > On Tue, Feb 06, 2018 at 11:43:16AM +, Dave Martin wrote: > > > On Mon, Feb 05, 2018 at 05:13:08PM +0100, Christoffer Dall wrote: > > > > Hi Dave, > > > > > > > >

Re: [RFC v2 REPOST] arm64: KVM: KVM API extensions for SVE

2018-02-07 Thread Dave Martin
On Wed, Feb 07, 2018 at 03:58:31PM +0100, Christoffer Dall wrote: > On Wed, Feb 07, 2018 at 11:33:28AM +, Dave Martin wrote: [...] > > What if KVM_ARM_SVE_SET_VLS() were to yield 0 if the exact requested set > > of VLs was configured, -ERANGE if some subset was configured successfully > > (bu

Re: [RFC v2 REPOST] arm64: KVM: KVM API extensions for SVE

2018-02-07 Thread Christoffer Dall
On Wed, Feb 07, 2018 at 03:34:03PM +, Dave Martin wrote: > On Wed, Feb 07, 2018 at 03:58:31PM +0100, Christoffer Dall wrote: > > On Wed, Feb 07, 2018 at 11:33:28AM +, Dave Martin wrote: > > [...] > > > > What if KVM_ARM_SVE_SET_VLS() were to yield 0 if the exact requested set > > > of VLs

Re: [RFC v2 REPOST] arm64: KVM: KVM API extensions for SVE

2018-02-07 Thread Dave Martin
On Wed, Feb 07, 2018 at 05:17:50PM +0100, Christoffer Dall wrote: > On Wed, Feb 07, 2018 at 03:34:03PM +, Dave Martin wrote: > > On Wed, Feb 07, 2018 at 03:58:31PM +0100, Christoffer Dall wrote: > > > On Wed, Feb 07, 2018 at 11:33:28AM +, Dave Martin wrote: [...] > > > > Alternatively, us