[PATCH v2 07/14] KVM: arm64/sve: Make register ioctl access errors more consistent

2019-04-18 Thread Dave Martin
Currently, the way error codes are generated when processing the SVE register access ioctls in a bit haphazard. This patch refactors the code so that the behaviour is more consistent: now, -EINVAL should be returned only for unrecognised register IDs or when some other runtime error occurs. -ENOE

Re: [PATCH v2 07/14] KVM: arm64/sve: Make register ioctl access errors more consistent

2019-04-25 Thread Alex Bennée
Dave Martin writes: > Currently, the way error codes are generated when processing the > SVE register access ioctls in a bit haphazard. > > This patch refactors the code so that the behaviour is more > consistent: now, -EINVAL should be returned only for unrecognised > register IDs or when some

Re: [PATCH v2 07/14] KVM: arm64/sve: Make register ioctl access errors more consistent

2019-04-25 Thread Dave Martin
On Thu, Apr 25, 2019 at 01:30:29PM +0100, Alex Bennée wrote: > > Dave Martin writes: > > > Currently, the way error codes are generated when processing the > > SVE register access ioctls in a bit haphazard. > > > > This patch refactors the code so that the behaviour is more > > consistent: now,

Re: [PATCH v2 07/14] KVM: arm64/sve: Make register ioctl access errors more consistent

2019-04-25 Thread Alex Bennée
Dave Martin writes: > On Thu, Apr 25, 2019 at 01:30:29PM +0100, Alex Bennée wrote: >> >> Dave Martin writes: >> >> > Currently, the way error codes are generated when processing the >> > SVE register access ioctls in a bit haphazard. >> > >> > This patch refactors the code so that the behaviour

Re: [PATCH v2 07/14] KVM: arm64/sve: Make register ioctl access errors more consistent

2019-04-25 Thread Dave Martin
On Thu, Apr 25, 2019 at 04:04:36PM +0100, Alex Bennée wrote: > > Dave Martin writes: > > > On Thu, Apr 25, 2019 at 01:30:29PM +0100, Alex Bennée wrote: > >> > >> Dave Martin writes: > >> > >> > Currently, the way error codes are generated when processing the > >> > SVE register access ioctls in