[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 10/14] vfio-user: handle PCI BAR accesses
From: |
Stefan Hajnoczi |
Subject: |
Re: [PATCH v4 10/14] vfio-user: handle PCI BAR accesses |
Date: |
Thu, 16 Dec 2021 14:10:50 +0000 |
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.
signature.asc
Description: PGP signature
- Re: [PATCH v4 07/14] vfio-user: run vfio-user context, (continued)
[PATCH v4 08/14] vfio-user: handle PCI config space accesses, Jagannathan Raman, 2021/12/15
[PATCH v4 09/14] vfio-user: handle DMA mappings, Jagannathan Raman, 2021/12/15
[PATCH v4 10/14] vfio-user: handle PCI BAR accesses, Jagannathan Raman, 2021/12/15
- Re: [PATCH v4 10/14] vfio-user: handle PCI BAR accesses,
Stefan Hajnoczi <=
[PATCH v4 11/14] vfio-user: IOMMU support for remote device, Jagannathan Raman, 2021/12/15
[PATCH v4 12/14] vfio-user: handle device interrupts, Jagannathan Raman, 2021/12/15
[PATCH v4 13/14] vfio-user: register handlers to facilitate migration, Jagannathan Raman, 2021/12/15
[PATCH v4 14/14] vfio-user: avocado tests for vfio-user, Jagannathan Raman, 2021/12/15