Skip to contentSkip to conversation

Don't check disabled drivers

PATCH In review Juan Quintela 4 participants 42 messages Aug 22, 2018 – Aug 28, 2018 Kbuild

lore
Share & tools
lore
#0 lore raw

v3 cover Don't check disabled drivers

Hi

In this v3 series:
- Redo the make clean removal of config-devices.mak

- Remove the CONFIG_SERIAL bits, real solution require more thought (I tried to run boot-serial-test on all the architectures with serial and it was not good). Too many coments, will try to do some cleanup first.

- isa-testdev: I think that one is ok now
- remove x86_64-softmmu instead of i386-softmmu, consistence is great.
- ivshm: it is trivial
- endiannes: I think now it is correct

- xhci-nec: Now also check for ppc64. I was tying to test xhci (and the other hcds) all architectures. Let's say that it was not pretty either.

This are the patches that I think that are ready to go, please review.

Later, Juan

[v2]
this are the patches from v1 that have been reviewed. Minor changes in spelled done. I expect to move those for 3.1. I will post the changes and additons on top of this one.

Complain now, or I will send the pull once 3.1 opens.

ToDo:
- I am working on virtio-pci being split
- I plan to integrate virtio-ccw split from Thomas
- I started trying to "untangle" q35 and piix, but it is really deppe tangled.

Should I sent the pull request directly, or go through maintainers?

Thanks, Juan.

[v2]
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 (10):
configure: We don't want to clean configuration files
check: Use land/lor when possible
check: Only test isa-testdev when it is compiled in
check: Only test usb-xhci-nec when it is compiled in
x86_64-softmmu: Configuration is identical to i386-softmmu
check: Only test ivshm when it is compiled in
check: Only test boot-serial when sga is compiled in
check: Move VMXNET3 test to common
check: Move endianess test to common
check: Move wdt_ib700 test to common

 Makefile                           |  3 +-
 default-configs/x86_64-softmmu.mak | 67 +-----------------------------
 tests/Makefile.include             | 51 ++++++++---------------
 3 files changed, 21 insertions(+), 100 deletions(-)
Signature · 1 line
2.17.1
#1 lore raw

PATCH v3 1/10 configure: We don't want to clean configuration files

If you don't want to compile everything, you configure config-devices.mak. And then make clean remove it, and make will create a default one without your configuration. Fix it by not removing it on clean target. Remove it instead on distclean.

--

Remove it instead on distclean.

---
 Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Makefile +2 -1
index b7c6e57de6..fe623e4634 100644
@@ -752,7 +752,7 @@ clean:
 	if test -d $$d; then $(MAKE) -C $$d $@ || exit 1; fi; \
 	rm -f $$d/qemu-options.def; \
         done
-	rm -f $(SUBDIR_DEVICES_MAK) config-all-devices.mak
+	rm -f config-all-devices.mak
 
 VERSION ?= $(shell cat VERSION)
 
@@ -764,6 +764,7 @@ qemu-%.tar.bz2:
 distclean: clean
 	rm -f config-host.mak config-host.h* config-host.ld $(DOCS) qemu-options.texi qemu-img-cmds.texi qemu-monitor.texi qemu-monitor-info.texi
 	rm -f config-all-devices.mak config-all-disas.mak config.status
