From: Avi Kivity <[email protected]> The generic pci reset introduced by c0b1905b28580 breaks Windows XP suspend. Disable it.
Signed-off-by: Avi Kivity <[email protected]> diff --git a/hw/pci.c b/hw/pci.c index f4fdc1e..ca7dd73 100644 --- a/hw/pci.c +++ b/hw/pci.c @@ -109,9 +109,12 @@ static int pci_bar(PCIDevice *d, int reg) static void pci_device_reset(PCIDevice *dev) { +#ifdef THIS_BREAKS_WINXP_SUSPEND int r; +#endif memset(dev->irq_state, 0, sizeof dev->irq_state); +#ifdef THIS_BREAKS_WINXP_SUSPEND dev->config[PCI_COMMAND] &= ~(PCI_COMMAND_IO | PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER); dev->config[PCI_CACHE_LINE_SIZE] = 0x0; @@ -123,6 +126,7 @@ static void pci_device_reset(PCIDevice *dev) pci_set_long(dev->config + pci_bar(dev, r), dev->io_regions[r].type); } pci_update_mappings(dev); +#endif } 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
