diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2011-12-04 22:35:28 +0530 |
---|---|---|
committer | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2011-12-04 22:35:28 +0530 |
commit | e9a0152ba182c5ce9929ee60f83a37b61a1d5195 (patch) | |
tree | 1a6a1c10bac67acfd8ddb3a191d2e2380c457f93 /qerror.c | |
parent | 77eec1b3f1493ca4813eae2fbf8702d1ef58f147 (diff) | |
download | qemu-e9a0152ba182c5ce9929ee60f83a37b61a1d5195.tar.gz qemu-e9a0152ba182c5ce9929ee60f83a37b61a1d5195.tar.bz2 qemu-e9a0152ba182c5ce9929ee60f83a37b61a1d5195.zip |
hw/9pfs: use migration blockers to prevent live migration when virtfs export path is mounted
Now when you try to migrate with VirtFS export path mounted, you get a proper QMP error:
(qemu) migrate tcp:localhost:4444
Migration is disabled when VirtFS export path '/tmp/' is mounted in the guest using mount_tag 'v_tmp'
(qemu)
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Diffstat (limited to 'qerror.c')
-rw-r--r-- | qerror.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -235,6 +235,11 @@ static const QErrorStringTable qerror_table[] = { "supported by this qemu version: %(feature)", }, { + .error_fmt = QERR_VIRTFS_FEATURE_BLOCKS_MIGRATION, + .desc = "Migration is disabled when VirtFS export path '%(path)' " + "is mounted in the guest using mount_tag '%(tag)'", + }, + { .error_fmt = QERR_VNC_SERVER_FAILED, .desc = "Could not start VNC server on %(target)", }, |