+	rm -f $(SUBDIR_DEVICES_MAK)
 	rm -f po/*.mo tests/qemu-iotests/common.env
 	rm -f roms/seabios/config.mak roms/vgabios/config.mak
 	rm -f qemu-doc.info qemu-doc.aux qemu-doc.cp qemu-doc.cps
Signature · 1 line
2.17.1
Reviewed-by on v3 1/10
#2 lore raw

Re: [Qemu-devel] [PATCH v3 01/10] configure: We don't want to clean configuration files

Quoted 4 lines · Juan Quintela

If you don't want to compile everything, you configure config-devices.mak. And then make clean remove it, and make will create a default one without your configuration. Fix it by not removing it on clean target. Remove it instead on distclean.

Sounds like a good idea!

Quoted 7 lines

--

Remove it instead on distclean.

Please remove the duplicated Sob. Then you can add:

#3 lore raw

Re: [Qemu-devel] [PATCH v3 01/10] configure: We don't want to clean configuration files

Quoted 10 lines · Thomas Huth
Quoted 4 lines · Juan Quintela

If you don't want to compile everything, you configure config-devices.mak. And then make clean remove it, and make will create a default one without your configuration. Fix it by not removing it on clean target. Remove it instead on distclean.

Sounds like a good idea!

Quoted 2 lines
Quoted 7 lines
Quoted 5 lines

--

Remove it instead on distclean.

Please remove the duplicated Sob. Then you can add:

Done, thanks.

Quoted 1 line
#4 lore raw

PATCH v3 2/10 check: Use land/lor when possible

In reply to Juan Quintela

So everythig is (a bit) more consistent

---
 tests/Makefile.include | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)
tests/Makefile.include +4 -8
index 6dc8d06f4c..a705793381 100644
@@ -98,11 +98,9 @@ check-unit-y += tests/test-block-backend$(EXESUF)
 check-unit-y += tests/test-x86-cpuid$(EXESUF)
 # all code tested by test-x86-cpuid is inside topology.h
 gcov-files-test-x86-cpuid-y =
-ifeq ($(CONFIG_SOFTMMU),y)
-check-unit-y += tests/test-xbzrle$(EXESUF)
-gcov-files-test-xbzrle-y = migration/xbzrle.c
-check-unit-$(CONFIG_POSIX) += tests/test-vmstate$(EXESUF)
-endif
+check-unit-$(CONFIG_SOFTMMU) += tests/test-xbzrle$(EXESUF)
+gcov-files-test-xbzrle-$(CONFIG_SOFTMMU) = migration/xbzrle.c
+check-unit-$(call land, $(CONFIG_SOFTMMU), $(CONFIG_POSIX)) += tests/test-vmstate$(EXESUF)
 check-unit-y += tests/test-cutils$(EXESUF)
 gcov-files-test-cutils-y += util/cutils.c
 check-unit-y += tests/test-shift128$(EXESUF)
@@ -299,9 +297,7 @@ check-qtest-i386-y += tests/q35-test$(EXESUF)
 check-qtest-i386-y += tests/vmgenid-test$(EXESUF)
 gcov-files-i386-y += hw/pci-host/q35.c
 check-qtest-i386-$(CONFIG_VHOST_USER_NET_TEST_i386) += tests/vhost-user-test$(EXESUF)
-ifeq ($(CONFIG_VHOST_USER_NET_TEST_i386),)
-check-qtest-x86_64-$(CONFIG_VHOST_USER_NET_TEST_x86_64) += tests/vhost-user-test$(EXESUF)
-endif
+check-qtest-x86_64-$(call lor, $(CONFIG_VHOST_USER_NET_TEST_i386), $(CONFIG_VHOST_USER_NET_TEST_x86_64)) += tests/vhost-user-test$(EXESUF)
 check-qtest-i386-$(CONFIG_TPM_CRB) += tests/tpm-crb-swtpm-test$(EXESUF)
 check-qtest-i386-$(CONFIG_TPM_CRB) += tests/tpm-crb-test$(EXESUF)
 check-qtest-i386-$(CONFIG_TPM_TIS) += tests/tpm-tis-swtpm-test$(EXESUF)
Signature · 1 line
2.17.1
#5 lore raw

Re: [Qemu-devel] [PATCH v3 02/10] check: Use land/lor when possible

Quoted 6 lines · Juan Quintela

So everythig is (a bit) more consistent

---
 tests/Makefile.include | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

[...]

tests/Makefile.include check-qtest-i386-y += tests/q35-test$(EXESUF) · line 300

Quoted 8 lines
tests/Makefile.include +1 -3
@@ -299,9 +297,7 @@ check-qtest-i386-y += tests/q35-test$(EXESUF)
 check-qtest-i386-y += tests/vmgenid-test$(EXESUF)
 gcov-files-i386-y += hw/pci-host/q35.c
 check-qtest-i386-$(CONFIG_VHOST_USER_NET_TEST_i386) += tests/vhost-user-test$(EXESUF)
-ifeq ($(CONFIG_VHOST_USER_NET_TEST_i386),)
-check-qtest-x86_64-$(CONFIG_VHOST_USER_NET_TEST_x86_64) += tests/vhost-user-test$(EXESUF)
-endif
+check-qtest-x86_64-$(call lor, $(CONFIG_VHOST_USER_NET_TEST_i386), $(CONFIG_VHOST_USER_NET_TEST_x86_64)) += tests/vhost-user-test$(EXESUF)

I think that is the wrong condition. It's rather "!i386 AND x86_64" that you have to test here. Since that line will get incredibly long with the $(call ...) expressions, I'd suggest to rather drop this hunk, I think it's more readable the way it is.

Thomas

#6 lore raw

Re: [Qemu-devel] [PATCH v3 02/10] check: Use land/lor when possible

Quoted 17 lines · Thomas Huth
Quoted 6 lines · Juan Quintela

So everythig is (a bit) more consistent

---
 tests/Makefile.include | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

[...]

Quoted 9 lines
tests/Makefile.include +0 -3
@@ -299,9 +297,7 @@ check-qtest-i386-y += tests/q35-test$(EXESUF)
 check-qtest-i386-y += tests/vmgenid-test$(EXESUF)
 gcov-files-i386-y += hw/pci-host/q35.c
 check-qtest-i386-$(CONFIG_VHOST_USER_NET_TEST_i386) +=
 tests/vhost-user-test$(EXESUF)
-ifeq ($(CONFIG_VHOST_USER_NET_TEST_i386),)
-check-qtest-x86_64-$(CONFIG_VHOST_USER_NET_TEST_x86_64) +=
 tests/vhost-user-test$(EXESUF)
-endif
Quoted 8 lines
Quoted 3 lines
(quoted diff) +1 -0
+check-qtest-x86_64-$(call lor, $(CONFIG_VHOST_USER_NET_TEST_i386),

$(CONFIG_VHOST_USER_NET_TEST_x86_64)) +=
tests/vhost-user-test$(EXESUF)

I think that is the wrong condition. It's rather "!i386 AND x86_64" that you have to test here. Since that line will get incredibly long with the $(call ...) expressions, I'd suggest to rather drop this hunk, I think it's more readable the way it is.

Dropped.

Anyways, the propper fix is to change how vhost is configured at all. The bits in configure are "interesting" to say the less.

Later, Juan.

#7 lore raw

PATCH v3 3/10 check: Only test isa-testdev when it is compiled in

In reply to Juan Quintela

Once there, untangle endianness-test and boot-serial-test.

--

boot-serial-test don't depend on isa-testdev. Thanks Thomas.

---
 tests/Makefile.include | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)
tests/Makefile.include +11 -11
index a705793381..15296be246 100644
@@ -248,7 +248,7 @@ gcov-files-pci-y += hw/misc/ivshmem.c
 check-qtest-pci-y += tests/megasas-test$(EXESUF)
 gcov-files-pci-y += hw/scsi/megasas.c
 
-check-qtest-i386-y = tests/endianness-test$(EXESUF)
+check-qtest-i386-$(CONFIG_ISA_TESTDEV) = tests/endianness-test$(EXESUF)
 check-qtest-i386-y += tests/fdc-test$(EXESUF)
 gcov-files-i386-y = hw/block/fdc.c
 check-qtest-i386-y += tests/ide-test$(EXESUF)
@@ -321,15 +321,15 @@ check-qtest-m68k-y = tests/boot-serial-test$(EXESUF)
 
 check-qtest-microblaze-y = tests/boot-serial-test$(EXESUF)
 
-check-qtest-mips-y = tests/endianness-test$(EXESUF)
-
-check-qtest-mips64-y = tests/endianness-test$(EXESUF)
-
-check-qtest-mips64el-y = tests/endianness-test$(EXESUF)
-
 check-qtest-moxie-y = tests/boot-serial-test$(EXESUF)
 
-check-qtest-ppc-y = tests/endianness-test$(EXESUF)
+check-qtest-mips-$(CONFIG_ISA_TESTDEV) = tests/endianness-test$(EXESUF)
+
+check-qtest-mips64-$(CONFIG_ISA_TESTDEV) = tests/endianness-test$(EXESUF)
+
+check-qtest-mips64el-$(CONFIG_ISA_TESTDEV) = tests/endianness-test$(EXESUF)
+
+check-qtest-ppc-$(CONFIG_ISA_TESTDEV) = tests/endianness-test$(EXESUF)
 check-qtest-ppc-y += tests/boot-order-test$(EXESUF)
 check-qtest-ppc-y += tests/prom-env-test$(EXESUF)
 check-qtest-ppc-y += tests/drive_del-test$(EXESUF)
@@ -360,16 +360,16 @@ check-qtest-ppc64-y += tests/numa-test$(EXESUF)
 check-qtest-ppc64-$(CONFIG_IVSHMEM) += tests/ivshmem-test$(EXESUF)
 check-qtest-ppc64-y += tests/cpu-plug-test$(EXESUF)
 
-check-qtest-sh4-y = tests/endianness-test$(EXESUF)
+check-qtest-sh4-$(CONFIG_ISA_TESTDEV) = tests/endianness-test$(EXESUF)
 
-check-qtest-sh4eb-y = tests/endianness-test$(EXESUF)
+check-qtest-sh4eb-$(CONFIG_ISA_TESTDEV) = tests/endianness-test$(EXESUF)
 
 check-qtest-sparc-y = tests/prom-env-test$(EXESUF)
 check-qtest-sparc-y += tests/m48t59-test$(EXESUF)
 gcov-files-sparc-y = hw/timer/m48t59.c
 check-qtest-sparc-y += tests/boot-serial-test$(EXESUF)
 
-check-qtest-sparc64-y = tests/endianness-test$(EXESUF)
+check-qtest-sparc64-$(CONFIG_ISA_TESTDEV) = tests/endianness-test$(EXESUF)
 check-qtest-sparc64-y += tests/prom-env-test$(EXESUF)
 check-qtest-sparc64-y += tests/boot-serial-test$(EXESUF)
 
Signature · 1 line
2.17.1
Reviewed-by on v3 3/10
#8 lore raw

Re: [Qemu-devel] [PATCH v3 03/10] check: Only test isa-testdev when it is compiled in

Quoted 9 lines · Juan Quintela

Once there, untangle endianness-test and boot-serial-test.

--

boot-serial-test don't depend on isa-testdev. Thanks Thomas.

Please remove the duplicated Sob.

Quoted 10 lines
tests/Makefile.include +0 -6
@@ -321,15 +321,15 @@ check-qtest-m68k-y = tests/boot-serial-test$(EXESUF)
 
 check-qtest-microblaze-y = tests/boot-serial-test$(EXESUF)
 
-check-qtest-mips-y = tests/endianness-test$(EXESUF)
-
-check-qtest-mips64-y = tests/endianness-test$(EXESUF)
-
-check-qtest-mips64el-y = tests/endianness-test$(EXESUF)
-

tests/Makefile.include check-qtest-m68k-y = tests/boot-serial-test$(EXESUF) · line 332

Quoted 10 lines
tests/Makefile.include +7 -1
 check-qtest-moxie-y = tests/boot-serial-test$(EXESUF)
 
-check-qtest-ppc-y = tests/endianness-test$(EXESUF)
+check-qtest-mips-$(CONFIG_ISA_TESTDEV) = tests/endianness-test$(EXESUF)
+
+check-qtest-mips64-$(CONFIG_ISA_TESTDEV) = tests/endianness-test$(EXESUF)
+
+check-qtest-mips64el-$(CONFIG_ISA_TESTDEV) = tests/endianness-test$(EXESUF)
+
+check-qtest-ppc-$(CONFIG_ISA_TESTDEV) = tests/endianness-test$(EXESUF)

Maybe keep moxie after mips? So that they stay in alphabetical order?

When you fixed the nits:

#9 lore raw

Re: [Qemu-devel] [PATCH v3 03/10] check: Only test isa-testdev when it is compiled in

Quoted 36 lines · Thomas Huth
Quoted 9 lines · Juan Quintela

Once there, untangle endianness-test and boot-serial-test.

--

boot-serial-test don't depend on isa-testdev. Thanks Thomas.

Please remove the duplicated Sob.

Quoted 10 lines
tests/Makefile.include +0 -6
@@ -321,15 +321,15 @@ check-qtest-m68k-y = tests/boot-serial-test$(EXESUF)
 
 check-qtest-microblaze-y = tests/boot-serial-test$(EXESUF)
 
-check-qtest-mips-y = tests/endianness-test$(EXESUF)
-
-check-qtest-mips64-y = tests/endianness-test$(EXESUF)
-
-check-qtest-mips64el-y = tests/endianness-test$(EXESUF)
-

tests/Makefile.include check-qtest-m68k-y = tests/boot-serial-test$(EXESUF) · line 332

Quoted 10 lines
tests/Makefile.include +7 -1
 check-qtest-moxie-y = tests/boot-serial-test$(EXESUF)
 
-check-qtest-ppc-y = tests/endianness-test$(EXESUF)
+check-qtest-mips-$(CONFIG_ISA_TESTDEV) = tests/endianness-test$(EXESUF)
+
+check-qtest-mips64-$(CONFIG_ISA_TESTDEV) = tests/endianness-test$(EXESUF)
+
+check-qtest-mips64el-$(CONFIG_ISA_TESTDEV) = tests/endianness-test$(EXESUF)
+
+check-qtest-ppc-$(CONFIG_ISA_TESTDEV) = tests/endianness-test$(EXESUF)

Maybe keep moxie after mips? So that they stay in alphabetical order?

Quoted 3 lines

When you fixed the nits:

Done, thanks.

#10 lore raw

Re: [Qemu-devel] [PATCH v3 03/10] check: Only test isa-testdev when it is compiled in

In reply to Thomas Huth
Quoted 5 lines · Thomas Huth
Quoted 4 lines · Juan Quintela

Once there, untangle endianness-test and boot-serial-test.

Quoted 7 lines
Quoted 5 lines

--

boot-serial-test don't depend on isa-testdev. Thanks Thomas.

Please remove the duplicated Sob.

Found the problem!!!!

As the cool man that I am, I put the signed-off line with a hook. And I updated the hook to the last version in git upstream, to be, you know cool.

And the new version don't check that the line is already there.

SOB=$(git var GIT_COMMITTER_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') git interpret-trailers --in-place --trailer "$SOB" "$COMMIT_MSG_FILE"

Will try to get it right.

Later, Juan.

#11 lore raw

PATCH v3 4/10 check: Only test usb-xhci-nec when it is compiled in

In reply to Juan Quintela
---
 tests/Makefile.include | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
tests/Makefile.include +5 -4
index 15296be246..9a918f7655 100644
@@ -290,8 +290,9 @@ endif
 gcov-files-i386-$(CONFIG_USB_EHCI) += hw/usb/hcd-ehci.c
 gcov-files-i386-y += hw/usb/dev-hid.c
 gcov-files-i386-y += hw/usb/dev-storage.c
-check-qtest-i386-y += tests/usb-hcd-xhci-test$(EXESUF)
-gcov-files-i386-y += hw/usb/hcd-xhci.c
+check-qtest-i386-$(CONFIG_USB_XHCI_NEC) += tests/usb-hcd-xhci-test$(EXESUF)
+gcov-files-i386-$(CONFIG_USB_XHCI) += hw/usb/hcd-xhci.c
+gcov-files-i386-$(CONFIG_USB_XHCI) += hw/usb/hcd-xhci-nec.c
 check-qtest-i386-y += tests/cpu-plug-test$(EXESUF)
 check-qtest-i386-y += tests/q35-test$(EXESUF)
 check-qtest-i386-y += tests/vmgenid-test$(EXESUF)
@@ -349,8 +350,8 @@ check-qtest-ppc64-$(CONFIG_USB_OHCI) += tests/usb-hcd-ohci-test$(EXESUF)
 gcov-files-ppc64-$(CONFIG_USB_OHCI) += hw/usb/hcd-ohci.c
 check-qtest-ppc64-$(CONFIG_USB_UHCI) += tests/usb-hcd-uhci-test$(EXESUF)
 gcov-files-ppc64-$(CONFIG_USB_UHCI) += hw/usb/hcd-uhci.c
-check-qtest-ppc64-y += tests/usb-hcd-xhci-test$(EXESUF)
-gcov-files-ppc64-y += hw/usb/hcd-xhci.c
+check-qtest-ppc64-$(CONFIG_USB_XHCI_NEC) += tests/usb-hcd-xhci-test$(EXESUF)
+gcov-files-ppc64-$(CONFIG_USB_XHCI) += hw/usb/hcd-xhci.c
 check-qtest-ppc64-y += $(check-qtest-virtio-y)
 check-qtest-ppc64-$(CONFIG_SLIRP) += tests/test-netfilter$(EXESUF)
 check-qtest-ppc64-$(CONFIG_POSIX) += tests/test-filter-mirror$(EXESUF)
Signature · 1 line
2.17.1
Reviewed-by on v3 4/10
#12 lore raw

Re: [Qemu-devel] [PATCH v3 04/10] check: Only test usb-xhci-nec when it is compiled in

Quoted 22 lines · Juan Quintela
---
 tests/Makefile.include | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
tests/Makefile.include +3 -2
index 15296be246..9a918f7655 100644
@@ -290,8 +290,9 @@ endif
 gcov-files-i386-$(CONFIG_USB_EHCI) += hw/usb/hcd-ehci.c
 gcov-files-i386-y += hw/usb/dev-hid.c
 gcov-files-i386-y += hw/usb/dev-storage.c
-check-qtest-i386-y += tests/usb-hcd-xhci-test$(EXESUF)
-gcov-files-i386-y += hw/usb/hcd-xhci.c
+check-qtest-i386-$(CONFIG_USB_XHCI_NEC) += tests/usb-hcd-xhci-test$(EXESUF)
+gcov-files-i386-$(CONFIG_USB_XHCI) += hw/usb/hcd-xhci.c
+gcov-files-i386-$(CONFIG_USB_XHCI) += hw/usb/hcd-xhci-nec.c
 check-qtest-i386-y += tests/cpu-plug-test$(EXESUF)
 check-qtest-i386-y += tests/q35-test$(EXESUF)
 check-qtest-i386-y += tests/vmgenid-test$(EXESUF)

tests/Makefile.include check-qtest-ppc64-$(CONFIG_USB_OHCI) += tests/usb-hcd-ohci-test$(EXESUF) · line 354

Quoted 7 lines
tests/Makefile.include +2 -2
@@ -349,8 +350,8 @@ check-qtest-ppc64-$(CONFIG_USB_OHCI) += tests/usb-hcd-ohci-test$(EXESUF)
 gcov-files-ppc64-$(CONFIG_USB_OHCI) += hw/usb/hcd-ohci.c
 check-qtest-ppc64-$(CONFIG_USB_UHCI) += tests/usb-hcd-uhci-test$(EXESUF)
 gcov-files-ppc64-$(CONFIG_USB_UHCI) += hw/usb/hcd-uhci.c
-check-qtest-ppc64-y += tests/usb-hcd-xhci-test$(EXESUF)
-gcov-files-ppc64-y += hw/usb/hcd-xhci.c
+check-qtest-ppc64-$(CONFIG_USB_XHCI_NEC) += tests/usb-hcd-xhci-test$(EXESUF)
+gcov-files-ppc64-$(CONFIG_USB_XHCI) += hw/usb/hcd-xhci.c

Add hcd-xhci-nec.c here, too?

Anyway:

#13 lore raw

Re: [Qemu-devel] [PATCH v3 04/10] check: Only test usb-xhci-nec when it is compiled in

Quoted 34 lines · Thomas Huth
Quoted 22 lines · Juan Quintela
---
 tests/Makefile.include | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
tests/Makefile.include +3 -2
index 15296be246..9a918f7655 100644
@@ -290,8 +290,9 @@ endif
 gcov-files-i386-$(CONFIG_USB_EHCI) += hw/usb/hcd-ehci.c
 gcov-files-i386-y += hw/usb/dev-hid.c
 gcov-files-i386-y += hw/usb/dev-storage.c
-check-qtest-i386-y += tests/usb-hcd-xhci-test$(EXESUF)
-gcov-files-i386-y += hw/usb/hcd-xhci.c
+check-qtest-i386-$(CONFIG_USB_XHCI_NEC) += tests/usb-hcd-xhci-test$(EXESUF)
+gcov-files-i386-$(CONFIG_USB_XHCI) += hw/usb/hcd-xhci.c
+gcov-files-i386-$(CONFIG_USB_XHCI) += hw/usb/hcd-xhci-nec.c
 check-qtest-i386-y += tests/cpu-plug-test$(EXESUF)
 check-qtest-i386-y += tests/q35-test$(EXESUF)
 check-qtest-i386-y += tests/vmgenid-test$(EXESUF)

tests/Makefile.include check-qtest-ppc64-$(CONFIG_USB_OHCI) += · line 355

Quoted 8 lines
tests/Makefile.include +2 -2
@@ -349,8 +350,8 @@ check-qtest-ppc64-$(CONFIG_USB_OHCI) +=
 tests/usb-hcd-ohci-test$(EXESUF)
 gcov-files-ppc64-$(CONFIG_USB_OHCI) += hw/usb/hcd-ohci.c
 check-qtest-ppc64-$(CONFIG_USB_UHCI) += tests/usb-hcd-uhci-test$(EXESUF)
 gcov-files-ppc64-$(CONFIG_USB_UHCI) += hw/usb/hcd-uhci.c
-check-qtest-ppc64-y += tests/usb-hcd-xhci-test$(EXESUF)
-gcov-files-ppc64-y += hw/usb/hcd-xhci.c
+check-qtest-ppc64-$(CONFIG_USB_XHCI_NEC) += tests/usb-hcd-xhci-test$(EXESUF)
+gcov-files-ppc64-$(CONFIG_USB_XHCI) += hw/usb/hcd-xhci.c

Add hcd-xhci-nec.c here, too?

Quoted 3 lines

Anyway:

Thanks, done.

#14 lore raw

PATCH v3 5/10 x86_64-softmmu: Configuration is identical to i386-softmmu

In reply to Juan Quintela

If we ever changed that, just make the things that are different explicit.

---
 default-configs/x86_64-softmmu.mak | 67 +-----------------------------
 1 file changed, 1 insertion(+), 66 deletions(-)
default-configs/x86_64-softmmu.mak +1 -66
index 0390b4303c..64b2ee2960 100644
@@ -1,68 +1,3 @@
 # Default configuration for x86_64-softmmu
 
-include pci.mak
-include sound.mak
-include usb.mak
-CONFIG_QXL=$(CONFIG_SPICE)
-CONFIG_VGA_ISA=y
-CONFIG_VGA_CIRRUS=y
-CONFIG_VMWARE_VGA=y
-CONFIG_VMXNET3_PCI=y
-CONFIG_VIRTIO_VGA=y
-CONFIG_VMMOUSE=y
-CONFIG_IPMI=y
-CONFIG_IPMI_LOCAL=y
-CONFIG_IPMI_EXTERN=y
-CONFIG_ISA_IPMI_KCS=y
-CONFIG_ISA_IPMI_BT=y
-CONFIG_SERIAL=y
-CONFIG_SERIAL_ISA=y
-CONFIG_PARALLEL=y
-CONFIG_I8254=y
-CONFIG_PCSPK=y
-CONFIG_PCKBD=y
-CONFIG_FDC=y
-CONFIG_ACPI=y
-CONFIG_ACPI_X86=y
-CONFIG_ACPI_X86_ICH=y
-CONFIG_ACPI_MEMORY_HOTPLUG=y
-CONFIG_ACPI_CPU_HOTPLUG=y
-CONFIG_APM=y
-CONFIG_I8257=y
-CONFIG_IDE_ISA=y
-CONFIG_IDE_PIIX=y
-CONFIG_NE2000_ISA=y
-CONFIG_HPET=y
-CONFIG_APPLESMC=y
-CONFIG_I8259=y
-CONFIG_PFLASH_CFI01=y
-CONFIG_TPM_TIS=$(CONFIG_TPM)
-CONFIG_TPM_CRB=$(CONFIG_TPM)
-CONFIG_MC146818RTC=y
-CONFIG_PCI_PIIX=y
-CONFIG_WDT_IB700=y
-CONFIG_ISA_DEBUG=y
-CONFIG_ISA_TESTDEV=y
-CONFIG_VMPORT=y
-CONFIG_SGA=y
-CONFIG_LPC_ICH9=y
-CONFIG_PCI_Q35=y
-CONFIG_APIC=y
-CONFIG_IOAPIC=y
-CONFIG_PVPANIC=y
-CONFIG_MEM_HOTPLUG=y
-CONFIG_NVDIMM=y
-CONFIG_ACPI_NVDIMM=y
-CONFIG_PCIE_PORT=y
-CONFIG_XIO3130=y
-CONFIG_IOH3420=y
-CONFIG_I82801B11=y
-CONFIG_SMBIOS=y
-CONFIG_HYPERV_TESTDEV=$(CONFIG_KVM)
-CONFIG_PXB=y
-CONFIG_ACPI_VMGENID=y
-CONFIG_FW_CFG_DMA=y
-CONFIG_I2C=y
-CONFIG_SEV=$(CONFIG_KVM)
-CONFIG_VTD=y
-CONFIG_AMD_IOMMU=y
+include i386-softmmu.mak
Signature · 1 line
2.17.1
Reviewed-by on v3 5/10
#15 lore raw

Re: [Qemu-devel] [PATCH v3 05/10] x86_64-softmmu: Configuration is identical to i386-softmmu

Quoted 7 lines · Juan Quintela

If we ever changed that, just make the things that are different explicit.

---
 default-configs/x86_64-softmmu.mak | 67 +-----------------------------
 1 file changed, 1 insertion(+), 66 deletions(-)
#16 lore raw

PATCH v3 6/10 check: Only test ivshm when it is compiled in

In reply to Juan Quintela
---
 tests/Makefile.include | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
tests/Makefile.include +3 -3
index 9a918f7655..116e93cdb6 100644
@@ -243,8 +243,8 @@ gcov-files-pci-y += hw/display/virtio-gpu-pci.c
 gcov-files-pci-$(CONFIG_VIRTIO_VGA) += hw/display/virtio-vga.c
 check-qtest-pci-$(CONFIG_HDA) += tests/intel-hda-test$(EXESUF)
 gcov-files-pci-$(CONFIG_HDA) += hw/audio/intel-hda.c hw/audio/hda-codec.c
-check-qtest-pci-$(CONFIG_IVSHMEM) += tests/ivshmem-test$(EXESUF)
-gcov-files-pci-y += hw/misc/ivshmem.c
+check-qtest-pci-$(CONFIG_IVSHMEM_DEVICE) += tests/ivshmem-test$(EXESUF)
+gcov-files-pci-$(CONFIG_IVSHMEM_DEVICE) += hw/misc/ivshmem.c
 check-qtest-pci-y += tests/megasas-test$(EXESUF)
 gcov-files-pci-y += hw/scsi/megasas.c
 
@@ -358,7 +358,7 @@ check-qtest-ppc64-$(CONFIG_POSIX) += tests/test-filter-mirror$(EXESUF)
 check-qtest-ppc64-$(CONFIG_RTL8139_PCI) += tests/test-filter-redirector$(EXESUF)
 check-qtest-ppc64-y += tests/display-vga-test$(EXESUF)
 check-qtest-ppc64-y += tests/numa-test$(EXESUF)
-check-qtest-ppc64-$(CONFIG_IVSHMEM) += tests/ivshmem-test$(EXESUF)
+check-qtest-ppc64-$(CONFIG_IVSHMEM_DEVICE) += tests/ivshmem-test$(EXESUF)
 check-qtest-ppc64-y += tests/cpu-plug-test$(EXESUF)
 
 check-qtest-sh4-$(CONFIG_ISA_TESTDEV) = tests/endianness-test$(EXESUF)
Signature · 1 line
2.17.1
Reviewed-by on v3 6/10
#17 lore raw

Re: [Qemu-devel] [PATCH v3 06/10] check: Only test ivshm when it is compiled in

Quoted 21 lines · Juan Quintela
---
 tests/Makefile.include | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
tests/Makefile.include +2 -2
index 9a918f7655..116e93cdb6 100644
@@ -243,8 +243,8 @@ gcov-files-pci-y += hw/display/virtio-gpu-pci.c
 gcov-files-pci-$(CONFIG_VIRTIO_VGA) += hw/display/virtio-vga.c
 check-qtest-pci-$(CONFIG_HDA) += tests/intel-hda-test$(EXESUF)
 gcov-files-pci-$(CONFIG_HDA) += hw/audio/intel-hda.c hw/audio/hda-codec.c
-check-qtest-pci-$(CONFIG_IVSHMEM) += tests/ivshmem-test$(EXESUF)
-gcov-files-pci-y += hw/misc/ivshmem.c
+check-qtest-pci-$(CONFIG_IVSHMEM_DEVICE) += tests/ivshmem-test$(EXESUF)
+gcov-files-pci-$(CONFIG_IVSHMEM_DEVICE) += hw/misc/ivshmem.c
 check-qtest-pci-y += tests/megasas-test$(EXESUF)
 gcov-files-pci-y += hw/scsi/megasas.c
 

tests/Makefile.include check-qtest-ppc64-$(CONFIG_POSIX) += tests/test-filter-mirror$(EXESUF) · line 362

Quoted 6 lines
tests/Makefile.include +1 -1
@@ -358,7 +358,7 @@ check-qtest-ppc64-$(CONFIG_POSIX) += tests/test-filter-mirror$(EXESUF)
 check-qtest-ppc64-$(CONFIG_RTL8139_PCI) += tests/test-filter-redirector$(EXESUF)
 check-qtest-ppc64-y += tests/display-vga-test$(EXESUF)
 check-qtest-ppc64-y += tests/numa-test$(EXESUF)
-check-qtest-ppc64-$(CONFIG_IVSHMEM) += tests/ivshmem-test$(EXESUF)
+check-qtest-ppc64-$(CONFIG_IVSHMEM_DEVICE) += tests/ivshmem-test$(EXESUF)
 check-qtest-ppc64-y += tests/cpu-plug-test$(EXESUF)

I guess we could add a line a la:

gcov-files-ppc64-$(CONFIG_IVSHMEM_DEVICE) += hw/misc/ivshmem.c

here, too, but since that's a pre-existing problem:

#18 lore raw

Re: [Qemu-devel] [PATCH v3 06/10] check: Only test ivshm when it is compiled in

Quoted 32 lines · Thomas Huth
Quoted 21 lines · Juan Quintela
---
 tests/Makefile.include | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
tests/Makefile.include +2 -2
index 9a918f7655..116e93cdb6 100644
@@ -243,8 +243,8 @@ gcov-files-pci-y += hw/display/virtio-gpu-pci.c
 gcov-files-pci-$(CONFIG_VIRTIO_VGA) += hw/display/virtio-vga.c
 check-qtest-pci-$(CONFIG_HDA) += tests/intel-hda-test$(EXESUF)
 gcov-files-pci-$(CONFIG_HDA) += hw/audio/intel-hda.c hw/audio/hda-codec.c
-check-qtest-pci-$(CONFIG_IVSHMEM) += tests/ivshmem-test$(EXESUF)
-gcov-files-pci-y += hw/misc/ivshmem.c
+check-qtest-pci-$(CONFIG_IVSHMEM_DEVICE) += tests/ivshmem-test$(EXESUF)
+gcov-files-pci-$(CONFIG_IVSHMEM_DEVICE) += hw/misc/ivshmem.c
 check-qtest-pci-y += tests/megasas-test$(EXESUF)
 gcov-files-pci-y += hw/scsi/megasas.c
 

tests/Makefile.include check-qtest-ppc64-$(CONFIG_POSIX) += · line 363

Quoted 7 lines
tests/Makefile.include +1 -1
@@ -358,7 +358,7 @@ check-qtest-ppc64-$(CONFIG_POSIX) +=
 tests/test-filter-mirror$(EXESUF)
 check-qtest-ppc64-$(CONFIG_RTL8139_PCI) += tests/test-filter-redirector$(EXESUF)
 check-qtest-ppc64-y += tests/display-vga-test$(EXESUF)
 check-qtest-ppc64-y += tests/numa-test$(EXESUF)
-check-qtest-ppc64-$(CONFIG_IVSHMEM) += tests/ivshmem-test$(EXESUF)
+check-qtest-ppc64-$(CONFIG_IVSHMEM_DEVICE) += tests/ivshmem-test$(EXESUF)
 check-qtest-ppc64-y += tests/cpu-plug-test$(EXESUF)

I guess we could add a line a la:

Quoted 5 lines

gcov-files-ppc64-$(CONFIG_IVSHMEM_DEVICE) += hw/misc/ivshmem.c

here, too, but since that's a pre-existing problem:

Done, thanks.

I got even more confused. check-qtest-pci-y is only tested on x86*, go figure.

Later, Juan.

#19 lore raw

Re: [Qemu-devel] [PATCH v3 06/10] check: Only test ivshm when it is compiled in

On 2018-08-22 16:36, Juan Quintela wrote:
[...]

Quoted 2 lines

I got even more confused. check-qtest-pci-y is only tested on x86*, go figure.

Yes, that's ugly, indeed. We should maybe rework that so that all board which include pci.mak can use it...

Thomas

#20 lore raw

PATCH v3 7/10 check: Only test boot-serial when sga is compiled in

In reply to Juan Quintela

This is only for x86* architecture.

---
 tests/Makefile.include | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/Makefile.include +1 -1
index 116e93cdb6..d524e1bdeb 100644
@@ -257,7 +257,7 @@ check-qtest-i386-y += tests/hd-geo-test$(EXESUF)
 gcov-files-i386-y += hw/block/hd-geometry.c
 check-qtest-i386-y += tests/boot-order-test$(EXESUF)
 check-qtest-i386-y += tests/bios-tables-test$(EXESUF)
-check-qtest-i386-y += tests/boot-serial-test$(EXESUF)
+check-qtest-i386-$(CONFIG_SGA) += tests/boot-serial-test$(EXESUF)
 check-qtest-i386-$(CONFIG_SLIRP) += tests/pxe-test$(EXESUF)
 check-qtest-i386-y += tests/rtc-test$(EXESUF)
 check-qtest-i386-y += tests/ipmi-kcs-test$(EXESUF)
Signature · 1 line
2.17.1
Reviewed-by on v3 7/10
#21 lore raw

Re: [Qemu-devel] [PATCH v3 07/10] check: Only test boot-serial when sga is compiled in

Quoted 12 lines · Juan Quintela

This is only for x86* architecture.

---
 tests/Makefile.include | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/Makefile.include +0 -0
index 116e93cdb6..d524e1bdeb 100644

tests/Makefile.include check-qtest-i386-y += tests/hd-geo-test$(EXESUF) · line 260

Quoted 5 lines
tests/Makefile.include +1 -1
@@ -257,7 +257,7 @@ check-qtest-i386-y += tests/hd-geo-test$(EXESUF)
 gcov-files-i386-y += hw/block/hd-geometry.c
 check-qtest-i386-y += tests/boot-order-test$(EXESUF)
 check-qtest-i386-y += tests/bios-tables-test$(EXESUF)
-check-qtest-i386-y += tests/boot-serial-test$(EXESUF)
+check-qtest-i386-$(CONFIG_SGA) += tests/boot-serial-test$(EXESUF)

Off-topic: I wonder whether we could even deprecate the SGA device nowadays, since the main seabios now can redirect the console to the serial port, too?

Thomas

#22 lore raw

Re: [Qemu-devel] [PATCH v3 07/10] check: Only test boot-serial when sga is compiled in

Quoted 21 lines · Thomas Huth
Quoted 12 lines · Juan Quintela

This is only for x86* architecture.

---
 tests/Makefile.include | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/Makefile.include +0 -0
index 116e93cdb6..d524e1bdeb 100644

tests/Makefile.include check-qtest-i386-y += tests/hd-geo-test$(EXESUF) · line 260

Quoted 5 lines
tests/Makefile.include +1 -1
@@ -257,7 +257,7 @@ check-qtest-i386-y += tests/hd-geo-test$(EXESUF)
 gcov-files-i386-y += hw/block/hd-geometry.c
 check-qtest-i386-y += tests/boot-order-test$(EXESUF)
 check-qtest-i386-y += tests/bios-tables-test$(EXESUF)
-check-qtest-i386-y += tests/boot-serial-test$(EXESUF)
+check-qtest-i386-$(CONFIG_SGA) += tests/boot-serial-test$(EXESUF)
Quoted 3 lines

Off-topic: I wonder whether we could even deprecate the SGA device nowadays, since the main seabios now can redirect the console to the serial port, too?

No idea, but then I think we can deprecate it, we already have enough weird things around.

Thanks, Juan.

#23 lore raw

Re: [Qemu-devel] [PATCH v3 07/10] check: Only test boot-serial when sga is compiled in

Quoted 8 lines
Quoted 5 lines

Off-topic: I wonder whether we could even deprecate the SGA device nowadays, since the main seabios now can redirect the console to the serial port, too?

No idea, but then I think we can deprecate it, we already have enough weird things around.

Deprecating sure. Actually dropping is not so easy I think. The switch is not transparent to the guest, which implies live migration compatibility isssues.

So the only thing we can do is blocking it for new machine types (3.1+). Then, in a bunch of years when we deprecate 3.1 & older machine types, we can actually remove it.

I remember we even discussed that a while back ...
Oh yes: https://git.kraxel.org/cgit/qemu/commit/?h=work/no-sgabios&id=408690999429fdf44011c49b3af6efa50f369b1e
Somehow never ended up being merged.

cheers,
Gerd

#24 lore raw

Re: [Qemu-devel] [PATCH v3 07/10] check: Only test boot-serial when sga is compiled in

Quoted 13 lines · Gerd Hoffmann
Quoted 8 lines
Quoted 5 lines

Off-topic: I wonder whether we could even deprecate the SGA device nowadays, since the main seabios now can redirect the console to the serial port, too?

No idea, but then I think we can deprecate it, we already have enough weird things around.

Deprecating sure. Actually dropping is not so easy I think. The switch is not transparent to the guest, which implies live migration compatibility isssues.

Quoted 7 lines

So the only thing we can do is blocking it for new machine types (3.1+). Then, in a bunch of years when we deprecate 3.1 & older machine types, we can actually remove it.

I remember we even discussed that a while back ...
Oh yes: https://git.kraxel.org/cgit/qemu/commit/?h=work/no-sgabios&id=408690999429fdf44011c49b3af6efa50f369b1e
Somehow never ended up being merged.

Sounds like a good idea! Could you repost the patch, with an update to qemu-deprecated.texi, please? Maybe also print the deprecation message in any case if !use_sgabios, e.g.:

    if (sga->use_sgabios) {
        rom_add_vga(SGABIOS_FILENAME);
    } else if (machine->enable_graphics) {
        warn_report("sgabios is deprecated for your machine type, "
                    "please use -machine graphics=off instead of "
                    "-device sga");
        rom_add_vga(SGABIOS_FILENAME);
    } else {
        /*
         * For this machine type we expect SeaBIOS to provide a
         * serial console for -machine graphics=off.  No need to
         * add the sgabios rom here.
         */
        warn_report("sgabios is deprecated and is not required anymore,"
                    " SeaBIOS now has the same functionality, too");
    }

