peterdelevoryas / rpms / qemu

Forked from rpms/qemu 2 years ago
Clone

Blame 0044-piix4-disable-io-on-reset.patch

298366
From ae00a27feab0ca12d2a802cfae9ee65ba3d43602 Mon Sep 17 00:00:00 2001
298366
From: "Michael S. Tsirkin" <mst@redhat.com>
298366
Date: Wed, 11 Sep 2013 13:33:31 +0300
298366
Subject: [PATCH] piix4: disable io on reset
298366
298366
io base register at 0x40 is cleared on reset,
298366
but io is not disabled until some other event
298366
happens to call pm_io_space_update.
298366
298366
Invoke pm_io_space_update directly to make this
298366
consistent.
298366
298366
Cc: qemu-stable@nongnu.org
298366
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
298366
(cherry picked from commit c046e8c4a26c902ca1b4f5bdf668a2da6bc75f54)
298366
298366
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
298366
---
298366
 hw/acpi/piix4.c | 1 +
298366
 1 file changed, 1 insertion(+)
298366
298366
diff --git a/hw/acpi/piix4.c b/hw/acpi/piix4.c
298366
index c885690..3aaf18c 100644
298366
--- a/hw/acpi/piix4.c
298366
+++ b/hw/acpi/piix4.c
298366
@@ -380,6 +380,7 @@ static void piix4_reset(void *opaque)
298366
         /* Mark SMM as already inited (until KVM supports SMM). */
298366
         pci_conf[0x5B] = 0x02;
298366
     }
298366
+    pm_io_space_update(s);
298366
     piix4_update_hotplug(s);
298366
 }
298366