Re: [Qemu-devel] [PATCH 4/6] blkdebug: store list of active rules

2012-07-03 Thread Kevin Wolf
Am 03.07.2012 18:03, schrieb Paolo Bonzini: > Il 03/07/2012 17:40, Kevin Wolf ha scritto: case ACTION_INJECT_ERROR: -vars->inject_errno = rule->options.inject.error; -vars->inject_once= rule->options.inject.once; -vars->inject_immediate

Re: [Qemu-devel] [PATCH 4/6] blkdebug: store list of active rules

2012-07-03 Thread Paolo Bonzini
Il 03/07/2012 17:40, Kevin Wolf ha scritto: >> > case ACTION_INJECT_ERROR: >> > -vars->inject_errno = rule->options.inject.error; >> > -vars->inject_once= rule->options.inject.once; >> > -vars->inject_immediately = rule->options.inject.immediately; >> > +

Re: [Qemu-devel] [PATCH 4/6] blkdebug: store list of active rules

2012-07-03 Thread Kevin Wolf
Am 06.06.2012 08:10, schrieb Paolo Bonzini: > This prepares for the next patch, where some active rules may actually > not trigger depending on input to readv/writev. Store the active rules > in a SIMPLEQ (so that it can be emptied easily with QSIMPLEQ_INIT), and > fetch the errno/once/immediately

[Qemu-devel] [PATCH 4/6] blkdebug: store list of active rules

2012-06-06 Thread Paolo Bonzini
This prepares for the next patch, where some active rules may actually not trigger depending on input to readv/writev. Store the active rules in a SIMPLEQ (so that it can be emptied easily with QSIMPLEQ_INIT), and fetch the errno/once/immediately arguments from there. Signed-off-by: Paolo Bonzini