Thomas

#25 lore raw

Re: [Qemu-devel] [PATCH v3 07/10] check: Only test boot-serial when sga is compiled in

Quoted 8 lines
Quoted 3 lines

I remember we even discussed that a while back ...
Oh yes: https://git.kraxel.org/cgit/qemu/commit/?h=work/no-sgabios&id=408690999429fdf44011c49b3af6efa50f369b1e
Somehow never ended up being merged.

Sounds like a good idea! Could you repost the patch, with an update to qemu-deprecated.texi, please? Maybe also print the deprecation message in any case if !use_sgabios, e.g.:

Quoted 9 lines
    } else {
        /*
         * For this machine type we expect SeaBIOS to provide a
         * serial console for -machine graphics=off.  No need to
         * add the sgabios rom here.
         */
        warn_report("sgabios is deprecated and is not required anymore,"
                    " SeaBIOS now has the same functionality, too");
    }

Hmm, IIRC libvirt support is a bit tricky here as there is no easy way to probe for serial console support in seabios. So the idea was to just allow both -machine graphics=off and -device sga, by turning -device sga into a nop in case -machine graphics=off is present.

But given we meanwhile had some releases without this I suspect that isn't a good idea any more. With both -machine graphics=off -device sga seabios and sgabios will fight over the serial device ...

