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.h | |
parent | 77eec1b3f1493ca4813eae2fbf8702d1ef58f147 (diff) | |
download | qemu-e9a0152ba182c5ce9929ee60f83a37b61a1d5195.zip qemu-e9a0152ba182c5ce9929ee60f83a37b61a1d5195.tar.gz qemu-e9a0152ba182c5ce9929ee60f83a37b61a1d5195.tar.bz2 |
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.h')
-rw-r--r-- | qerror.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -192,6 +192,9 @@ QError *qobject_to_qerror(const QObject *obj); #define QERR_UNKNOWN_BLOCK_FORMAT_FEATURE \ "{ 'class': 'UnknownBlockFormatFeature', 'data': { 'device': %s, 'format': %s, 'feature': %s } }" +#define QERR_VIRTFS_FEATURE_BLOCKS_MIGRATION \ + "{ 'class': 'VirtFSFeatureBlocksMigration', 'data': { 'path': %s, 'tag': %s } }" + #define QERR_VNC_SERVER_FAILED \ "{ 'class': 'VNCServerFailed', 'data': { 'target': %s } }" |