aboutsummaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/181
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>2017-09-25 17:55:29 +0300
committerKevin Wolf <kwolf@redhat.com>2017-09-26 14:46:23 +0200
commit69ff158b677df0862b2f2639740c8fda5eb91599 (patch)
treeb0fb561fbe4573e6e9ead6f75ae0fd6c8fae6ffe /tests/qemu-iotests/181
parent3fb23e07516aae13d1ba566740c1c81ae12184b7 (diff)
downloadqemu-69ff158b677df0862b2f2639740c8fda5eb91599.zip
qemu-69ff158b677df0862b2f2639740c8fda5eb91599.tar.gz
qemu-69ff158b677df0862b2f2639740c8fda5eb91599.tar.bz2
iotests: fix 181: enable postcopy-ram capability on target
Migration capabilities should be enabled on both source and destination qemu processes. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/181')
-rwxr-xr-xtests/qemu-iotests/1812
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/qemu-iotests/181 b/tests/qemu-iotests/181
index 0333dda..0c91e8f 100755
--- a/tests/qemu-iotests/181
+++ b/tests/qemu-iotests/181
@@ -93,7 +93,9 @@ echo
# Slow down migration so much that it definitely won't finish before we can
# switch to postcopy
+# Enable postcopy-ram capability both on source and destination
silent=yes
+_send_qemu_cmd $dest 'migrate_set_capability postcopy-ram on' "(qemu)"
_send_qemu_cmd $src 'migrate_set_speed 4k' "(qemu)"
_send_qemu_cmd $src 'migrate_set_capability postcopy-ram on' "(qemu)"
_send_qemu_cmd $src "migrate -d unix:${MIG_SOCKET}" "(qemu)"