So, maybe take a completely different route. Add a deprecation_reason field to DeviceClass. Make it visible in qapi introspection, so libvirt can see it and avoid adding it to the command line. Then we can deprecate -device sga (and possibly other devices too) that way.

For live migration compatibility reasons it'll be quite a while until we can actually delete the device (much longer than the usual 2 releases deprecation cycle).

cheers,
Gerd

#26 lore raw

Re: [Qemu-devel] [PATCH v3 07/10] check: Only test boot-serial when sga is compiled in

Quoted 23 lines · Gerd Hoffmann
Quoted 8 lines
Quoted 3 lines

I remember we even discussed that a while back ...
Oh yes: https://git.kraxel.org/cgit/qemu/commit/?h=work/no-sgabios&id=408690999429fdf44011c49b3af6efa50f369b1e
Somehow never ended up being merged.

Sounds like a good idea! Could you repost the patch, with an update to qemu-deprecated.texi, please? Maybe also print the deprecation message in any case if !use_sgabios, e.g.:

Quoted 9 lines
    } else {
        /*
         * For this machine type we expect SeaBIOS to provide a
         * serial console for -machine graphics=off.  No need to
         * add the sgabios rom here.
         */
        warn_report("sgabios is deprecated and is not required anymore,"
                    " SeaBIOS now has the same functionality, too");
    }

