Skip to content

Don't "check" disabled drivers

Juan Quintela qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest25 patches 29 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/25configure: We don't want to clean configuration filesMakefile+1 -16 replies
2/25config: CONFIG_SERIAL* is already in pci.makdefault-configs/alpha-softmmu.mak default-configs/arm-softmmu.mak default-configs/hppa-softmmu.mak +8 more+0 -220 replies
3/25check: Use land/lor when possibletests/Makefile.include+4 -80 replies
4/25check: Only test vmxnet3 when it is compiled intests/Makefile.include+2 -21 reply
5/25check: Only test ne2000 when it is compiled intests/Makefile.include+2 -21 reply
6/25check: Only test eepro100 when it is compiled intests/Makefile.include+2 -21 reply
7/25check: Only test pcnet when it is compiled intests/Makefile.include+3 -31 reply
8/25check: Only test rtl8139 when it is compiled intests/Makefile.include+4 -41 reply
9/25check: Only test es1370 when it is compiled intests/Makefile.include+2 -21 reply
10/25check: Only test ac97 when it is compiled intests/Makefile.include+2 -21 reply
11/25check: Only test hda when it is compiled intests/Makefile.include+2 -21 reply
12/25check: Only test ipack when it is compiled intests/Makefile.include+4 -41 reply
13/25check: Only test isa-testdev when it is compiled intests/Makefile.include+9 -91 reply
14/25check: Only test ioh3420 when it is compiled intests/Makefile.include+2 -21 reply
15/25check: Only test i82801b11 when it is compiled intests/Makefile.include+2 -21 reply
16/25check: Only test sdhci when it is compiled intests/Makefile.include+3 -31 reply
17/25check: Only test wdt_ib700 when it is compiled intests/Makefile.include+2 -21 reply
18/25check: Only test pvpanic when it is compiled inhw/misc/pvpanic.c include/hw/misc/pvpanic.h tests/Makefile.include+12 -141 reply
19/25check: Only test nvme when it is compiled intests/Makefile.include+2 -21 reply
20/25check: Only test usb-xhci-nec when it is compiled intests/Makefile.include+4 -44 replies
21/25check: Only test usb-ohci when it is compiled intests/Makefile.include+4 -41 reply
22/25check: Only test usb-uhci devices when they are compiled intests/Makefile.include+4 -41 reply
23/25check: Only test usb-ehci when it is compiled intests/Makefile.include+2 -21 reply
24/25check: Only test ivshm when it is compiled intests/Makefile.include+3 -30 replies
25/25check: Only test tpm devices when they are compiled intests/Makefile.include+4 -40 replies

Reviews trailers per patch

18 of 25 patches have a Reviewed-by or Acked-by.

PatchThomas Huth
1/25
2/25
3/25
4/25R-b
5/25R-b
6/25R-b
7/25R-b
8/25R-b
9/25R-b
10/25R-b
11/25R-b
12/25R-b
13/25
14/25R-b
15/25R-b
16/25R-b
17/25R-b
18/25R-b
19/25R-b
20/25
21/25R-b
22/25R-b
23/25R-b
24/25
25/25

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 00/25] Don't "check" disabled drivers

Hi

We can disable drivers with "<foo>-softmmu/config-devices.mak". But if we remove drivers there and do "make check", we still try to test that devices (that are compiled in). This is a list with the removal of the ovbious ones.

While I was doing this I fonund:
- we remove <foo>-softmmu/config-devices.mak when we do make clean That is an "user" configuration file, we shouldn't do that.
- Use land/lor for consistence
- CONFIG_SERIAL was defined twice for all configurations that include pci.mak, fix it.
- pvpanic: We can do the same tricks that everywhere to be able to compile it out.

To do a better job, we are in trouble because we only have "config-devices.mak", but not config-devices.h, so we can't disable part of the tests/files when we don't want them. Bigger culprits here are usb and virtio devices, basically all of them depend of the others one way or another.

Motivation:

- I compile *lots* of times a day, so it is great to be able to compile less devices, it takes less time.
- But if I want to do make check, I need to compile basically a full configuration for that platform, so we are at square one.

There are still things that still take too long:
- e1000*/virtio-net pxe test. It takes more than one second for each, and we have e1000/virtio-net/e1000p/virtio-net(again).
- qom tests. We check _all_ machine types here. In fast mode, IMHO we would only want something like pc-3.0 and q35-30 in fast mode (in slow mode everything is ok).
- migration tests: yes, they also took around 5-6 seconds in total, and we are adding new tests. Something needs to be done here.

Time to do "make check" on my laptop (reasonably fast laptop from this Jannuary) is almost 3mins. This makes it too long to run continously for testing that I haven't broken anything.

In another submission I wil send some examples on "how" to disable other drivers that we can't do now. But it requires that we generate config-devices.h to be able to apply them (or yet more complicated things of registration, see how virtio devices needs to be disabled)

Please review, Juan.

Juan Quintela (25):
configure: We don't want to clean configuration files
config: CONFIG_SERIAL* is already in pci.mak
check: Use land/lor when possible
check: Only test vmxnet3 when it is compiled in
check: Only test ne2000 when it is compiled in
check: Only test eepro100 when it is compiled in
check: Only test pcnet when it is compiled in
check: Only test rtl8139 when it is compiled in
check: Only test es1370 when it is compiled in
check: Only test ac97 when it is compiled in
check: Only test hda when it is compiled in
check: Only test ipack when it is compiled in
check: Only test isa-testdev when it is compiled in
check: Only test ioh3420 when it is compiled in
check: Only test i82801b11 when it is compiled in
check: Only test sdhci when it is compiled in
check: Only test wdt_ib700 when it is compiled in
check: Only test pvpanic when it is compiled in
check: Only test nvme when it is compiled in
check: Only test usb-xhci-nec when it is compiled in
check: Only test usb-ohci when it is compiled in
check: Only test usb-uhci devices when they are compiled in
check: Only test usb-ehci when it is compiled in
check: Only test ivshm when it is compiled in
check: Only test tpm devices when they are compiled in

 Makefile                                |   2 +-
 default-configs/alpha-softmmu.mak       |   2 -
 default-configs/arm-softmmu.mak         |   2 -
 default-configs/hppa-softmmu.mak        |   3 -
 default-configs/i386-softmmu.mak        |   2 -
 default-configs/mips-softmmu-common.mak |   2 -
 default-configs/ppc-softmmu.mak         |   1 -
 default-configs/ppcemb-softmmu.mak      |   2 -
 default-configs/sh4-softmmu.mak         |   2 -
 default-configs/sh4eb-softmmu.mak       |   2 -
 default-configs/sparc64-softmmu.mak     |   2 -
 default-configs/x86_64-softmmu.mak      |   2 -
 hw/misc/pvpanic.c                       |  11 --
 include/hw/misc/pvpanic.h               |  11 +-
 tests/Makefile.include                  | 144 ++++++++++++------------
 15 files changed, 81 insertions(+), 109 deletions(-)
Signature · 1 line
2.17.1