diff options
author | Luiz Capitulino | 2011-09-30 19:45:27 +0200 |
---|---|---|
committer | Luiz Capitulino | 2011-10-04 16:02:57 +0200 |
commit | 0461d5a699cb8825039400b76839115e35b73d65 (patch) | |
tree | b206b04b7fe56eb1ea153d7c3866d070244f9e1b /hw/watchdog.c | |
parent | RunState: Drop the RSTATE_NO_STATE value (diff) | |
download | qemu-0461d5a699cb8825039400b76839115e35b73d65.tar.gz qemu-0461d5a699cb8825039400b76839115e35b73d65.tar.xz qemu-0461d5a699cb8825039400b76839115e35b73d65.zip |
RunState: Rename enum values as generated by the QAPI
Next commit will convert the query-status command to use the
RunState type as generated by the QAPI.
In order to "transparently" replace the current enum by the QAPI
one, we have to make some changes to some enum values.
As the changes are simple renames, I'll do them in one shot. The
changes are:
- Rename the prefix from RSTATE_ to RUN_STATE_
- RUN_STATE_SAVEVM to RUN_STATE_SAVE_VM
- RUN_STATE_IN_MIGRATE to RUN_STATE_INMIGRATE
- RUN_STATE_PANICKED to RUN_STATE_INTERNAL_ERROR
- RUN_STATE_POST_MIGRATE to RUN_STATE_POSTMIGRATE
- RUN_STATE_PRE_LAUNCH to RUN_STATE_PRELAUNCH
- RUN_STATE_PRE_MIGRATE to RUN_STATE_PREMIGRATE
- RUN_STATE_RESTORE to RUN_STATE_RESTORE_VM
- RUN_STATE_PRE_MIGRATE to RUN_STATE_FINISH_MIGRATE
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'hw/watchdog.c')
-rw-r--r-- | hw/watchdog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/watchdog.c b/hw/watchdog.c index 71c6c7df63..4c18965654 100644 --- a/hw/watchdog.c +++ b/hw/watchdog.c @@ -132,7 +132,7 @@ void watchdog_perform_action(void) case WDT_PAUSE: /* same as 'stop' command in monitor */ watchdog_mon_event("pause"); - vm_stop(RSTATE_WATCHDOG); + vm_stop(RUN_STATE_WATCHDOG); break; case WDT_DEBUG: |