Hmm, IIRC libvirt support is a bit tricky here as there is no easy way to probe for serial console support in seabios. So the idea was to just allow both -machine graphics=off and -device sga, by turning -device sga into a nop in case -machine graphics=off is present.

Quoted 8 lines

But given we meanwhile had some releases without this I suspect that isn't a good idea any more. With both -machine graphics=off -device sga seabios and sgabios will fight over the serial device ...

So, maybe take a completely different route. Add a deprecation_reason field to DeviceClass. Make it visible in qapi introspection, so libvirt can see it and avoid adding it to the command line. Then we can deprecate -device sga (and possibly other devices too) that way.

That won't work IIUC. If we stop using "-device sga" based on some introspected deprecation value on the device, that means the guest will have a different ABI from POV of migration stream. So we would be unable to migrate to a QEMU without the deprecation, despite the XML config being unchanged.

The only way we can stop using "-device sga" is if we either have something explicit in the XML saying whether to use it or not, or alternatively have some indicator associated with the next versioned machine type that we can hook off.

Regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
#27 lore raw

Re: [Qemu-devel] [PATCH v3 07/10] check: Only test boot-serial when sga is compiled in

Hi,

Quoted 4 lines

The only way we can stop using "-device sga" is if we either have something explicit in the XML saying whether to use it or not, or alternatively have some indicator associated with the next versioned machine type that we can hook off.

i.e. add some flag to MachineClass (and print it in introspection) ?

cheers,
Gerd

#28 lore raw

Re: [Qemu-devel] [PATCH v3 07/10] check: Only test boot-serial when sga is compiled in

In reply to Daniel P. Berrangé
Quoted 40 lines · Daniel P. Berrangé
Quoted 24 lines · Gerd Hoffmann
Quoted 9 lines
Quoted 4 lines

I remember we even discussed that a while back ... Oh yes:
https://git.kraxel.org/cgit/qemu/commit/?h=work/no-sgabios&id=408690999429fdf44011c49b3af6efa50f369b1e
Somehow never ended up being merged.

Sounds like a good idea! Could you repost the patch, with an update to qemu-deprecated.texi, please? Maybe also print the deprecation message in any case if !use_sgabios, e.g.:

Quoted 9 lines
    } else {
        /*
         * For this machine type we expect SeaBIOS to provide a
         * serial console for -machine graphics=off.  No need to
         * add the sgabios rom here.
         */
        warn_report("sgabios is deprecated and is not required anymore,"
                    " SeaBIOS now has the same functionality, too");
    }

Hmm, IIRC libvirt support is a bit tricky here as there is no easy way to probe for serial console support in seabios. So the idea was to just allow both -machine graphics=off and -device sga, by turning -device sga into a nop in case -machine graphics=off is present.

Quoted 8 lines

