qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-block] [PATCH v8 30/36] tests/postcopy: Use shared lock for images


From: Fam Zheng
Subject: [Qemu-block] [PATCH v8 30/36] tests/postcopy: Use shared lock for images
Date: Fri, 30 Sep 2016 20:10:00 +0800

Signed-off-by: Fam Zheng <address@hidden>
---
 tests/postcopy-test.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/tests/postcopy-test.c b/tests/postcopy-test.c
index 41ed1a9..3ec4d01 100644
--- a/tests/postcopy-test.c
+++ b/tests/postcopy-test.c
@@ -371,12 +371,14 @@ static void test_migrate(void)
         cmd_src = g_strdup_printf("-machine accel=kvm:tcg -m 150M"
                                   " -name pcsource,debug-threads=on"
                                   " -serial file:%s/src_serial"
-                                  " -drive file=%s,format=raw",
+                                  " -drive 
file=%s,format=raw,if=none,id=drive1"
+                                  " -device 
ide-hd,drive=drive1,lock-mode=shared",
                                   tmpfs, bootpath);
         cmd_dst = g_strdup_printf("-machine accel=kvm:tcg -m 150M"
                                   " -name pcdest,debug-threads=on"
                                   " -serial file:%s/dest_serial"
-                                  " -drive file=%s,format=raw"
+                                  " -drive 
file=%s,format=raw,if=none,id=drive2"
+                                  " -device 
ide-hd,drive=drive2,lock-mode=shared"
                                   " -incoming %s",
                                   tmpfs, bootpath, uri);
     } else if (strcmp(arch, "ppc64") == 0) {
@@ -384,7 +386,8 @@ static void test_migrate(void)
         cmd_src = g_strdup_printf("-machine accel=kvm:tcg -m 256M"
                                   " -name pcsource,debug-threads=on"
                                   " -serial file:%s/src_serial"
-                                  " -drive file=%s,if=pflash,format=raw",
+                                  " -drive 
file=%s,if=none,format=raw,id=drive3"
+                                  " -device 
pflash,drive=drive3,lock-mode=shared",
                                   tmpfs, bootpath);
         cmd_dst = g_strdup_printf("-machine accel=kvm:tcg -m 256M"
                                   " -name pcdest,debug-threads=on"
-- 
2.7.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]