[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [RFC PATCH qemu v2 2/5] vfio: Skip PCI BARs in memory listene
From: |
Alexey Kardashevskiy |
Subject: |
[Qemu-ppc] [RFC PATCH qemu v2 2/5] vfio: Skip PCI BARs in memory listener |
Date: |
Tue, 14 Jul 2015 00:56:18 +1000 |
In some cases PCI BARs are registered as RAM via
memory_region_init_ram_ptr() and the vfio_memory_listener will be called
on them too. However DMA will not be performed to/from these regions so
just skip them.
Signed-off-by: Alexey Kardashevskiy <address@hidden>
---
hw/vfio/common.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/hw/vfio/common.c b/hw/vfio/common.c
index d115ec9..225cdc7 100644
--- a/hw/vfio/common.c
+++ b/hw/vfio/common.c
@@ -248,7 +248,8 @@ static bool
vfio_listener_skipped_section(MemoryRegionSection *section)
* are never accessed by the CPU and beyond the address width of
* some IOMMU hardware. TODO: VFIO should tell us the IOMMU width.
*/
- section->offset_within_address_space & (1ULL << 63);
+ section->offset_within_address_space & (1ULL << 63) ||
+ memory_region_is_skip_dump(section->mr);
}
static void vfio_iommu_map_notify(Notifier *n, void *data)
--
2.4.0.rc3.8.gfb3e7d5
- [Qemu-ppc] [RFC PATCH qemu v2 0/5] vfio: SPAPR IOMMU v2 (memory preregistration support), Alexey Kardashevskiy, 2015/07/13
- [Qemu-ppc] [RFC PATCH qemu v2 1/5] vfio: Switch from TARGET_PAGE_MASK to qemu_real_host_page_mask, Alexey Kardashevskiy, 2015/07/13
- [Qemu-ppc] [RFC PATCH qemu v2 5/5] vfio: spapr: Add SPAPR IOMMU v2 support (DMA memory preregistering), Alexey Kardashevskiy, 2015/07/13
- [Qemu-ppc] [RFC PATCH qemu v2 4/5] vfio: Refactor memory listener to accommodate more IOMMU types, Alexey Kardashevskiy, 2015/07/13
- [Qemu-ppc] [RFC PATCH qemu v2 2/5] vfio: Skip PCI BARs in memory listener,
Alexey Kardashevskiy <=
- [Qemu-ppc] [RFC PATCH qemu v2 3/5] vfio: Store IOMMU type in container, Alexey Kardashevskiy, 2015/07/13
- Re: [Qemu-ppc] [RFC PATCH qemu v2 0/5] vfio: SPAPR IOMMU v2 (memory preregistration support), Alex Williamson, 2015/07/13