From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Jones Subject: Re: [PATCH v4 06/10] KVM: arm/arm64: vgic: Permit uaccess writes to return errors Date: Thu, 19 Jul 2018 18:31:55 +0200 Message-ID: <20180719163155.atqejnaf63njizyj@kamzik.brq.redhat.com> References: <1531746387-7033-1-git-send-email-christoffer.dall@arm.com> <1531746387-7033-7-git-send-email-christoffer.dall@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, Marc Zyngier , Andre Przywara , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org To: Christoffer Dall Return-path: Content-Disposition: inline In-Reply-To: <1531746387-7033-7-git-send-email-christoffer.dall@arm.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu List-Id: kvm.vger.kernel.org On Mon, Jul 16, 2018 at 03:06:23PM +0200, Christoffer Dall wrote: > Currently we do not allow any vgic mmio write operations to fail, which > makes sense from mmio traps from the guest. However, we should be able > to report failures to userspace, if userspace writes incompatible values > to read-only registers. Rework the internal interface to allow errors > to be returned on the write side for userspace writes. > > Signed-off-by: Christoffer Dall > --- > virt/kvm/arm/vgic/vgic-mmio-v3.c | 12 +++++++----- > virt/kvm/arm/vgic/vgic-mmio.c | 18 +++++++++++++----- > virt/kvm/arm/vgic/vgic-mmio.h | 19 +++++++++++-------- > 3 files changed, 31 insertions(+), 18 deletions(-) > Reviewed-by: Andrew Jones From mboxrd@z Thu Jan 1 00:00:00 1970 From: drjones@redhat.com (Andrew Jones) Date: Thu, 19 Jul 2018 18:31:55 +0200 Subject: [PATCH v4 06/10] KVM: arm/arm64: vgic: Permit uaccess writes to return errors In-Reply-To: <1531746387-7033-7-git-send-email-christoffer.dall@arm.com> References: <1531746387-7033-1-git-send-email-christoffer.dall@arm.com> <1531746387-7033-7-git-send-email-christoffer.dall@arm.com> Message-ID: <20180719163155.atqejnaf63njizyj@kamzik.brq.redhat.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Mon, Jul 16, 2018 at 03:06:23PM +0200, Christoffer Dall wrote: > Currently we do not allow any vgic mmio write operations to fail, which > makes sense from mmio traps from the guest. However, we should be able > to report failures to userspace, if userspace writes incompatible values > to read-only registers. Rework the internal interface to allow errors > to be returned on the write side for userspace writes. > > Signed-off-by: Christoffer Dall > --- > virt/kvm/arm/vgic/vgic-mmio-v3.c | 12 +++++++----- > virt/kvm/arm/vgic/vgic-mmio.c | 18 +++++++++++++----- > virt/kvm/arm/vgic/vgic-mmio.h | 19 +++++++++++-------- > 3 files changed, 31 insertions(+), 18 deletions(-) > Reviewed-by: Andrew Jones