]> xenbits.xen.org Git - xenclient/ioemu.git/commitdiff
passthrough: Allow slots 1e and 1f to be used
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 31 Mar 2009 15:52:24 +0000 (16:52 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 31 Mar 2009 15:52:24 +0000 (16:52 +0100)
This fixes an oversight in my recent patch "Allow any unused PCI device to
be used for pass-through" whereby attempts to use slots 1e and 1f for
pass-through would silently fail.

* This affects both static and manual selection of slots
* This affects both hot-plug and static pass-through

Signed-off-by: Simon Horman <horms@verge.net.au>
hw/piix4acpi.c

index b4a0c1a37a6691dc4b8a2580a17297bd68dc1938..4a361952635a4edad3dc457f91b994ea659a10ee 100644 (file)
@@ -320,9 +320,9 @@ static void php_slots_init(void)
     }
 
     /* ACPI PCI hotplug controller */
-    register_ioport_read(ACPI_PHP_IO_ADDR, NR_PCI_DEV, 1,
+    register_ioport_read(ACPI_PHP_IO_ADDR, NR_PCI_DEV + 2, 1,
                          acpi_php_readb, &php_slots);
-    register_ioport_write(ACPI_PHP_IO_ADDR, NR_PCI_DEV, 1,
+    register_ioport_write(ACPI_PHP_IO_ADDR, NR_PCI_DEV + 2, 1,
                           acpi_php_writeb, &php_slots);
     register_savevm("pcislots", 0, 1, pcislots_save, pcislots_load,
                     &php_slots);