From: Avi Kivity <[email protected]>

This reverts commit c0b1905b285800cfd1a797347efeac8338bfa655.  It breaks
Windows XP install autotest - Windows seems to drop to lose hibernate
support with this patch.

Signed-off-by: Avi Kivity <[email protected]>

diff --git a/hw/pci.c b/hw/pci.c
index e4d088e..4472910 100644
--- a/hw/pci.c
+++ b/hw/pci.c
@@ -95,20 +95,7 @@ static inline int pci_bar(int reg)
 
 static void pci_device_reset(PCIDevice *dev)
 {
-    int r;
-
     memset(dev->irq_state, 0, sizeof dev->irq_state);
-    dev->config[PCI_COMMAND] &= ~(PCI_COMMAND_IO | PCI_COMMAND_MEMORY |
-                                  PCI_COMMAND_MASTER);
-    dev->config[PCI_CACHE_LINE_SIZE] = 0x0;
-    dev->config[PCI_INTERRUPT_LINE] = 0x0;
-    for (r = 0; r < PCI_NUM_REGIONS; ++r) {
-        if (!dev->io_regions[r].size) {
-            continue;
-        }
-        pci_set_long(dev->config + pci_bar(r), dev->io_regions[r].type);
-    }
-    pci_update_mappings(dev);
 }
 
 static void pci_bus_reset(void *opaque)
--
To unsubscribe from this list: send the line "unsubscribe kvm-commits" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to