But given we meanwhile had some releases without this I suspect that isn't a good idea any more. With both -machine graphics=off -device sga seabios and sgabios will fight over the serial device ...

So, maybe take a completely different route. Add a deprecation_reason field to DeviceClass. Make it visible in qapi introspection, so libvirt can see it and avoid adding it to the command line. Then we can deprecate -device sga (and possibly other devices too) that way.

That won't work IIUC. If we stop using "-device sga" based on some introspected deprecation value on the device, that means the guest will have a different ABI from POV of migration stream. So we would be unable to migrate to a QEMU without the deprecation, despite the XML config being unchanged.

Quoted 4 lines

The only way we can stop using "-device sga" is if we either have something explicit in the XML saying whether to use it or not, or alternatively have some indicator associated with the next versioned machine type that we can hook off.

I think this is the only sane way to go. From machine type X.Y, device whatever is no longer available. That work for all devices, make live migration working, and we are sure that we are not using the "deprecated" device on new machines.

Later, Juan.

#29 lore raw

Re: [Qemu-devel] [PATCH v3 07/10] check: Only test boot-serial when sga is compiled in

In reply to Daniel P. Berrangé

Hi,

Quoted 4 lines

The only way we can stop using "-device sga" is if we either have something explicit in the XML saying whether to use it or not, or alternatively have some indicator associated with the next versioned machine type that we can hook off.

How does libvirt query the machine type properties?

thanks,
Gerd

#30 lore raw

Re: [Qemu-devel] [PATCH v3 07/10] check: Only test boot-serial when sga is compiled in

Quoted 8 lines · Gerd Hoffmann

Hi,

Quoted 4 lines

The only way we can stop using "-device sga" is if we either have something explicit in the XML saying whether to use it or not, or alternatively have some indicator associated with the next versioned machine type that we can hook off.

How does libvirt query the machine type properties?

libvirt is able to query properties against i440FX-pcihost and q35-pcihost devices - currently we only look for one prop:

static struct virQEMUCapsStringFlags virQEMUCapsDevicePropsI440FXPCIHost[] = {
    { "pci-hole64-size", QEMU_CAPS_I440FX_PCI_HOLE64_SIZE },
};
static struct virQEMUCapsStringFlags virQEMUCapsDevicePropsQ35PCIHost[] = {
    { "pci-hole64-size", QEMU_CAPS_Q35_PCI_HOLE64_SIZE },
};

Not sure if that's the kind of thing you're looking for ?

Regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
#31 lore raw

Re: [Qemu-devel] [PATCH v3 07/10] check: Only test boot-serial when sga is compiled in

Quoted 17 lines · Daniel P. Berrangé
Quoted 8 lines · Gerd Hoffmann

Hi,

Quoted 4 lines

The only way we can stop using "-device sga" is if we either have something explicit in the XML saying whether to use it or not, or alternatively have some indicator associated with the next versioned machine type that we can hook off.

How does libvirt query the machine type properties?

libvirt is able to query properties against i440FX-pcihost and q35-pcihost devices - currently we only look for one prop:

static struct virQEMUCapsStringFlags virQEMUCapsDevicePropsI440FXPCIHost[] = {
    { "pci-hole64-size", QEMU_CAPS_I440FX_PCI_HOLE64_SIZE },
};
Quoted 5 lines
static struct virQEMUCapsStringFlags virQEMUCapsDevicePropsQ35PCIHost[] = {
    { "pci-hole64-size", QEMU_CAPS_Q35_PCI_HOLE64_SIZE },
};

Not sure if that's the kind of thing you're looking for ?

Looking for way for libvirt to figure whenever a specific machine type has sga deprecated or not. So, if libvirt can query device properties, can we just add a "deprecated" property to sga and flip that to true for 3.1+ machine types?

cheers,
Gerd

#32 lore raw

Re: [Qemu-devel] [PATCH v3 07/10] check: Only test boot-serial when sga is compiled in

Quoted 22 lines · Gerd Hoffmann
Quoted 21 lines · Daniel P. Berrangé
Quoted 8 lines · Gerd Hoffmann

Hi,

Quoted 4 lines

The only way we can stop using "-device sga" is if we either have something explicit in the XML saying whether to use it or not, or alternatively have some indicator associated with the next versioned machine type that we can hook off.

How does libvirt query the machine type properties?

libvirt is able to query properties against i440FX-pcihost and q35-pcihost devices - currently we only look for one prop:

static struct virQEMUCapsStringFlags virQEMUCapsDevicePropsI440FXPCIHost[] = {
    { "pci-hole64-size", QEMU_CAPS_I440FX_PCI_HOLE64_SIZE },
};
static struct virQEMUCapsStringFlags virQEMUCapsDevicePropsQ35PCIHost[] = {
    { "pci-hole64-size", QEMU_CAPS_Q35_PCI_HOLE64_SIZE },
};
Quoted 6 lines
Quoted 1 line

Not sure if that's the kind of thing you're looking for ?

Looking for way for libvirt to figure whenever a specific machine type has sga deprecated or not. So, if libvirt can query device properties, can we just add a "deprecated" property to sga and flip that to true for 3.1+ machine types?

Unfortunately not, because libvirt probes everthing with '-machine none'

Regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
#33 lore raw

PATCH v3 8/10 check: Move VMXNET3 test to common

In reply to Juan Quintela

We protect it with CONFIG_VMXNET3_PCI now, so no need to also put it on i386.

---
 tests/Makefile.include | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tests/Makefile.include +2 -2
index d524e1bdeb..91ffde3103 100644
@@ -247,6 +247,8 @@ check-qtest-pci-$(CONFIG_IVSHMEM_DEVICE) += tests/ivshmem-test$(EXESUF)
 gcov-files-pci-$(CONFIG_IVSHMEM_DEVICE) += hw/misc/ivshmem.c
 check-qtest-pci-y += tests/megasas-test$(EXESUF)
 gcov-files-pci-y += hw/scsi/megasas.c
+check-qtest-$(CONFIG_VMXNET3_PCI) += tests/vmxnet3-test$(EXESUF)
+gcov-files-$(CONFIG_VMXNET3_PCI) += hw/net/vmxnet3.c
 
 check-qtest-i386-$(CONFIG_ISA_TESTDEV) = tests/endianness-test$(EXESUF)
 check-qtest-i386-y += tests/fdc-test$(EXESUF)
@@ -270,8 +272,6 @@ gcov-files-i386-$(CONFIG_WDT_IB700) += hw/watchdog/watchdog.c hw/watchdog/wdt_ib
 check-qtest-i386-y += tests/tco-test$(EXESUF)
 check-qtest-i386-y += $(check-qtest-pci-y)
 gcov-files-i386-y += $(gcov-files-pci-y)
-check-qtest-i386-$(CONFIG_VMXNET3_PCI) += tests/vmxnet3-test$(EXESUF)
-gcov-files-i386-$(CONFIG_VMXNET3_PCI) += hw/net/vmxnet3.c
 gcov-files-i386-y += hw/net/net_rx_pkt.c
 gcov-files-i386-y += hw/net/net_tx_pkt.c
 check-qtest-i386-$(CONFIG_PVPANIC) += tests/pvpanic-test$(EXESUF)
Signature · 1 line
2.17.1
#34 lore raw

Re: [Qemu-devel] [PATCH v3 08/10] check: Move VMXNET3 test to common

Quoted 22 lines · Juan Quintela

We protect it with CONFIG_VMXNET3_PCI now, so no need to also put it on i386.

---
 tests/Makefile.include | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tests/Makefile.include +2 -0
index d524e1bdeb..91ffde3103 100644
@@ -247,6 +247,8 @@ check-qtest-pci-$(CONFIG_IVSHMEM_DEVICE) += tests/ivshmem-test$(EXESUF)
 gcov-files-pci-$(CONFIG_IVSHMEM_DEVICE) += hw/misc/ivshmem.c
 check-qtest-pci-y += tests/megasas-test$(EXESUF)
 gcov-files-pci-y += hw/scsi/megasas.c
+check-qtest-$(CONFIG_VMXNET3_PCI) += tests/vmxnet3-test$(EXESUF)
+gcov-files-$(CONFIG_VMXNET3_PCI) += hw/net/vmxnet3.c
 
 check-qtest-i386-$(CONFIG_ISA_TESTDEV) = tests/endianness-test$(EXESUF)
 check-qtest-i386-y += tests/fdc-test$(EXESUF)

tests/Makefile.include gcov-files-i386-$(CONFIG_WDT_IB700) += hw/watchdog/watchdog.c hw/watchdog/wdt_ib · line 277

Quoted 8 lines
tests/Makefile.include +0 -2
@@ -270,8 +272,6 @@ gcov-files-i386-$(CONFIG_WDT_IB700) += hw/watchdog/watchdog.c hw/watchdog/wdt_ib
 check-qtest-i386-y += tests/tco-test$(EXESUF)
 check-qtest-i386-y += $(check-qtest-pci-y)
 gcov-files-i386-y += $(gcov-files-pci-y)
-check-qtest-i386-$(CONFIG_VMXNET3_PCI) += tests/vmxnet3-test$(EXESUF)
-gcov-files-i386-$(CONFIG_VMXNET3_PCI) += hw/net/vmxnet3.c
 gcov-files-i386-y += hw/net/net_rx_pkt.c
 gcov-files-i386-y += hw/net/net_tx_pkt.c
 check-qtest-i386-$(CONFIG_PVPANIC) += tests/pvpanic-test$(EXESUF)

It shouldn't matter much ... it's a x86-only device, so we could also keep it there? Or is there an urgent reason to move it?

Thomas

#35 lore raw

Re: [Qemu-devel] [PATCH v3 08/10] check: Move VMXNET3 test to common

Quoted 21 lines · Thomas Huth
Quoted 20 lines · Juan Quintela

We protect it with CONFIG_VMXNET3_PCI now, so no need to also put it on i386.

