]> xenbits.xen.org Git - xenclient/ioemu-pq.git/commitdiff
Don't allow mmio remapping for pass through device, for now.
authorJean Guyader <jean.guyader@eu.citrix.com>
Sun, 26 Jul 2009 00:49:17 +0000 (01:49 +0100)
committerJean Guyader <jean.guyader@eu.citrix.com>
Sun, 26 Jul 2009 00:49:17 +0000 (01:49 +0100)
master/dont-remap-passthrough-mmio [new file with mode: 0644]
master/series

diff --git a/master/dont-remap-passthrough-mmio b/master/dont-remap-passthrough-mmio
new file mode 100644 (file)
index 0000000..ece055b
--- /dev/null
@@ -0,0 +1,13 @@
+diff --git a/hw/pass-through.c b/hw/pass-through.c
+index 10904c9..100be0f 100644
+--- a/hw/pass-through.c
++++ b/hw/pass-through.c
+@@ -1010,7 +1010,7 @@ static void pt_iomem_map(PCIDevice *d, int i, uint32_t e_phys, uint32_t e_size,
+         e_phys, (unsigned long)assigned_device->bases[i].access.maddr,
+         type, e_size, i, first_map);
+-    if ( e_size == 0 )
++    if ( e_size == 0 || !first_map)
+         return;
+     if ( !first_map && old_ebase != -1 )
index 4789d5efff5c69de0f14a65fbb331854b038da1a..c02fbdcdf29cb1adc7a0989612041e880b47fec0 100644 (file)
@@ -19,3 +19,4 @@ ps2-passthrough
 alsa-fix
 alsa-config
 audio-volume-control
+dont-remap-passthrough-mmio