From 5db9d4d18612bd5852bf663a40cf7bcf1ddc1b03 Mon Sep 17 00:00:00 2001 From: Luiz Capitulino Date: Mon, 5 Sep 2011 16:36:31 -0300 Subject: 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 --- sysemu.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sysemu.h') diff --git a/sysemu.h b/sysemu.h index 19088aa2dd..a01ddac564 100644 --- a/sysemu.h +++ b/sysemu.h @@ -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; -- cgit v1.2.3-55-g7522