Skip to contentSkip to conversation

tests: switch pxe and vm gen id tests to use kvm

PATCH New Michael S. Tsirkin 1 participant 1 message Jul 13, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests: switch pxe and vm gen id tests to use kvm

Speed up tests on host systems with kvm by using it.

---
 tests/pxe-test.c     | 2 +-
 tests/vmgenid-test.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
tests/pxe-test.c +1 -1
index 34282d3..cf6e225 100644
@@ -25,7 +25,7 @@ static void test_pxe_one(const char *params, bool ipv6)
 {
     char *args;
 
-    args = g_strdup_printf("-machine accel=tcg -nodefaults -boot order=n "
+    args = g_strdup_printf("-machine accel=kvm:tcg -nodefaults -boot order=n "
                            "-netdev user,id=" NETNAME ",tftp=./,bootfile=%s,"
                            "ipv4=%s,ipv6=%s %s", disk, ipv6 ? "off" : "on",
                            ipv6 ? "on" : "off", params);
tests/vmgenid-test.c +1 -1
index 0556ba2..6477dcc 100644
@@ -132,7 +132,7 @@ static char disk[] = "tests/vmgenid-test-disk-XXXXXX";
 
 static char *guid_cmd_strdup(const char *guid)
 {
-    return g_strdup_printf("-machine accel=tcg "
+    return g_strdup_printf("-machine accel=kvm:tcg "
                            "-device vmgenid,id=testvgid,guid=%s "
                            "-drive id=hd0,if=none,file=%s,format=raw "
                            "-device ide-hd,drive=hd0 ",
Signature · 1 line
MST