pc:piix4: Update smbus I/O space after a migration
authorCorey Minyard <cminyard@mvista.com>
Mon, 26 Nov 2018 18:28:44 +0000 (12:28 -0600)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 19 Dec 2018 21:48:16 +0000 (16:48 -0500)
Otherwise it won't be set up correctly and won't work after
miigration.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
Cc: Igor Mammedov <imammedo@redhat.com>
Cc: qemu-stable@nongnu.org
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/acpi/piix4.c

index e330f24c71e0f9a5afc319cfbaac7edbc29e0b20..2f4dd03b83552a9f3ffe98d1299d662623c8e56e 100644 (file)
@@ -173,6 +173,7 @@ static int vmstate_acpi_post_load(void *opaque, int version_id)
     PIIX4PMState *s = opaque;
 
     pm_io_space_update(s);
+    smbus_io_space_update(s);
     return 0;
 }