]> git.proxmox.com Git - qemu.git/commitdiff
piix4: disable io on reset
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 11 Sep 2013 10:33:31 +0000 (13:33 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 15 Sep 2013 08:49:50 +0000 (11:49 +0300)
io base register at 0x40 is cleared on reset,
but io is not disabled until some other event
happens to call pm_io_space_update.

Invoke pm_io_space_update directly to make this
consistent.

Cc: qemu-stable@nongnu.org
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/acpi/piix4.c

index 0b8d1d9da9c10b4559bf5d06a492a875bc3b018a..b46bd5ea6afec9ea4b41f047bd0c471fc1b006a2 100644 (file)
@@ -380,6 +380,7 @@ static void piix4_reset(void *opaque)
         /* Mark SMM as already inited (until KVM supports SMM). */
         pci_conf[0x5B] = 0x02;
     }
+    pm_io_space_update(s);
     piix4_update_hotplug(s);
 }