]> Git Repo - qemu.git/commitdiff
vfio: fix adding memory listener to the right address space
authorFrank Blaschka <[email protected]>
Fri, 19 Dec 2014 21:40:06 +0000 (14:40 -0700)
committerAlex Williamson <[email protected]>
Fri, 19 Dec 2014 21:40:06 +0000 (14:40 -0700)
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 <[email protected]>
Signed-off-by: Alex Williamson <[email protected]>
hw/misc/vfio.c

index 6c36c8b687ef691e89a1a48b9007e6bb0bbece43..51844cf70d5daaab1afb191994c2eec92b1eca93 100644 (file)
@@ -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;
This page took 0.03273 seconds and 4 git commands to generate.