---
 tests/Makefile.include | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tests/Makefile.include +2 -0
index d524e1bdeb..91ffde3103 100644
@@ -247,6 +247,8 @@ check-qtest-pci-$(CONFIG_IVSHMEM_DEVICE) +=
 tests/ivshmem-test$(EXESUF)
 gcov-files-pci-$(CONFIG_IVSHMEM_DEVICE) += hw/misc/ivshmem.c
 check-qtest-pci-y += tests/megasas-test$(EXESUF)
 gcov-files-pci-y += hw/scsi/megasas.c
+check-qtest-$(CONFIG_VMXNET3_PCI) += tests/vmxnet3-test$(EXESUF)
+gcov-files-$(CONFIG_VMXNET3_PCI) += hw/net/vmxnet3.c
 
Quoted 15 lines

tests/Makefile.include gcov-files-i386-$(CONFIG_WDT_IB700) += hw/watchdog/watchdog.c hw/watchdog/wdt_ib · line 277

Quoted 12 lines
tests/Makefile.include +0 -0
 check-qtest-i386-$(CONFIG_ISA_TESTDEV) = tests/endianness-test$(EXESUF)

check-qtest-i386-y += tests/fdc-test$(EXESUF)

tests/Makefile.include +0 -0
@@ -270,8 +272,6 @@ gcov-files-i386-$(CONFIG_WDT_IB700) +=

hw/watchdog/watchdog.c hw/watchdog/wdt_ib
check-qtest-i386-y += tests/tco-test$(EXESUF)
check-qtest-i386-y += $(check-qtest-pci-y)
gcov-files-i386-y += $(gcov-files-pci-y)

tests/Makefile.include +0 -2
-check-qtest-i386-$(CONFIG_VMXNET3_PCI) += tests/vmxnet3-test$(EXESUF)
-gcov-files-i386-$(CONFIG_VMXNET3_PCI) += hw/net/vmxnet3.c
 gcov-files-i386-y += hw/net/net_rx_pkt.c
 gcov-files-i386-y += hw/net/net_tx_pkt.c
 check-qtest-i386-$(CONFIG_PVPANIC) += tests/pvpanic-test$(EXESUF)

It shouldn't matter much ... it's a x86-only device, so we could also keep it there? Or is there an urgent reason to move it?

I was trying to minimize the amount that are architecture specific. In this particular case it is defined already on i386-softmmu.mak. So, why should we maintain that info in two places?

Anyways, I had to stop soon this "cleanup" because there are things like boot-serial-test that don't work on all the boards that define CONFIG_SERIAL :-(

Later, Juan.

Reviewed-by
#36 lore raw

Re: [Qemu-devel] [PATCH v3 08/10] check: Move VMXNET3 test to common

Quoted 38 lines · Juan Quintela
Quoted 21 lines · Thomas Huth
Quoted 20 lines · Juan Quintela

We protect it with CONFIG_VMXNET3_PCI now, so no need to also put it on i386.

---
 tests/Makefile.include | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tests/Makefile.include +2 -0
index d524e1bdeb..91ffde3103 100644
@@ -247,6 +247,8 @@ check-qtest-pci-$(CONFIG_IVSHMEM_DEVICE) +=
 tests/ivshmem-test$(EXESUF)
 gcov-files-pci-$(CONFIG_IVSHMEM_DEVICE) += hw/misc/ivshmem.c
 check-qtest-pci-y += tests/megasas-test$(EXESUF)
 gcov-files-pci-y += hw/scsi/megasas.c
+check-qtest-$(CONFIG_VMXNET3_PCI) += tests/vmxnet3-test$(EXESUF)
+gcov-files-$(CONFIG_VMXNET3_PCI) += hw/net/vmxnet3.c
 
Quoted 15 lines

tests/Makefile.include gcov-files-i386-$(CONFIG_WDT_IB700) += hw/watchdog/watchdog.c hw/watchdog/wdt_ib · line 277

Quoted 12 lines
tests/Makefile.include +0 -0
 check-qtest-i386-$(CONFIG_ISA_TESTDEV) = tests/endianness-test$(EXESUF)

check-qtest-i386-y += tests/fdc-test$(EXESUF)

tests/Makefile.include +0 -0
@@ -270,8 +272,6 @@ gcov-files-i386-$(CONFIG_WDT_IB700) +=

hw/watchdog/watchdog.c hw/watchdog/wdt_ib
check-qtest-i386-y += tests/tco-test$(EXESUF)
check-qtest-i386-y += $(check-qtest-pci-y)
gcov-files-i386-y += $(gcov-files-pci-y)

tests/Makefile.include +0 -2
-check-qtest-i386-$(CONFIG_VMXNET3_PCI) += tests/vmxnet3-test$(EXESUF)
-gcov-files-i386-$(CONFIG_VMXNET3_PCI) += hw/net/vmxnet3.c
 gcov-files-i386-y += hw/net/net_rx_pkt.c
 gcov-files-i386-y += hw/net/net_tx_pkt.c
 check-qtest-i386-$(CONFIG_PVPANIC) += tests/pvpanic-test$(EXESUF)

It shouldn't matter much ... it's a x86-only device, so we could also keep it there? Or is there an urgent reason to move it?

Quoted 3 lines

I was trying to minimize the amount that are architecture specific. In this particular case it is defined already on i386-softmmu.mak. So, why should we maintain that info in two places?

Ok, fair.

Quoted 3 lines

Anyways, I had to stop soon this "cleanup" because there are things like boot-serial-test that don't work on all the boards that define CONFIG_SERIAL :-(

Which ones are missing? Feel free to contribute small assembler programs there to increase the test coverage ;-)

Thomas

#37 lore raw

Re: [Qemu-devel] [PATCH v3 08/10] check: Move VMXNET3 test to common

Quoted 45 lines · Thomas Huth
Quoted 38 lines · Juan Quintela
Quoted 21 lines · Thomas Huth
Quoted 20 lines · Juan Quintela

We protect it with CONFIG_VMXNET3_PCI now, so no need to also put it on i386.

---
 tests/Makefile.include | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tests/Makefile.include +2 -0
index d524e1bdeb..91ffde3103 100644
@@ -247,6 +247,8 @@ check-qtest-pci-$(CONFIG_IVSHMEM_DEVICE) +=
 tests/ivshmem-test$(EXESUF)
 gcov-files-pci-$(CONFIG_IVSHMEM_DEVICE) += hw/misc/ivshmem.c
 check-qtest-pci-y += tests/megasas-test$(EXESUF)
 gcov-files-pci-y += hw/scsi/megasas.c
+check-qtest-$(CONFIG_VMXNET3_PCI) += tests/vmxnet3-test$(EXESUF)
+gcov-files-$(CONFIG_VMXNET3_PCI) += hw/net/vmxnet3.c
 
Quoted 15 lines

tests/Makefile.include gcov-files-i386-$(CONFIG_WDT_IB700) += hw/watchdog/watchdog.c hw/watchdog/wdt_ib · line 277

Quoted 12 lines
tests/Makefile.include +0 -0
 check-qtest-i386-$(CONFIG_ISA_TESTDEV) = tests/endianness-test$(EXESUF)

check-qtest-i386-y += tests/fdc-test$(EXESUF)

tests/Makefile.include +0 -0
@@ -270,8 +272,6 @@ gcov-files-i386-$(CONFIG_WDT_IB700) +=

hw/watchdog/watchdog.c hw/watchdog/wdt_ib
check-qtest-i386-y += tests/tco-test$(EXESUF)
check-qtest-i386-y += $(check-qtest-pci-y)
gcov-files-i386-y += $(gcov-files-pci-y)

tests/Makefile.include +0 -2
-check-qtest-i386-$(CONFIG_VMXNET3_PCI) += tests/vmxnet3-test$(EXESUF)
-gcov-files-i386-$(CONFIG_VMXNET3_PCI) += hw/net/vmxnet3.c
 gcov-files-i386-y += hw/net/net_rx_pkt.c
 gcov-files-i386-y += hw/net/net_tx_pkt.c
 check-qtest-i386-$(CONFIG_PVPANIC) += tests/pvpanic-test$(EXESUF)

It shouldn't matter much ... it's a x86-only device, so we could also keep it there? Or is there an urgent reason to move it?

Quoted 3 lines

I was trying to minimize the amount that are architecture specific. In this particular case it is defined already on i386-softmmu.mak. So, why should we maintain that info in two places?

Ok, fair.

Quoted 8 lines
Quoted 3 lines

Anyways, I had to stop soon this "cleanup" because there are things like boot-serial-test that don't work on all the boards that define CONFIG_SERIAL :-(

Which ones are missing? Feel free to contribute small assembler programs there to increase the test coverage ;-)

moxie, ti and another two or so. I will try to take another round of serial "cleanups" next week and will come with a better answer.

Later, Juan.

#38 lore raw

PATCH v3 9/10 check: Move endianess test to common

In reply to Juan Quintela

It is already protected by CONFIG_ISA_TESTDEV in all architectures.

---
 tests/Makefile.include | 14 +-------------
 1 file changed, 1 insertion(+), 13 deletions(-)
tests/Makefile.include +1 -13
index 91ffde3103..f646cd0524 100644
@@ -249,8 +249,8 @@ check-qtest-pci-y += tests/megasas-test$(EXESUF)
 gcov-files-pci-y += hw/scsi/megasas.c
 check-qtest-$(CONFIG_VMXNET3_PCI) += tests/vmxnet3-test$(EXESUF)
 gcov-files-$(CONFIG_VMXNET3_PCI) += hw/net/vmxnet3.c
+check-qtest-$(CONFIG_ISA_TESTDEV) = tests/endianness-test$(EXESUF)
 
-check-qtest-i386-$(CONFIG_ISA_TESTDEV) = tests/endianness-test$(EXESUF)
 check-qtest-i386-y += tests/fdc-test$(EXESUF)
 gcov-files-i386-y = hw/block/fdc.c
 check-qtest-i386-y += tests/ide-test$(EXESUF)
