aboutsummaryrefslogtreecommitdiff
path: root/qerror.h
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2011-11-14 15:09:44 -0600
committerAnthony Liguori <aliguori@us.ibm.com>2011-11-21 14:58:35 -0600
commit38e0735eb76a1479917ef3501a208d4f70998494 (patch)
tree4a41825899c8630890b7782bb314eac5739ee20c /qerror.h
parentfa2756b71b73e8cd94f7d8964ad5e2aca4d2691c (diff)
downloadqemu-38e0735eb76a1479917ef3501a208d4f70998494.zip
qemu-38e0735eb76a1479917ef3501a208d4f70998494.tar.gz
qemu-38e0735eb76a1479917ef3501a208d4f70998494.tar.bz2
ivshmem: use migration blockers to prevent live migration in peer mode (v2)
Now when you try to migrate with ivshmem, you get a proper QMP error: (qemu) migrate tcp:localhost:1025 Migration is disabled when using feature 'peer mode' in device 'ivshmem' (qemu) Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qerror.h')
-rw-r--r--qerror.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/qerror.h b/qerror.h
index d4bfcfd..7e2eebf 100644
--- a/qerror.h
+++ b/qerror.h
@@ -72,6 +72,9 @@ QError *qobject_to_qerror(const QObject *obj);
#define QERR_DEVICE_IN_USE \
"{ 'class': 'DeviceInUse', 'data': { 'device': %s } }"
+#define QERR_DEVICE_FEATURE_BLOCKS_MIGRATION \
+ "{ 'class': 'DeviceFeatureBlocksMigration', 'data': { 'device': %s, 'feature': %s } }"
+
#define QERR_DEVICE_LOCKED \
"{ 'class': 'DeviceLocked', 'data': { 'device': %s } }"