tests: switch pxe and vm gen id tests to use kvm
PATCH 1/1 tests: switch pxe and vm gen id tests to use kvm
Speed up tests on host systems with kvm support.
---
This is on top of my previous patch fixing vmgenid.
PPC PXE test is reported to be especially slow - does anyone care to try it and measure whether this helps?
tests/pxe-test.c | 2 +- tests/vmgenid-test.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
tests/pxe-test.c +1 -1
@@ -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
@@ -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
Quoted 36 lines · Michael S. Tsirkin
Speed up tests on host systems with kvm support.
Cc Paolo Bonzini <[email protected]>Cc Thomas Huth <[email protected]>Cc Laurent Vivier <[email protected]>Signed-off-by Michael S. Tsirkin <[email protected]>---
This is on top of my previous patch fixing vmgenid.
PPC PXE test is reported to be especially slow - does anyone care to try it and measure whether this helps?
tests/pxe-test.c | 2 +- tests/vmgenid-test.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)tests/pxe-test.c +1
-1@@ -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 +0
-0
tests/vmgenid-test.c static char disk[] = "tests/vmgenid-test-disk-XXXXXX"; · line 138
Quoted 8 lines
tests/vmgenid-test.c +1
-1@@ -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 ",
Thanks,
Paolo
Thomas Huth
NAKQuoted 37 lines · Paolo Bonzini
Quoted 36 lines · Michael S. Tsirkin
Speed up tests on host systems with kvm support.
Cc Paolo Bonzini <[email protected]>Cc Thomas Huth <[email protected]>Cc Laurent Vivier <[email protected]>Signed-off-by Michael S. Tsirkin <[email protected]>---
This is on top of my previous patch fixing vmgenid.
PPC PXE test is reported to be especially slow - does anyone care to try it and measure whether this helps?
tests/pxe-test.c | 2 +- tests/vmgenid-test.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)tests/pxe-test.c +1
-1@@ -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 +0
-0@@ -132,7 +132,7 @@ static char disk[] = "tests/vmgenid-test-disk-XXXXXX";
Quoted 9 lines
tests/vmgenid-test.c static char disk[] = "tests/vmgenid-test-disk-XXXXXX"; · line 138
Quoted 7 lines
tests/vmgenid-test.c +1
-1static 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 ",Acked-by Paolo Bonzini <[email protected]>
NACK.
It's not that simple. If you do it like this, you then suddenly get these ugly '"kvm" accelerator not found' messages during "make check" which we really should avoid.
Laurent suggested some better ideas a couple of months ago, but I think the common sense was rather "unit tests should always use TCG" at that point in time:
https://lists.gnu.org/archive/html/qemu-devel/2016-10/msg00400.html
Well, now that we've got the "--disable-tcg" configure option, we should maybe start to reconsider that ;-)
So I'm fine with the patch if you also include Laurent's patch to shut up the error message:
https://lists.gnu.org/archive/html/qemu-devel/2016-10/msg00395.html
Thomas
Quoted 6 lines
NACK.
It's not that simple. If you do it like this, you then suddenly get these ugly '"kvm" accelerator not found' messages during "make check" which we really should avoid.
You're right, I thought these were shut up before with Laurent's patch. I think we should print a single message at the end, like
qemu: -machine accel=kvm:xen: No accelerator found
Paolo
Quoted 16 lines
Laurent suggested some better ideas a couple of months ago, but I think the common sense was rather "unit tests should always use TCG" at that point in time:
https://lists.gnu.org/archive/html/qemu-devel/2016-10/msg00400.html
Well, now that we've got the "--disable-tcg" configure option, we should maybe start to reconsider that ;-)
So I'm fine with the patch if you also include Laurent's patch to shut up the error message:
https://lists.gnu.org/archive/html/qemu-devel/2016-10/msg00395.html
Thomas
Quoted 7 lines · Paolo Bonzini
Quoted 6 lines
NACK.
It's not that simple. If you do it like this, you then suddenly get these ugly '"kvm" accelerator not found' messages during "make check" which we really should avoid.
Quoted 6 lines
You're right, I thought these were shut up before with Laurent's patch. I think we should print a single message at the end, like
qemu: -machine accel=kvm:xen: No accelerator found
Paolo
That's exactly Laurent's patch, isn't it?
Quoted 16 lines
Quoted 16 lines
Laurent suggested some better ideas a couple of months ago, but I think the common sense was rather "unit tests should always use TCG" at that point in time:
https://lists.gnu.org/archive/html/qemu-devel/2016-10/msg00400.html
Well, now that we've got the "--disable-tcg" configure option, we should maybe start to reconsider that ;-)
So I'm fine with the patch if you also include Laurent's patch to shut up the error message:
https://lists.gnu.org/archive/html/qemu-devel/2016-10/msg00395.html
Thomas
Quoted 48 lines · Thomas Huth
Quoted 37 lines · Paolo Bonzini
Quoted 36 lines · Michael S. Tsirkin
Speed up tests on host systems with kvm support.
Cc Paolo Bonzini <[email protected]>Cc Thomas Huth <[email protected]>Cc Laurent Vivier <[email protected]>Signed-off-by Michael S. Tsirkin <[email protected]>---
This is on top of my previous patch fixing vmgenid.
PPC PXE test is reported to be especially slow - does anyone care to try it and measure whether this helps?
tests/pxe-test.c | 2 +- tests/vmgenid-test.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)tests/pxe-test.c +1
-1@@ -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 +0
-0@@ -132,7 +132,7 @@ static char disk[] = "tests/vmgenid-test-disk-XXXXXX";Quoted 9 lines
tests/vmgenid-test.c static char disk[] = "tests/vmgenid-test-disk-XXXXXX"; · line 138
Quoted 7 lines
tests/vmgenid-test.c +1
-1static 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 ",Acked-by Paolo Bonzini <[email protected]>
Quoted 1 line
NACK.
As a rule, don't send nacks please. Skip directly to the technical argument. Nacks add very little to the discussion and tend to scare away contributors. All upper case also looks like shouting. That's unlike acks which include reviewer's name and can be recorded in git history so people know whom to ask questions about a commit.
Quoted 9 lines
It's not that simple. If you do it like this, you then suddenly get these ugly '"kvm" accelerator not found' messages during "make check" which we really should avoid.
Laurent suggested some better ideas a couple of months ago, but I think the common sense was rather "unit tests should always use TCG" at that point in time:
https://lists.gnu.org/archive/html/qemu-devel/2016-10/msg00400.html
Looks good. This was never posted as a patch. Would you or him care to test it and re-post? I'll include it with my patch.
Quoted 9 lines
Well, now that we've got the "--disable-tcg" configure option, we should maybe start to reconsider that ;-)
So I'm fine with the patch if you also include Laurent's patch to shut up the error message:
https://lists.gnu.org/archive/html/qemu-devel/2016-10/msg00395.html
Thomas
Quoted 8 lines · Michael S. Tsirkin
Quoted 7 lines · Paolo Bonzini
Quoted 6 lines
NACK.
It's not that simple. If you do it like this, you then suddenly get these ugly '"kvm" accelerator not found' messages during "make check" which we really should avoid.
Quoted 9 lines
Quoted 6 lines
You're right, I thought these were shut up before with Laurent's patch. I think we should print a single message at the end, like
qemu: -machine accel=kvm:xen: No accelerator found
Paolo
That's exactly Laurent's patch, isn't it?
Do you want I send an updated and a more formal patch?
Thanks,
Laurent
Quoted 4 lines · Michael S. Tsirkin
Quoted 3 lines · Thomas Huth
Quoted 2 lines · Paolo Bonzini
Quoted 1 line · Michael S. Tsirkin
Speed up tests on host systems with kvm support.
[...]
Quoted 16 lines
Quoted 16 lines
Quoted 15 lines
tests/vmgenid-test.c static char disk[] = "tests/vmgenid-test-disk-XXXXXX"; · line 138
Quoted 13 lines
tests/vmgenid-test.c +1
-1@@ -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 ",Acked-by Paolo Bonzini <[email protected]>
Quoted 5 lines
Quoted 1 line
NACK.
As a rule, don't send nacks please. Skip directly to the technical argument. Nacks add very little to the discussion and tend to scare away contributors.
I hope I won't scare *you* away that easily ;-) But ok, I got the message, and will try to remember it.
Quoted 4 lines
Quoted 4 lines
It's not that simple. If you do it like this, you then suddenly get these ugly '"kvm" accelerator not found' messages during "make check" which we really should avoid.
Quoted 8 lines
Quoted 5 lines
Laurent suggested some better ideas a couple of months ago, but I think the common sense was rather "unit tests should always use TCG" at that point in time:
https://lists.gnu.org/archive/html/qemu-devel/2016-10/msg00400.html
Looks good. This was never posted as a patch. Would you or him care to test it and re-post? I'll include it with my patch.
That URL points to Paolo's "we should always only use TCG mail" ... I guess you are rather referring to the other URL below?
Thomas
Quoted 9 lines
Quoted 9 lines
Well, now that we've got the "--disable-tcg" configure option, we should maybe start to reconsider that ;-)
So I'm fine with the patch if you also include Laurent's patch to shut up the error message:
https://lists.gnu.org/archive/html/qemu-devel/2016-10/msg00395.html
Thomas
Quoted 16 lines · Laurent Vivier
Quoted 15 lines · Michael S. Tsirkin
Quoted 13 lines · Paolo Bonzini
Quoted 6 lines
NACK.
It's not that simple. If you do it like this, you then suddenly get these ugly '"kvm" accelerator not found' messages during "make check" which we really should avoid.
You're right, I thought these were shut up before with Laurent's patch. I think we should print a single message at the end, like
qemu: -machine accel=kvm:xen: No accelerator found
Paolo
Quoted 7 lines
Quoted 2 lines
That's exactly Laurent's patch, isn't it?
Do you want I send an updated and a more formal patch?
Thanks,
Laurent
Yes pls.