From: Simon Horman Subject: [patch] qemu-xen: pass-through: Allow slots 1e and 1f to be used Date: Tue, 31 Mar 2009 18:32:01 +1100 Message-ID: <20090331073200.GA29511@verge.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Ian Jackson , Keir Fraser , Dexuan Cui List-Id: xen-devel@lists.xenproject.org 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 --- Please consider for inclusion in 3.4 Index: ioemu-remote/hw/piix4acpi.c =================================================================== --- ioemu-remote.orig/hw/piix4acpi.c 2009-03-31 18:21:29.000000000 +1100 +++ ioemu-remote/hw/piix4acpi.c 2009-03-31 18:22:23.000000000 +1100 @@ -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);