aboutsummaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2011-10-14 12:36:50 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2011-10-14 12:36:50 -0500
commit2a22e6eb1b516a16ed2dd6c15da9a1e5b3455371 (patch)
tree25929b08103e952a07a6bfb4f6676ab957b835e0 /monitor.c
parent210b3a70383b0bcc4266856431491b39dcb4f14d (diff)
parent09f085d59dcca7cccc76a22ad4e5cc70e3ff2bdd (diff)
Merge remote-tracking branch 'kwolf/for-anthony' into staging
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/monitor.c b/monitor.c
index 31b212aa6b..1a2895633e 100644
--- a/monitor.c
+++ b/monitor.c
@@ -1221,6 +1221,11 @@ struct bdrv_iterate_context {
int err;
};
+static void iostatus_bdrv_it(void *opaque, BlockDriverState *bs)
+{
+ bdrv_iostatus_reset(bs);
+}
+
/**
* do_cont(): Resume emulation.
*/
@@ -1237,6 +1242,7 @@ static int do_cont(Monitor *mon, const QDict *qdict, QObject **ret_data)
return -1;
}
+ bdrv_iterate(iostatus_bdrv_it, NULL);
bdrv_iterate(encrypted_bdrv_it, &context);
/* only resume the vm if all keys are set and valid */
if (!context.err) {