Re: [PATCH v4 10/14] vfio-user: handle PCI BAR accesses

2021-12-17 Thread Jag Raman
> On Dec 16, 2021, at 9:10 AM, Stefan Hajnoczi wrote: > > On Wed, Dec 15, 2021 at 10:35:34AM -0500, Jagannathan Raman wrote: >> +static ssize_t vfu_object_bar_rw(PCIDevice *pci_dev, hwaddr addr, size_t >> count, >> + char * const buf, const bool is_write, >> +

Re: [PATCH v4 10/14] vfio-user: handle PCI BAR accesses

2021-12-16 Thread Stefan Hajnoczi
On Wed, Dec 15, 2021 at 10:35:34AM -0500, Jagannathan Raman wrote: > +static ssize_t vfu_object_bar_rw(PCIDevice *pci_dev, hwaddr addr, size_t > count, > + char * const buf, const bool is_write, > + bool is_io) > +{ > +AddressSpac

[PATCH v4 10/14] vfio-user: handle PCI BAR accesses

2021-12-15 Thread Jagannathan Raman
Determine the BARs used by the PCI device and register handlers to manage the access to the same. Signed-off-by: Elena Ufimtseva Signed-off-by: John G Johnson Signed-off-by: Jagannathan Raman Reviewed-by: Stefan Hajnoczi --- hw/remote/vfio-user-obj.c | 90 +