[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 10/14] vfio-user: handle PCI BAR accesses
From: |
Jag Raman |
Subject: |
Re: [PATCH v4 10/14] vfio-user: handle PCI BAR accesses |
Date: |
Fri, 17 Dec 2021 19:12:05 +0000 |
> On Dec 16, 2021, at 9:10 AM, Stefan Hajnoczi <stefanha@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 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
[PATCH v4 04/14] vfio-user: define vfio-user-server object, Jagannathan Raman, 2021/12/15