Re: [PATCH RFC v2 09/16] vfio-user: region read/write

2021-09-10 Thread John Levon
On Fri, Sep 10, 2021 at 06:07:56AM +, John Johnson wrote: > >>> On Mon, Aug 16, 2021 at 09:42:42AM -0700, Elena Ufimtseva wrote: > >>> > +int vfio_user_region_write(VFIODevice *vbasedev, uint32_t index, > + uint64_t offset, uint32_t count, void *data) > >>>

Re: [PATCH RFC v2 09/16] vfio-user: region read/write

2021-09-09 Thread John Johnson
> On Sep 9, 2021, at 5:05 AM, John Levon wrote: > > On Thu, Sep 09, 2021 at 06:00:36AM +, John Johnson wrote: > >>> On Sep 7, 2021, at 10:24 AM, John Levon wrote: >>> >>> On Mon, Aug 16, 2021 at 09:42:42AM -0700, Elena Ufimtseva wrote: >>> +int vfio_user_region_write(VFIODevice *vb

Re: [PATCH RFC v2 09/16] vfio-user: region read/write

2021-09-09 Thread John Levon
On Thu, Sep 09, 2021 at 06:00:36AM +, John Johnson wrote: > > On Sep 7, 2021, at 10:24 AM, John Levon wrote: > > > > On Mon, Aug 16, 2021 at 09:42:42AM -0700, Elena Ufimtseva wrote: > > > >> +int vfio_user_region_write(VFIODevice *vbasedev, uint32_t index, > >> + u

Re: [PATCH RFC v2 09/16] vfio-user: region read/write

2021-09-08 Thread John Johnson
> On Sep 7, 2021, at 10:24 AM, John Levon wrote: > > On Mon, Aug 16, 2021 at 09:42:42AM -0700, Elena Ufimtseva wrote: > >> +int vfio_user_region_write(VFIODevice *vbasedev, uint32_t index, >> + uint64_t offset, uint32_t count, void *data) >> +{ >> +g_autofree VFIO

Re: [PATCH RFC v2 09/16] vfio-user: region read/write

2021-09-07 Thread John Levon
On Mon, Aug 16, 2021 at 09:42:42AM -0700, Elena Ufimtseva wrote: > +int vfio_user_region_write(VFIODevice *vbasedev, uint32_t index, > + uint64_t offset, uint32_t count, void *data) > +{ > +g_autofree VFIOUserRegionRW *msgp = NULL; > +int size = sizeof(*msgp) + co

Re: [PATCH RFC v2 09/16] vfio-user: region read/write

2021-09-07 Thread Stefan Hajnoczi
On Mon, Aug 16, 2021 at 09:42:42AM -0700, Elena Ufimtseva wrote: > diff --git a/hw/vfio/common.c b/hw/vfio/common.c > index 7d667b0533..a8b1ea9358 100644 > --- a/hw/vfio/common.c > +++ b/hw/vfio/common.c > @@ -215,6 +215,7 @@ void vfio_region_write(void *opaque, hwaddr addr, > uint32_t dwo

[PATCH RFC v2 09/16] vfio-user: region read/write

2021-08-16 Thread Elena Ufimtseva
From: John Johnson Signed-off-by: Elena Ufimtseva Signed-off-by: John G Johnson Signed-off-by: Jagannathan Raman --- hw/vfio/user-protocol.h | 12 hw/vfio/user.h | 4 hw/vfio/common.c| 16 +-- hw/vfio/user.c | 43 +++