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 <christoffer.dall@xxxxxxx> > --- > 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 <drjones@xxxxxxxxxx>