diff options
| author | Peter Maydell <peter.maydell@linaro.org> | 2014-03-19 13:47:22 +0000 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2014-03-19 13:47:22 +0000 |
| commit | c1b94a0ed2332b08ea7799c003c3ee9996782a3c (patch) | |
| tree | b263954ef8abf2e8c92cba8841c57c822b090f60 /migration.c | |
| parent | 319c66d5abfb30553895589d24b70043639ad06d (diff) | |
| parent | 198fd05c357afff22f0b0e02639937519ed49b1f (diff) | |
| download | focaccia-qemu-c1b94a0ed2332b08ea7799c003c3ee9996782a3c.tar.gz focaccia-qemu-c1b94a0ed2332b08ea7799c003c3ee9996782a3c.zip | |
Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging
Block patches for 2.0.0-rc1 # gpg: Signature made Wed 19 Mar 2014 13:03:27 GMT using RSA key ID C88F2FD6 # gpg: Good signature from "Kevin Wolf <kwolf@redhat.com>" * remotes/kevin/tags/for-upstream: dataplane: fix implicit IOThread refcount block/nfs: report errors from libnfs block/nfs: bump libnfs requirement to 1.9.3 qcow2: Fix fail path in realloc_refcount_block() qcow2: Correct comment for realloc_refcount_block() qemu-io: Extended "--cmd" description in usage text qemu-io-cmds: Fixed typo in example for writev. block: Add error handling to bdrv_invalidate_cache() Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'migration.c')
| -rw-r--r-- | migration.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/migration.c b/migration.c index 00f465ea46..e0e24d42c7 100644 --- a/migration.c +++ b/migration.c @@ -101,6 +101,7 @@ void qemu_start_incoming_migration(const char *uri, Error **errp) static void process_incoming_migration_co(void *opaque) { QEMUFile *f = opaque; + Error *local_err = NULL; int ret; ret = qemu_loadvm_state(f); @@ -115,7 +116,12 @@ static void process_incoming_migration_co(void *opaque) bdrv_clear_incoming_migration_all(); /* Make sure all file formats flush their mutable metadata */ - bdrv_invalidate_cache_all(); + bdrv_invalidate_cache_all(&local_err); + if (local_err) { + qerror_report_err(local_err); + error_free(local_err); + exit(EXIT_FAILURE); + } if (autostart) { vm_start(); |