runstate_set(): Check for valid transitions
authorLuiz Capitulino <lcapitulino@redhat.com>
Mon, 5 Sep 2011 19:36:31 +0000 (16:36 -0300)
committerLuiz Capitulino <lcapitulino@redhat.com>
Thu, 15 Sep 2011 19:39:32 +0000 (16:39 -0300)
commit5db9d4d18612bd5852bf663a40cf7bcf1ddc1b03
tree0e918a5f57979bd52f3e7467e562ee61babec1db
parentf5bbfba1ebe8c877ebfe846fc1e73e90da423884
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>
sysemu.h
vl.c