]> xenbits.xensource.com Git - people/andrewcoop/seabios.git/commit
shadow: Don't invoke a shutdown on reboot unless in a reboot loop
authorKevin O'Connor <kevin@koconnor.net>
Fri, 23 Feb 2018 01:29:27 +0000 (20:29 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Fri, 23 Feb 2018 01:38:23 +0000 (20:38 -0500)
commit42812e062a77b27b0544c8e0d46d206afc3b2fae
treedac5f390de49c66aff7fd885c91f624d976e5910
parentaf0daeb2687ad2595482b8a71b02a082a5672ceb
shadow: Don't invoke a shutdown on reboot unless in a reboot loop

Old versions of KVM would map the same writable copy of the BIOS at
both 0x000f0000 and 0xffff0000.  As a result, a reboot on these
machines would result in a reboot loop.  So, the code attempts to
check for that situation and invoke a shutdown instead.

Commit b837e68d changed the check to run prior to the first reboot.
However, this broke reboots on the QEMU isapc machine type.  Change
the reboot loop check to only be invoked after at least one reboot has
been attempted.

Reported-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/fw/shadow.c