mirror of https://github.com/xemu-project/xemu.git
tests: switch pxe and vm gen id tests to use kvm
Speed up tests on host systems with kvm support. Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: Thomas Huth <thuth@redhat.com> Cc: Laurent Vivier <lvivier@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
7d48cf8102
commit
2cef91cf49
|
@ -25,7 +25,7 @@ static void test_pxe_one(const char *params, bool ipv6)
|
||||||
{
|
{
|
||||||
char *args;
|
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,"
|
"-netdev user,id=" NETNAME ",tftp=./,bootfile=%s,"
|
||||||
"ipv4=%s,ipv6=%s %s", disk, ipv6 ? "off" : "on",
|
"ipv4=%s,ipv6=%s %s", disk, ipv6 ? "off" : "on",
|
||||||
ipv6 ? "on" : "off", params);
|
ipv6 ? "on" : "off", params);
|
||||||
|
|
|
@ -132,7 +132,7 @@ static char disk[] = "tests/vmgenid-test-disk-XXXXXX";
|
||||||
|
|
||||||
static char *guid_cmd_strdup(const char *guid)
|
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 "
|
"-device vmgenid,id=testvgid,guid=%s "
|
||||||
"-drive id=hd0,if=none,file=%s,format=raw "
|
"-drive id=hd0,if=none,file=%s,format=raw "
|
||||||
"-device ide-hd,drive=hd0 ",
|
"-device ide-hd,drive=hd0 ",
|
||||||
|
|
Loading…
Reference in New Issue