> On Dec 16, 2021, at 9:10 AM, Stefan Hajnoczi <stefa...@redhat.com> 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, >> + bool is_io) >> +{ >> + AddressSpace *as = NULL; >> + MemTxResult res; >> + >> + if (is_io) { >> + as = &address_space_io; >> + } else { >> + as = pci_device_iommu_address_space(pci_dev); > > This access is not initiated by the device, it's coming from the CPU. It > shouldn't go through the IOMMU address space. Got it, thank you! -- Jag
- [PATCH v4 04/14] vfio-user: define vfio-user-server obje... Jagannathan Raman
- Re: [PATCH v4 04/14] vfio-user: define vfio-user-se... Stefan Hajnoczi
- Re: [PATCH v4 04/14] vfio-user: define vfio-user-se... Stefan Hajnoczi
- Re: [PATCH v4 04/14] vfio-user: define vfio-use... Jag Raman
- Re: [PATCH v4 04/14] vfio-user: define vfio... Stefan Hajnoczi
- [PATCH v4 03/14] vfio-user: build library Jagannathan Raman
- [PATCH v4 10/14] vfio-user: handle PCI BAR accesses Jagannathan Raman
- Re: [PATCH v4 10/14] vfio-user: handle PCI BAR acce... Stefan Hajnoczi
- Re: [PATCH v4 10/14] vfio-user: handle PCI BAR ... Jag Raman
- [PATCH v4 05/14] vfio-user: instantiate vfio-user contex... Jagannathan Raman
- Re: [PATCH v4 05/14] vfio-user: instantiate vfio-us... Stefan Hajnoczi
- [PATCH v4 13/14] vfio-user: register handlers to facilit... Jagannathan Raman
- [PATCH v4 06/14] vfio-user: find and init PCI device Jagannathan Raman
- Re: [PATCH v4 06/14] vfio-user: find and init PCI d... Stefan Hajnoczi
- [PATCH v4 08/14] vfio-user: handle PCI config space acce... Jagannathan Raman
- Re: [PATCH v4 08/14] vfio-user: handle PCI config s... Stefan Hajnoczi