s390x/ipl: fix reboots for migration from different bios
commit025c4e39f479eb498ee63b634d961a4cf357773e
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Thu, 9 Jun 2016 13:36:41 +0000 (9 15:36 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 5 Aug 2016 20:26:37 +0000 (5 15:26 -0500)
treee44c1f39e22b4d6943b60d4af56825345feba78f
parent82c85167791f0057752c2084f8480bf19401f314
s390x/ipl: fix reboots for migration from different bios

When migrating from a different QEMU version, the start_address and
bios_start_address may differ. During migration these values are migrated
and overwrite the values that were detected by QEMU itself.

On a reboot, QEMU will reload its own BIOS, but use the migrated start
addresses, which does not work if the values differ.

Fix this by not relying on the migrated values anymore, but still
provide them during migration, so existing QEMUs continue to work.

Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
(cherry picked from commit bb0995468a39f14077ceaa8ed5afdca849f00c7c)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/s390x/ipl.c
hw/s390x/ipl.h