[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 02/14] vfio: fix adding memory listener to the right
From: |
Alex Williamson |
Subject: |
[Qemu-devel] [PULL 02/14] vfio: fix adding memory listener to the right address space |
Date: |
Mon, 22 Dec 2014 13:43:21 -0700 |
User-agent: |
StGit/0.17-dirty |
From: Frank Blaschka <address@hidden>
Depending on the device, container->space->as contains the valid AddressSpace.
Using address_space_memory breaks devices sitting behind an iommu (and using
a separate address space).
Signed-off-by: Frank Blaschka <address@hidden>
Signed-off-by: Alex Williamson <address@hidden>
---
hw/misc/vfio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/misc/vfio.c b/hw/misc/vfio.c
index 6c36c8b..51844cf 100644
--- a/hw/misc/vfio.c
+++ b/hw/misc/vfio.c
@@ -3713,7 +3713,7 @@ static int vfio_connect_container(VFIOGroup *group,
AddressSpace *as)
container->iommu_data.release = vfio_listener_release;
memory_listener_register(&container->iommu_data.type1.listener,
- &address_space_memory);
+ container->space->as);
if (container->iommu_data.type1.error) {
ret = container->iommu_data.type1.error;
- [Qemu-devel] [PULL 00/14] QEMU: VFIO updates, Alex Williamson, 2014/12/22
- [Qemu-devel] [PULL 01/14] vfio: migration to trace points, Alex Williamson, 2014/12/22
- [Qemu-devel] [PULL 02/14] vfio: fix adding memory listener to the right address space,
Alex Williamson <=
- [Qemu-devel] [PULL 04/14] hw/vfio/pci: Rename VFIODevice into VFIOPCIDevice, Alex Williamson, 2014/12/22
- [Qemu-devel] [PULL 05/14] hw/vfio/pci: generalize mask/unmask to any IRQ index, Alex Williamson, 2014/12/22
- [Qemu-devel] [PULL 06/14] hw/vfio/pci: introduce minimalist VFIODevice with fd, Alex Williamson, 2014/12/22
- [Qemu-devel] [PULL 07/14] hw/vfio/pci: add type, name and group fields in VFIODevice, Alex Williamson, 2014/12/22
- [Qemu-devel] [PULL 08/14] hw/vfio/pci: handle reset at VFIODevice, Alex Williamson, 2014/12/22
- [Qemu-devel] [PULL 09/14] hw/vfio/pci: Introduce VFIORegion, Alex Williamson, 2014/12/22
- [Qemu-devel] [PULL 10/14] hw/vfio/pci: split vfio_get_device, Alex Williamson, 2014/12/22
- [Qemu-devel] [PULL 11/14] hw/vfio/pci: rename group_list into vfio_group_list, Alex Williamson, 2014/12/22
- [Qemu-devel] [PULL 12/14] hw/vfio/pci: use name field in format strings, Alex Williamson, 2014/12/22
- [Qemu-devel] [PULL 13/14] hw/vfio: create common module, Alex Williamson, 2014/12/22