diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2011-09-05 16:36:31 -0300 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2011-09-15 16:39:32 -0300 |
commit | 5db9d4d18612bd5852bf663a40cf7bcf1ddc1b03 (patch) | |
tree | 0e918a5f57979bd52f3e7467e562ee61babec1db /sysemu.h | |
parent | f5bbfba1ebe8c877ebfe846fc1e73e90da423884 (diff) | |
download | qemu-5db9d4d18612bd5852bf663a40cf7bcf1ddc1b03.tar.gz qemu-5db9d4d18612bd5852bf663a40cf7bcf1ddc1b03.tar.bz2 qemu-5db9d4d18612bd5852bf663a40cf7bcf1ddc1b03.zip |
runstate_set(): Check for valid transitions
This commit could have been folded with the previous one, however
doing it separately will allow for easy bisect and revert if needed.
Checking and testing all valid transitions wasn't trivial, chances
are this will need broader testing to become more stable.
This is a transition table as suggested by LluĂs Vilanova.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'sysemu.h')
-rw-r--r-- | sysemu.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -36,6 +36,7 @@ extern uint8_t qemu_uuid[]; int qemu_uuid_parse(const char *str, uint8_t *uuid); #define UUID_FMT "%02hhx%02hhx%02hhx%02hhx-%02hhx%02hhx-%02hhx%02hhx-%02hhx%02hhx-%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx" +void runstate_init(void); bool runstate_check(RunState state); void runstate_set(RunState new_state); typedef struct vm_change_state_entry VMChangeStateEntry; |