@@ -324,13 +324,6 @@ check-qtest-microblaze-y = tests/boot-serial-test$(EXESUF)
 
 check-qtest-moxie-y = tests/boot-serial-test$(EXESUF)
 
-check-qtest-mips-$(CONFIG_ISA_TESTDEV) = tests/endianness-test$(EXESUF)
-
-check-qtest-mips64-$(CONFIG_ISA_TESTDEV) = tests/endianness-test$(EXESUF)
-
-check-qtest-mips64el-$(CONFIG_ISA_TESTDEV) = tests/endianness-test$(EXESUF)
-
-check-qtest-ppc-$(CONFIG_ISA_TESTDEV) = tests/endianness-test$(EXESUF)
 check-qtest-ppc-y += tests/boot-order-test$(EXESUF)
 check-qtest-ppc-y += tests/prom-env-test$(EXESUF)
 check-qtest-ppc-y += tests/drive_del-test$(EXESUF)
@@ -361,16 +354,11 @@ check-qtest-ppc64-y += tests/numa-test$(EXESUF)
 check-qtest-ppc64-$(CONFIG_IVSHMEM_DEVICE) += tests/ivshmem-test$(EXESUF)
 check-qtest-ppc64-y += tests/cpu-plug-test$(EXESUF)
 
-check-qtest-sh4-$(CONFIG_ISA_TESTDEV) = tests/endianness-test$(EXESUF)
-
-check-qtest-sh4eb-$(CONFIG_ISA_TESTDEV) = tests/endianness-test$(EXESUF)
-
 check-qtest-sparc-y = tests/prom-env-test$(EXESUF)
 check-qtest-sparc-y += tests/m48t59-test$(EXESUF)
 gcov-files-sparc-y = hw/timer/m48t59.c
 check-qtest-sparc-y += tests/boot-serial-test$(EXESUF)
 
-check-qtest-sparc64-$(CONFIG_ISA_TESTDEV) = tests/endianness-test$(EXESUF)
 check-qtest-sparc64-y += tests/prom-env-test$(EXESUF)
 check-qtest-sparc64-y += tests/boot-serial-test$(EXESUF)
 
Signature · 1 line
2.17.1
Reviewed-by on v3 9/10
#39 lore raw

Re: [Qemu-devel] [PATCH v3 09/10] check: Move endianess test to common

Quoted 41 lines · Juan Quintela

It is already protected by CONFIG_ISA_TESTDEV in all architectures.

---
 tests/Makefile.include | 14 +-------------
 1 file changed, 1 insertion(+), 13 deletions(-)
tests/Makefile.include +1 -10
index 91ffde3103..f646cd0524 100644
@@ -249,8 +249,8 @@ check-qtest-pci-y += tests/megasas-test$(EXESUF)
 gcov-files-pci-y += hw/scsi/megasas.c
 check-qtest-$(CONFIG_VMXNET3_PCI) += tests/vmxnet3-test$(EXESUF)
 gcov-files-$(CONFIG_VMXNET3_PCI) += hw/net/vmxnet3.c
+check-qtest-$(CONFIG_ISA_TESTDEV) = tests/endianness-test$(EXESUF)
 
-check-qtest-i386-$(CONFIG_ISA_TESTDEV) = tests/endianness-test$(EXESUF)
 check-qtest-i386-y += tests/fdc-test$(EXESUF)
 gcov-files-i386-y = hw/block/fdc.c
 check-qtest-i386-y += tests/ide-test$(EXESUF)
@@ -324,13 +324,6 @@ check-qtest-microblaze-y = tests/boot-serial-test$(EXESUF)
 
 check-qtest-moxie-y = tests/boot-serial-test$(EXESUF)
 
-check-qtest-mips-$(CONFIG_ISA_TESTDEV) = tests/endianness-test$(EXESUF)
-
-check-qtest-mips64-$(CONFIG_ISA_TESTDEV) = tests/endianness-test$(EXESUF)
-
-check-qtest-mips64el-$(CONFIG_ISA_TESTDEV) = tests/endianness-test$(EXESUF)
-
-check-qtest-ppc-$(CONFIG_ISA_TESTDEV) = tests/endianness-test$(EXESUF)
 check-qtest-ppc-y += tests/boot-order-test$(EXESUF)
 check-qtest-ppc-y += tests/prom-env-test$(EXESUF)
 check-qtest-ppc-y += tests/drive_del-test$(EXESUF)
@@ -361,16 +354,11 @@ check-qtest-ppc64-y += tests/numa-test$(EXESUF)
 check-qtest-ppc64-$(CONFIG_IVSHMEM_DEVICE) += tests/ivshmem-test$(EXESUF)
 check-qtest-ppc64-y += tests/cpu-plug-test$(EXESUF)
 
-check-qtest-sh4-$(CONFIG_ISA_TESTDEV) = tests/endianness-test$(EXESUF)
-

tests/Makefile.include check-qtest-ppc64-y += tests/numa-test$(EXESUF) · line 363

Quoted 10 lines
tests/Makefile.include +0 -3
-check-qtest-sh4eb-$(CONFIG_ISA_TESTDEV) = tests/endianness-test$(EXESUF)
-
 check-qtest-sparc-y = tests/prom-env-test$(EXESUF)
 check-qtest-sparc-y += tests/m48t59-test$(EXESUF)
 gcov-files-sparc-y = hw/timer/m48t59.c
 check-qtest-sparc-y += tests/boot-serial-test$(EXESUF)
 
-check-qtest-sparc64-$(CONFIG_ISA_TESTDEV) = tests/endianness-test$(EXESUF)
 check-qtest-sparc64-y += tests/prom-env-test$(EXESUF)
 check-qtest-sparc64-y += tests/boot-serial-test$(EXESUF)
#40 lore raw

PATCH v3 10/10 check: Move wdt_ib700 test to common

In reply to Juan Quintela

It is protected by CONFIG_WDT_IB700.

---
 tests/Makefile.include | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tests/Makefile.include +2 -2
index f646cd0524..adfce0be95 100644
@@ -250,6 +250,8 @@ gcov-files-pci-y += hw/scsi/megasas.c
 check-qtest-$(CONFIG_VMXNET3_PCI) += tests/vmxnet3-test$(EXESUF)
 gcov-files-$(CONFIG_VMXNET3_PCI) += hw/net/vmxnet3.c
 check-qtest-$(CONFIG_ISA_TESTDEV) = tests/endianness-test$(EXESUF)
+check-qtest-$(CONFIG_WDT_IB700) += tests/wdt_ib700-test$(EXESUF)
+gcov-files-$(CONFIG_WDT_IB700) += hw/watchdog/watchdog.c hw/watchdog/wdt_ib700.c
 
 check-qtest-i386-y += tests/fdc-test$(EXESUF)
 gcov-files-i386-y = hw/block/fdc.c
@@ -267,8 +269,6 @@ check-qtest-i386-y += tests/ipmi-bt-test$(EXESUF)
 check-qtest-i386-y += tests/i440fx-test$(EXESUF)
 check-qtest-i386-y += tests/fw_cfg-test$(EXESUF)
 check-qtest-i386-y += tests/drive_del-test$(EXESUF)
-check-qtest-i386-$(CONFIG_WDT_IB700) += tests/wdt_ib700-test$(EXESUF)
-gcov-files-i386-$(CONFIG_WDT_IB700) += hw/watchdog/watchdog.c hw/watchdog/wdt_ib700.c
 check-qtest-i386-y += tests/tco-test$(EXESUF)
 check-qtest-i386-y += $(check-qtest-pci-y)
 gcov-files-i386-y += $(gcov-files-pci-y)
Signature · 1 line
2.17.1
Reviewed-by on v3 10/10
#41 lore raw

Re: [Qemu-devel] [PATCH v3 10/10] check: Move wdt_ib700 test to common

Quoted 21 lines · Juan Quintela

It is protected by CONFIG_WDT_IB700.

---
 tests/Makefile.include | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tests/Makefile.include +2 -0
index f646cd0524..adfce0be95 100644
@@ -250,6 +250,8 @@ gcov-files-pci-y += hw/scsi/megasas.c
 check-qtest-$(CONFIG_VMXNET3_PCI) += tests/vmxnet3-test$(EXESUF)
 gcov-files-$(CONFIG_VMXNET3_PCI) += hw/net/vmxnet3.c
 check-qtest-$(CONFIG_ISA_TESTDEV) = tests/endianness-test$(EXESUF)
+check-qtest-$(CONFIG_WDT_IB700) += tests/wdt_ib700-test$(EXESUF)
+gcov-files-$(CONFIG_WDT_IB700) += hw/watchdog/watchdog.c hw/watchdog/wdt_ib700.c
 
 check-qtest-i386-y += tests/fdc-test$(EXESUF)
 gcov-files-i386-y = hw/block/fdc.c

tests/Makefile.include check-qtest-i386-y += tests/ipmi-bt-test$(EXESUF) · line 274

Quoted 8 lines
tests/Makefile.include +0 -2
@@ -267,8 +269,6 @@ check-qtest-i386-y += tests/ipmi-bt-test$(EXESUF)
 check-qtest-i386-y += tests/i440fx-test$(EXESUF)
 check-qtest-i386-y += tests/fw_cfg-test$(EXESUF)
 check-qtest-i386-y += tests/drive_del-test$(EXESUF)
-check-qtest-i386-$(CONFIG_WDT_IB700) += tests/wdt_ib700-test$(EXESUF)
-gcov-files-i386-$(CONFIG_WDT_IB700) += hw/watchdog/watchdog.c hw/watchdog/wdt_ib700.c
 check-qtest-i386-y += tests/tco-test$(EXESUF)
 check-qtest-i386-y += $(check-qtest-pci-y)
 gcov-files-i386-y += $(gcov-files-pci-y)