aboutsummaryrefslogtreecommitdiff
path: root/gdbstub.h
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2010-09-24 16:08:06 +0100
committerBlue Swirl <blauwirbel@gmail.com>2010-12-12 13:10:55 +0000
commit36888c6335422f07bbc50bf3443a39f24b90c7c6 (patch)
treedc83339d92d931d8e3e96c82052e507975d40ac6 /gdbstub.h
parent962630f207a33b7de4316022884b5241e05491cd (diff)
Watchdog: disable watchdog timer when hard-rebooting a guest.
This commit causes the watchdog timer to be reset when a guest is hard-rebooted. The failure case previously was as follows: (a) guest boots, watchdog is enabled (b) guest does a reset eg: echo 'b' > /proc/sysrq-trigger (note that an ordinary /sbin/reboot wouldn't hit this case since as the watchdog daemon is shut down, the daemon would properly disable the watchdog device) (c) the reboot takes longer than the remaining time on the watchdog (d) the watchdog therefore fires during the reboot (e) probably the VM would just reboot again at this point which is pretty benign, but it could depend on the action that the user had selected for the watchdog Now we use the qdev reset function to register a reset handler which disables the timer. Note the handler is called _either_ just after init _or_ when the guest reboots. In the i6300esb case there is a small refactoring of the code so that the device's internal state is now fully restored to defaults on a reboot. Signed-off-by: Richard W.M. Jones <rjones@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'gdbstub.h')
0 files changed, 0 insertions, 0 deletions