Re: [PATCH v8 14/17] vfio-user: handle PCI BAR accesses

2022-04-25 Thread Jag Raman
> On Apr 25, 2022, at 6:05 AM, Stefan Hajnoczi wrote: > > On Tue, Apr 19, 2022 at 04:44:19PM -0400, Jagannathan Raman wrote: >> +static size_t vfu_object_bar_rw(PCIDevice *pci_dev, int pci_bar, >> +hwaddr bar_offset, char * const buf, >> +

Re: [PATCH v8 14/17] vfio-user: handle PCI BAR accesses

2022-04-25 Thread Stefan Hajnoczi
On Tue, Apr 19, 2022 at 04:44:19PM -0400, Jagannathan Raman wrote: > +static size_t vfu_object_bar_rw(PCIDevice *pci_dev, int pci_bar, > +hwaddr bar_offset, char * const buf, > +hwaddr len, const bool is_write) > +{ > +

[PATCH v8 14/17] vfio-user: handle PCI BAR accesses

2022-04-19 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 --- include/exec/memory.h | 3 + hw/remote/vfio-user-obj.c | 189