« Previous | Next » 

Revision 8f96b5be

ID8f96b5be92fbd74798b97b1dc1ff5fbbe249ed11

Added by Paolo Bonzini over 11 years ago

blkdebug: process all set_state rules in the old state

Currently it is impossible to write a blkdebug script that ping-pongs
between two states, because the second set-state rule will use the
state that is set in the first. If you have

[set-state]
event = "..."
state = "1"
new_state = "2"
[set-state]
event = "..."
state = "2"
new_state = "1"

for example the state will remain locked at 1. This can be fixed
by first processing all rules, and then setting the state.

Signed-off-by: Paolo Bonzini <>
Reviewed-by: Eric Blake <>
Signed-off-by: Kevin Wolf <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences