iotests: fix 181: enable postcopy-ram capability on target
PATCH 1/1 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 <[email protected]>
---
Hi all.
After my patch
commit 58110f0acb1a33e2bc60a2f1b26d2690a92e8a14
Author: Vladimir Sementsov-Ogievskiy <[email protected]>
Date: Mon Jul 10 19:30:16 2017 +0300
migration: split common postcopy out of ram postcopy
test 181 becomes broken. Sorry for that.
Actually, test 181 itself should be fixed, so, here is a fix. The problem was noted by Kevin, and it touches also some problems with image locking, which I don't see with my older kernel, so, please check is this patch fixes all problems.
tests/qemu-iotests/181 | 2 ++ tests/qemu-iotests/181.out | 1 - 2 files changed, 2 insertions(+), 1 deletion(-)
tests/qemu-iotests/181 +2 -0
@@ -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)"
tests/qemu-iotests/181.out +0 -1
@@ -20,7 +20,6 @@ read 65536/65536 bytes at offset 0 === Do some I/O on the destination === -QEMU X.Y.Z monitor - type 'help' for more information (qemu) qemu-io disk "read -P 0x55 0 64k" read 65536/65536 bytes at offset 0 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
Signature · 1 line
2.11.1