]> xenbits.xensource.com Git - qemu-xen-4.0-testing.git/commitdiff
Disable another remnant of PCI IO space multiplex, for stubdom
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 29 May 2009 14:03:17 +0000 (15:03 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 29 May 2009 14:03:17 +0000 (15:03 +0100)
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
hw/pass-through.c

index 314213a50cc6241528873015e8fe883803f761b0..0960360d759f3dee028691bffa0cafe58978f507 100644 (file)
@@ -3864,11 +3864,13 @@ static int pt_cmd_reg_restore(struct pt_dev *ptdev,
      */
     restorable_mask = reg->emu_mask & ~PCI_COMMAND_FAST_BACK;
     *value = PT_MERGE_VALUE(*value, dev_value, restorable_mask);
+#ifndef CONFIG_STUBDOM
     if ( pt_is_iomul(ptdev) ) {
         *value &= ~PCI_COMMAND_IO;
         if (ioctl(ptdev->fd, PCI_IOMUL_DISABLE_IO))
             PT_LOG("error: %s: %s\n", __func__, strerror(errno));
     }
+#endif
 
     if (!ptdev->machine_irq)
         *value |= PCI_COMMAND_DISABLE_INTx;