All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v3 00/10] Don't check disabled drivers
@ 2018-08-22  9:54 Juan Quintela
  2018-08-22  9:54 ` [Qemu-devel] [PATCH v3 01/10] configure: We don't want to clean configuration files Juan Quintela
                   ` (9 more replies)
  0 siblings, 10 replies; 42+ messages in thread
From: Juan Quintela @ 2018-08-22  9:54 UTC (permalink / raw)
  To: qemu-devel; +Cc: dgilbert, lvivier, peterx

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(-)

-- 
2.17.1

^ permalink raw reply	[flat|nested] 42+ messages in thread

* [Qemu-devel] [PATCH v3 01/10] configure: We don't want to clean configuration files
  2018-08-22  9:54 [Qemu-devel] [PATCH v3 00/10] Don't check disabled drivers Juan Quintela
@ 2018-08-22  9:54 ` Juan Quintela
  2018-08-22 10:08   ` Thomas Huth
  2018-08-22  9:54 ` [Qemu-devel] [PATCH v3 02/10] check: Use land/lor when possible Juan Quintela
                   ` (8 subsequent siblings)
  9 siblings, 1 reply; 42+ messages in thread
From: Juan Quintela @ 2018-08-22  9:54 UTC (permalink / raw)
  To: qemu-devel; +Cc: dgilbert, lvivier, peterx

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.

Signed-off-by: Juan Quintela <quintela@redhat.com>

--

Remove it instead on distclean.

Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index b7c6e57de6..fe623e4634 100644
--- a/Makefile
+++ b/Makefile
@@ -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
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 42+ messages in thread

* [Qemu-devel] [PATCH v3 02/10] check: Use land/lor when possible
  2018-08-22  9:54 [Qemu-devel] [PATCH v3 00/10] Don't check disabled drivers Juan Quintela
  2018-08-22  9:54 ` [Qemu-devel] [PATCH v3 01/10] configure: We don't want to clean configuration files Juan Quintela
@ 2018-08-22  9:54 ` Juan Quintela
  2018-08-22 10:13   ` Thomas Huth
  2018-08-22  9:54 ` [Qemu-devel] [PATCH v3 03/10] check: Only test isa-testdev when it is compiled in Juan Quintela
                   ` (7 subsequent siblings)
  9 siblings, 1 reply; 42+ messages in thread
From: Juan Quintela @ 2018-08-22  9:54 UTC (permalink / raw)
  To: qemu-devel; +Cc: dgilbert, lvivier, peterx

So everythig is (a bit) more consistent

Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 tests/Makefile.include | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/tests/Makefile.include b/tests/Makefile.include
index 6dc8d06f4c..a705793381 100644
--- a/tests/Makefile.include
+++ b/tests/Makefile.include
@@ -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)
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 42+ messages in thread

* [Qemu-devel] [PATCH v3 03/10] check: Only test isa-testdev when it is compiled in
  2018-08-22  9:54 [Qemu-devel] [PATCH v3 00/10] Don't check disabled drivers Juan Quintela
  2018-08-22  9:54 ` [Qemu-devel] [PATCH v3 01/10] configure: We don't want to clean configuration files Juan Quintela
  2018-08-22  9:54 ` [Qemu-devel] [PATCH v3 02/10] check: Use land/lor when possible Juan Quintela
@ 2018-08-22  9:54 ` Juan Quintela
  2018-08-22 10:18   ` Thomas Huth
  2018-08-22  9:54 ` [Qemu-devel] [PATCH v3 04/10] check: Only test usb-xhci-nec " Juan Quintela
                   ` (6 subsequent siblings)
  9 siblings, 1 reply; 42+ messages in thread
From: Juan Quintela @ 2018-08-22  9:54 UTC (permalink / raw)
  To: qemu-devel; +Cc: dgilbert, lvivier, peterx

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

Signed-off-by: Juan Quintela <quintela@redhat.com>

--

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

Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 tests/Makefile.include | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/tests/Makefile.include b/tests/Makefile.include
index a705793381..15296be246 100644
--- a/tests/Makefile.include
+++ b/tests/Makefile.include
@@ -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)
 
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 42+ messages in thread

* [Qemu-devel] [PATCH v3 04/10] check: Only test usb-xhci-nec when it is compiled in
  2018-08-22  9:54 [Qemu-devel] [PATCH v3 00/10] Don't check disabled drivers Juan Quintela
                   ` (2 preceding siblings ...)
  2018-08-22  9:54 ` [Qemu-devel] [PATCH v3 03/10] check: Only test isa-testdev when it is compiled in Juan Quintela
@ 2018-08-22  9:54 ` Juan Quintela
  2018-08-22 10:22   ` Thomas Huth
  2018-08-22  9:54 ` [Qemu-devel] [PATCH v3 05/10] x86_64-softmmu: Configuration is identical to i386-softmmu Juan Quintela
                   ` (5 subsequent siblings)
  9 siblings, 1 reply; 42+ messages in thread
From: Juan Quintela @ 2018-08-22  9:54 UTC (permalink / raw)
  To: qemu-devel; +Cc: dgilbert, lvivier, peterx

Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 tests/Makefile.include | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/tests/Makefile.include b/tests/Makefile.include
index 15296be246..9a918f7655 100644
--- a/tests/Makefile.include
+++ b/tests/Makefile.include
@@ -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)
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 42+ messages in thread

* [Qemu-devel] [PATCH v3 05/10] x86_64-softmmu: Configuration is identical to i386-softmmu
  2018-08-22  9:54 [Qemu-devel] [PATCH v3 00/10] Don't check disabled drivers Juan Quintela
                   ` (3 preceding siblings ...)
  2018-08-22  9:54 ` [Qemu-devel] [PATCH v3 04/10] check: Only test usb-xhci-nec " Juan Quintela
@ 2018-08-22  9:54 ` Juan Quintela
  2018-08-22 10:23   ` Thomas Huth
  2018-08-22  9:54 ` [Qemu-devel] [PATCH v3 06/10] check: Only test ivshm when it is compiled in Juan Quintela
                   ` (4 subsequent siblings)
  9 siblings, 1 reply; 42+ messages in thread
From: Juan Quintela @ 2018-08-22  9:54 UTC (permalink / raw)
  To: qemu-devel; +Cc: dgilbert, lvivier, peterx

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

Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 default-configs/x86_64-softmmu.mak | 67 +-----------------------------
 1 file changed, 1 insertion(+), 66 deletions(-)

diff --git a/default-configs/x86_64-softmmu.mak b/default-configs/x86_64-softmmu.mak
index 0390b4303c..64b2ee2960 100644
--- a/default-configs/x86_64-softmmu.mak
+++ b/default-configs/x86_64-softmmu.mak
@@ -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
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 42+ messages in thread

* [Qemu-devel] [PATCH v3 06/10] check: Only test ivshm when it is compiled in
  2018-08-22  9:54 [Qemu-devel] [PATCH v3 00/10] Don't check disabled drivers Juan Quintela
                   ` (4 preceding siblings ...)
  2018-08-22  9:54 ` [Qemu-devel] [PATCH v3 05/10] x86_64-softmmu: Configuration is identical to i386-softmmu Juan Quintela
@ 2018-08-22  9:54 ` Juan Quintela
  2018-08-22 10:26   ` Thomas Huth
  2018-08-22  9:54 ` [Qemu-devel] [PATCH v3 07/10] check: Only test boot-serial when sga " Juan Quintela
                   ` (3 subsequent siblings)
  9 siblings, 1 reply; 42+ messages in thread
From: Juan Quintela @ 2018-08-22  9:54 UTC (permalink / raw)
  To: qemu-devel; +Cc: dgilbert, lvivier, peterx

Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 tests/Makefile.include | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/Makefile.include b/tests/Makefile.include
index 9a918f7655..116e93cdb6 100644
--- a/tests/Makefile.include
+++ b/tests/Makefile.include
@@ -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)
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 42+ messages in thread

* [Qemu-devel] [PATCH v3 07/10] check: Only test boot-serial when sga is compiled in
  2018-08-22  9:54 [Qemu-devel] [PATCH v3 00/10] Don't check disabled drivers Juan Quintela
                   ` (5 preceding siblings ...)
  2018-08-22  9:54 ` [Qemu-devel] [PATCH v3 06/10] check: Only test ivshm when it is compiled in Juan Quintela
@ 2018-08-22  9:54 ` Juan Quintela
  2018-08-22 10:30   ` Thomas Huth
  2018-08-22  9:54 ` [Qemu-devel] [PATCH v3 08/10] check: Move VMXNET3 test to common Juan Quintela
                   ` (2 subsequent siblings)
  9 siblings, 1 reply; 42+ messages in thread
From: Juan Quintela @ 2018-08-22  9:54 UTC (permalink / raw)
  To: qemu-devel; +Cc: dgilbert, lvivier, peterx

This is only for x86* architecture.

Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 tests/Makefile.include | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/Makefile.include b/tests/Makefile.include
index 116e93cdb6..d524e1bdeb 100644
--- a/tests/Makefile.include
+++ b/tests/Makefile.include
@@ -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)
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 42+ messages in thread

* [Qemu-devel] [PATCH v3 08/10] check: Move VMXNET3 test to common
  2018-08-22  9:54 [Qemu-devel] [PATCH v3 00/10] Don't check disabled drivers Juan Quintela
                   ` (6 preceding siblings ...)
  2018-08-22  9:54 ` [Qemu-devel] [PATCH v3 07/10] check: Only test boot-serial when sga " Juan Quintela
@ 2018-08-22  9:54 ` Juan Quintela
  2018-08-22 10:34   ` Thomas Huth
  2018-08-22  9:54 ` [Qemu-devel] [PATCH v3 09/10] check: Move endianess " Juan Quintela
  2018-08-22  9:54 ` [Qemu-devel] [PATCH v3 10/10] check: Move wdt_ib700 " Juan Quintela
  9 siblings, 1 reply; 42+ messages in thread
From: Juan Quintela @ 2018-08-22  9:54 UTC (permalink / raw)
  To: qemu-devel; +Cc: dgilbert, lvivier, peterx

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

Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 tests/Makefile.include | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/Makefile.include b/tests/Makefile.include
index d524e1bdeb..91ffde3103 100644
--- a/tests/Makefile.include
+++ b/tests/Makefile.include
@@ -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)
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 42+ messages in thread

* [Qemu-devel] [PATCH v3 09/10] check: Move endianess test to common
  2018-08-22  9:54 [Qemu-devel] [PATCH v3 00/10] Don't check disabled drivers Juan Quintela
                   ` (7 preceding siblings ...)
  2018-08-22  9:54 ` [Qemu-devel] [PATCH v3 08/10] check: Move VMXNET3 test to common Juan Quintela
@ 2018-08-22  9:54 ` Juan Quintela
  2018-08-22 10:36   ` Thomas Huth
  2018-08-22  9:54 ` [Qemu-devel] [PATCH v3 10/10] check: Move wdt_ib700 " Juan Quintela
  9 siblings, 1 reply; 42+ messages in thread
From: Juan Quintela @ 2018-08-22  9:54 UTC (permalink / raw)
  To: qemu-devel; +Cc: dgilbert, lvivier, peterx

It is already protected by CONFIG_ISA_TESTDEV in all architectures.

Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 tests/Makefile.include | 14 +-------------
 1 file changed, 1 insertion(+), 13 deletions(-)

diff --git a/tests/Makefile.include b/tests/Makefile.include
index 91ffde3103..f646cd0524 100644
--- a/tests/Makefile.include
+++ b/tests/Makefile.include
@@ -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)
 
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 42+ messages in thread

* [Qemu-devel] [PATCH v3 10/10] check: Move wdt_ib700 test to common
  2018-08-22  9:54 [Qemu-devel] [PATCH v3 00/10] Don't check disabled drivers Juan Quintela
                   ` (8 preceding siblings ...)
  2018-08-22  9:54 ` [Qemu-devel] [PATCH v3 09/10] check: Move endianess " Juan Quintela
@ 2018-08-22  9:54 ` Juan Quintela
  2018-08-22 10:37   ` Thomas Huth
  9 siblings, 1 reply; 42+ messages in thread
From: Juan Quintela @ 2018-08-22  9:54 UTC (permalink / raw)
  To: qemu-devel; +Cc: dgilbert, lvivier, peterx

It is protected by CONFIG_WDT_IB700.

Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 tests/Makefile.include | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/Makefile.include b/tests/Makefile.include
index f646cd0524..adfce0be95 100644
--- a/tests/Makefile.include
+++ b/tests/Makefile.include
@@ -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)
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 42+ messages in thread

* Re: [Qemu-devel] [PATCH v3 01/10] configure: We don't want to clean configuration files
  2018-08-22  9:54 ` [Qemu-devel] [PATCH v3 01/10] configure: We don't want to clean configuration files Juan Quintela
@ 2018-08-22 10:08   ` Thomas Huth
  2018-08-22 14:24     ` Juan Quintela
  0 siblings, 1 reply; 42+ messages in thread
From: Thomas Huth @ 2018-08-22 10:08 UTC (permalink / raw)
  To: Juan Quintela, qemu-devel; +Cc: lvivier, dgilbert, peterx

On 2018-08-22 11:54, Juan Quintela wrote:
> 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!

> Signed-off-by: Juan Quintela <quintela@redhat.com>
> 
> --
> 
> Remove it instead on distclean.
> 
> Signed-off-by: Juan Quintela <quintela@redhat.com>

Please remove the duplicated Sob. Then you can add:

Reviewed-by: Thomas Huth <thuth@redhat.com>

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [Qemu-devel] [PATCH v3 02/10] check: Use land/lor when possible
  2018-08-22  9:54 ` [Qemu-devel] [PATCH v3 02/10] check: Use land/lor when possible Juan Quintela
@ 2018-08-22 10:13   ` Thomas Huth
  2018-08-22 14:28     ` Juan Quintela
  0 siblings, 1 reply; 42+ messages in thread
From: Thomas Huth @ 2018-08-22 10:13 UTC (permalink / raw)
  To: Juan Quintela, qemu-devel; +Cc: lvivier, dgilbert, peterx

On 2018-08-22 11:54, Juan Quintela wrote:
> So everythig is (a bit) more consistent
> 
> Signed-off-by: Juan Quintela <quintela@redhat.com>
> ---
>  tests/Makefile.include | 12 ++++--------
>  1 file changed, 4 insertions(+), 8 deletions(-)
[...]
> @@ -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

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [Qemu-devel] [PATCH v3 03/10] check: Only test isa-testdev when it is compiled in
  2018-08-22  9:54 ` [Qemu-devel] [PATCH v3 03/10] check: Only test isa-testdev when it is compiled in Juan Quintela
@ 2018-08-22 10:18   ` Thomas Huth
  2018-08-22 14:30     ` Juan Quintela
  2018-08-22 16:34     ` Juan Quintela
  0 siblings, 2 replies; 42+ messages in thread
From: Thomas Huth @ 2018-08-22 10:18 UTC (permalink / raw)
  To: Juan Quintela, qemu-devel; +Cc: lvivier, dgilbert, peterx

On 2018-08-22 11:54, Juan Quintela wrote:
> Once there, untangle endianness-test and boot-serial-test.
> 
> Signed-off-by: Juan Quintela <quintela@redhat.com>
> 
> --
> 
> boot-serial-test don't depend on isa-testdev.  Thanks Thomas.
> 
> Signed-off-by: Juan Quintela <quintela@redhat.com>

Please remove the duplicated Sob.

> @@ -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)

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

When you fixed the nits:

Reviewed-by: Thomas Huth <thuth@redhat.com>

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [Qemu-devel] [PATCH v3 04/10] check: Only test usb-xhci-nec when it is compiled in
  2018-08-22  9:54 ` [Qemu-devel] [PATCH v3 04/10] check: Only test usb-xhci-nec " Juan Quintela
@ 2018-08-22 10:22   ` Thomas Huth
  2018-08-22 14:32     ` Juan Quintela
  0 siblings, 1 reply; 42+ messages in thread
From: Thomas Huth @ 2018-08-22 10:22 UTC (permalink / raw)
  To: Juan Quintela, qemu-devel; +Cc: lvivier, dgilbert, peterx

On 2018-08-22 11:54, Juan Quintela wrote:
> Signed-off-by: Juan Quintela <quintela@redhat.com>
> ---
>  tests/Makefile.include | 9 +++++----
>  1 file changed, 5 insertions(+), 4 deletions(-)
> 
> diff --git a/tests/Makefile.include b/tests/Makefile.include
> index 15296be246..9a918f7655 100644
> --- a/tests/Makefile.include
> +++ b/tests/Makefile.include
> @@ -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

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

Anyway:

Reviewed-by: Thomas Huth <thuth@redhat.com>

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [Qemu-devel] [PATCH v3 05/10] x86_64-softmmu: Configuration is identical to i386-softmmu
  2018-08-22  9:54 ` [Qemu-devel] [PATCH v3 05/10] x86_64-softmmu: Configuration is identical to i386-softmmu Juan Quintela
@ 2018-08-22 10:23   ` Thomas Huth
  0 siblings, 0 replies; 42+ messages in thread
From: Thomas Huth @ 2018-08-22 10:23 UTC (permalink / raw)
  To: Juan Quintela, qemu-devel; +Cc: lvivier, dgilbert, peterx

On 2018-08-22 11:54, Juan Quintela wrote:
> If we ever changed that, just make the things that are different
> explicit.
> 
> Signed-off-by: Juan Quintela <quintela@redhat.com>
> ---
>  default-configs/x86_64-softmmu.mak | 67 +-----------------------------
>  1 file changed, 1 insertion(+), 66 deletions(-)

Reviewed-by: Thomas Huth <thuth@redhat.com>

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [Qemu-devel] [PATCH v3 06/10] check: Only test ivshm when it is compiled in
  2018-08-22  9:54 ` [Qemu-devel] [PATCH v3 06/10] check: Only test ivshm when it is compiled in Juan Quintela
@ 2018-08-22 10:26   ` Thomas Huth
  2018-08-22 14:36     ` Juan Quintela
  0 siblings, 1 reply; 42+ messages in thread
From: Thomas Huth @ 2018-08-22 10:26 UTC (permalink / raw)
  To: Juan Quintela, qemu-devel; +Cc: lvivier, dgilbert, peterx

On 2018-08-22 11:54, Juan Quintela wrote:
> Signed-off-by: Juan Quintela <quintela@redhat.com>
> ---
>  tests/Makefile.include | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/tests/Makefile.include b/tests/Makefile.include
> index 9a918f7655..116e93cdb6 100644
> --- a/tests/Makefile.include
> +++ b/tests/Makefile.include
> @@ -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)

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:

Reviewed-by: Thomas Huth <thuth@redhat.com>

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [Qemu-devel] [PATCH v3 07/10] check: Only test boot-serial when sga is compiled in
  2018-08-22  9:54 ` [Qemu-devel] [PATCH v3 07/10] check: Only test boot-serial when sga " Juan Quintela
@ 2018-08-22 10:30   ` Thomas Huth
  2018-08-22 14:37     ` Juan Quintela
  0 siblings, 1 reply; 42+ messages in thread
From: Thomas Huth @ 2018-08-22 10:30 UTC (permalink / raw)
  To: Juan Quintela, qemu-devel
  Cc: lvivier, dgilbert, peterx, Paolo Bonzini, Gerd Hoffmann,
	Michael S. Tsirkin, Marcel Apfelbaum

On 2018-08-22 11:54, Juan Quintela wrote:
> This is only for x86* architecture.
> 
> Signed-off-by: Juan Quintela <quintela@redhat.com>
> ---
>  tests/Makefile.include | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/Makefile.include b/tests/Makefile.include
> index 116e93cdb6..d524e1bdeb 100644
> --- a/tests/Makefile.include
> +++ b/tests/Makefile.include
> @@ -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)

Reviewed-by: Thomas Huth <thuth@redhat.com>

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

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [Qemu-devel] [PATCH v3 08/10] check: Move VMXNET3 test to common
  2018-08-22  9:54 ` [Qemu-devel] [PATCH v3 08/10] check: Move VMXNET3 test to common Juan Quintela
@ 2018-08-22 10:34   ` Thomas Huth
  2018-08-22 10:41     ` Juan Quintela
  0 siblings, 1 reply; 42+ messages in thread
From: Thomas Huth @ 2018-08-22 10:34 UTC (permalink / raw)
  To: Juan Quintela, qemu-devel; +Cc: lvivier, dgilbert, peterx

On 2018-08-22 11:54, Juan Quintela wrote:
> We protect it with CONFIG_VMXNET3_PCI now, so no need to also put it
> on i386.
> 
> Signed-off-by: Juan Quintela <quintela@redhat.com>
> ---
>  tests/Makefile.include | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/Makefile.include b/tests/Makefile.include
> index d524e1bdeb..91ffde3103 100644
> --- a/tests/Makefile.include
> +++ b/tests/Makefile.include
> @@ -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)

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

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [Qemu-devel] [PATCH v3 09/10] check: Move endianess test to common
  2018-08-22  9:54 ` [Qemu-devel] [PATCH v3 09/10] check: Move endianess " Juan Quintela
@ 2018-08-22 10:36   ` Thomas Huth
  0 siblings, 0 replies; 42+ messages in thread
From: Thomas Huth @ 2018-08-22 10:36 UTC (permalink / raw)
  To: Juan Quintela, qemu-devel; +Cc: lvivier, dgilbert, peterx

On 2018-08-22 11:54, Juan Quintela wrote:
> It is already protected by CONFIG_ISA_TESTDEV in all architectures.
> 
> Signed-off-by: Juan Quintela <quintela@redhat.com>
> ---
>  tests/Makefile.include | 14 +-------------
>  1 file changed, 1 insertion(+), 13 deletions(-)
> 
> diff --git a/tests/Makefile.include b/tests/Makefile.include
> index 91ffde3103..f646cd0524 100644
> --- a/tests/Makefile.include
> +++ b/tests/Makefile.include
> @@ -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)

Reviewed-by: Thomas Huth <thuth@redhat.com>

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [Qemu-devel] [PATCH v3 10/10] check: Move wdt_ib700 test to common
  2018-08-22  9:54 ` [Qemu-devel] [PATCH v3 10/10] check: Move wdt_ib700 " Juan Quintela
@ 2018-08-22 10:37   ` Thomas Huth
  0 siblings, 0 replies; 42+ messages in thread
From: Thomas Huth @ 2018-08-22 10:37 UTC (permalink / raw)
  To: Juan Quintela, qemu-devel; +Cc: lvivier, dgilbert, peterx

On 2018-08-22 11:54, Juan Quintela wrote:
> It is protected by CONFIG_WDT_IB700.
> 
> Signed-off-by: Juan Quintela <quintela@redhat.com>
> ---
>  tests/Makefile.include | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/Makefile.include b/tests/Makefile.include
> index f646cd0524..adfce0be95 100644
> --- a/tests/Makefile.include
> +++ b/tests/Makefile.include
> @@ -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)

Reviewed-by: Thomas Huth <thuth@redhat.com>

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [Qemu-devel] [PATCH v3 08/10] check: Move VMXNET3 test to common
  2018-08-22 10:34   ` Thomas Huth
@ 2018-08-22 10:41     ` Juan Quintela
  2018-08-22 10:43       ` Thomas Huth
  0 siblings, 1 reply; 42+ messages in thread
From: Juan Quintela @ 2018-08-22 10:41 UTC (permalink / raw)
  To: Thomas Huth; +Cc: qemu-devel, lvivier, dgilbert, peterx

Thomas Huth <thuth@redhat.com> wrote:
> On 2018-08-22 11:54, Juan Quintela wrote:
>> We protect it with CONFIG_VMXNET3_PCI now, so no need to also put it
>> on i386.
>> 
>> Signed-off-by: Juan Quintela <quintela@redhat.com>
>> ---
>>  tests/Makefile.include | 4 ++--
>>  1 file changed, 2 insertions(+), 2 deletions(-)
>> 
>> diff --git a/tests/Makefile.include b/tests/Makefile.include
>> index d524e1bdeb..91ffde3103 100644
>> --- a/tests/Makefile.include
>> +++ b/tests/Makefile.include
>> @@ -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)
>
> 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.

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [Qemu-devel] [PATCH v3 08/10] check: Move VMXNET3 test to common
  2018-08-22 10:41     ` Juan Quintela
@ 2018-08-22 10:43       ` Thomas Huth
  2018-08-22 14:39         ` Juan Quintela
  0 siblings, 1 reply; 42+ messages in thread
From: Thomas Huth @ 2018-08-22 10:43 UTC (permalink / raw)
  To: quintela; +Cc: qemu-devel, lvivier, dgilbert, peterx

On 2018-08-22 12:41, Juan Quintela wrote:
> Thomas Huth <thuth@redhat.com> wrote:
>> On 2018-08-22 11:54, Juan Quintela wrote:
>>> We protect it with CONFIG_VMXNET3_PCI now, so no need to also put it
>>> on i386.
>>>
>>> Signed-off-by: Juan Quintela <quintela@redhat.com>
>>> ---
>>>  tests/Makefile.include | 4 ++--
>>>  1 file changed, 2 insertions(+), 2 deletions(-)
>>>
>>> diff --git a/tests/Makefile.include b/tests/Makefile.include
>>> index d524e1bdeb..91ffde3103 100644
>>> --- a/tests/Makefile.include
>>> +++ b/tests/Makefile.include
>>> @@ -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)
>>
>> 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?

Ok, fair.

Reviewed-by: Thomas Huth <thuth@redhat.com>

> 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

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [Qemu-devel] [PATCH v3 01/10] configure: We don't want to clean configuration files
  2018-08-22 10:08   ` Thomas Huth
@ 2018-08-22 14:24     ` Juan Quintela
  0 siblings, 0 replies; 42+ messages in thread
From: Juan Quintela @ 2018-08-22 14:24 UTC (permalink / raw)
  To: Thomas Huth; +Cc: qemu-devel, lvivier, dgilbert, peterx

Thomas Huth <thuth@redhat.com> wrote:
> On 2018-08-22 11:54, Juan Quintela wrote:
>> 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!
>
>> Signed-off-by: Juan Quintela <quintela@redhat.com>
>> 
>> --
>> 
>> Remove it instead on distclean.
>> 
>> Signed-off-by: Juan Quintela <quintela@redhat.com>
>
> Please remove the duplicated Sob. Then you can add:

Done, thanks.

> Reviewed-by: Thomas Huth <thuth@redhat.com>

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [Qemu-devel] [PATCH v3 02/10] check: Use land/lor when possible
  2018-08-22 10:13   ` Thomas Huth
@ 2018-08-22 14:28     ` Juan Quintela
  0 siblings, 0 replies; 42+ messages in thread
From: Juan Quintela @ 2018-08-22 14:28 UTC (permalink / raw)
  To: Thomas Huth; +Cc: qemu-devel, lvivier, dgilbert, peterx

Thomas Huth <thuth@redhat.com> wrote:
> On 2018-08-22 11:54, Juan Quintela wrote:
>> So everythig is (a bit) more consistent
>> 
>> Signed-off-by: Juan Quintela <quintela@redhat.com>
>> ---
>>  tests/Makefile.include | 12 ++++--------
>>  1 file changed, 4 insertions(+), 8 deletions(-)
> [...]
>> @@ -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.

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.

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [Qemu-devel] [PATCH v3 03/10] check: Only test isa-testdev when it is compiled in
  2018-08-22 10:18   ` Thomas Huth
@ 2018-08-22 14:30     ` Juan Quintela
  2018-08-22 16:34     ` Juan Quintela
  1 sibling, 0 replies; 42+ messages in thread
From: Juan Quintela @ 2018-08-22 14:30 UTC (permalink / raw)
  To: Thomas Huth; +Cc: qemu-devel, lvivier, dgilbert, peterx

Thomas Huth <thuth@redhat.com> wrote:
> On 2018-08-22 11:54, Juan Quintela wrote:
>> Once there, untangle endianness-test and boot-serial-test.
>> 
>> Signed-off-by: Juan Quintela <quintela@redhat.com>
>> 
>> --
>> 
>> boot-serial-test don't depend on isa-testdev.  Thanks Thomas.
>> 
>> Signed-off-by: Juan Quintela <quintela@redhat.com>
>
> Please remove the duplicated Sob.
>
>> @@ -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)
>
> Maybe keep moxie after mips? So that they stay in alphabetical order?
>
> When you fixed the nits:
>
> Reviewed-by: Thomas Huth <thuth@redhat.com>

Done, thanks.

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [Qemu-devel] [PATCH v3 04/10] check: Only test usb-xhci-nec when it is compiled in
  2018-08-22 10:22   ` Thomas Huth
@ 2018-08-22 14:32     ` Juan Quintela
  0 siblings, 0 replies; 42+ messages in thread
From: Juan Quintela @ 2018-08-22 14:32 UTC (permalink / raw)
  To: Thomas Huth; +Cc: qemu-devel, lvivier, dgilbert, peterx

Thomas Huth <thuth@redhat.com> wrote:
> On 2018-08-22 11:54, Juan Quintela wrote:
>> Signed-off-by: Juan Quintela <quintela@redhat.com>
>> ---
>>  tests/Makefile.include | 9 +++++----
>>  1 file changed, 5 insertions(+), 4 deletions(-)
>> 
>> diff --git a/tests/Makefile.include b/tests/Makefile.include
>> index 15296be246..9a918f7655 100644
>> --- a/tests/Makefile.include
>> +++ b/tests/Makefile.include
>> @@ -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
>
> Add hcd-xhci-nec.c here, too?
>
> Anyway:
>
> Reviewed-by: Thomas Huth <thuth@redhat.com>

Thanks, done.

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [Qemu-devel] [PATCH v3 06/10] check: Only test ivshm when it is compiled in
  2018-08-22 10:26   ` Thomas Huth
@ 2018-08-22 14:36     ` Juan Quintela
  2018-08-22 14:43       ` Thomas Huth
  0 siblings, 1 reply; 42+ messages in thread
From: Juan Quintela @ 2018-08-22 14:36 UTC (permalink / raw)
  To: Thomas Huth; +Cc: qemu-devel, lvivier, dgilbert, peterx

Thomas Huth <thuth@redhat.com> wrote:
> On 2018-08-22 11:54, Juan Quintela wrote:
>> Signed-off-by: Juan Quintela <quintela@redhat.com>
>> ---
>>  tests/Makefile.include | 6 +++---
>>  1 file changed, 3 insertions(+), 3 deletions(-)
>> 
>> diff --git a/tests/Makefile.include b/tests/Makefile.include
>> index 9a918f7655..116e93cdb6 100644
>> --- a/tests/Makefile.include
>> +++ b/tests/Makefile.include
>> @@ -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)
>
> 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:
>
> Reviewed-by: Thomas Huth <thuth@redhat.com>

Done, thanks.

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

Later, Juan.

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [Qemu-devel] [PATCH v3 07/10] check: Only test boot-serial when sga is compiled in
  2018-08-22 10:30   ` Thomas Huth
@ 2018-08-22 14:37     ` Juan Quintela
  2018-08-23  7:43       ` Gerd Hoffmann
  0 siblings, 1 reply; 42+ messages in thread
From: Juan Quintela @ 2018-08-22 14:37 UTC (permalink / raw)
  To: Thomas Huth
  Cc: qemu-devel, lvivier, dgilbert, peterx, Paolo Bonzini,
	Gerd Hoffmann, Michael S. Tsirkin, Marcel Apfelbaum

Thomas Huth <thuth@redhat.com> wrote:
> On 2018-08-22 11:54, Juan Quintela wrote:
>> This is only for x86* architecture.
>> 
>> Signed-off-by: Juan Quintela <quintela@redhat.com>
>> ---
>>  tests/Makefile.include | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>> 
>> diff --git a/tests/Makefile.include b/tests/Makefile.include
>> index 116e93cdb6..d524e1bdeb 100644
>> --- a/tests/Makefile.include
>> +++ b/tests/Makefile.include
>> @@ -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)
>
> Reviewed-by: Thomas Huth <thuth@redhat.com>
>
> 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.

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [Qemu-devel] [PATCH v3 08/10] check: Move VMXNET3 test to common
  2018-08-22 10:43       ` Thomas Huth
@ 2018-08-22 14:39         ` Juan Quintela
  0 siblings, 0 replies; 42+ messages in thread
From: Juan Quintela @ 2018-08-22 14:39 UTC (permalink / raw)
  To: Thomas Huth; +Cc: qemu-devel, lvivier, dgilbert, peterx

Thomas Huth <thuth@redhat.com> wrote:
> On 2018-08-22 12:41, Juan Quintela wrote:
>> Thomas Huth <thuth@redhat.com> wrote:
>>> On 2018-08-22 11:54, Juan Quintela wrote:
>>>> We protect it with CONFIG_VMXNET3_PCI now, so no need to also put it
>>>> on i386.
>>>>
>>>> Signed-off-by: Juan Quintela <quintela@redhat.com>
>>>> ---
>>>>  tests/Makefile.include | 4 ++--
>>>>  1 file changed, 2 insertions(+), 2 deletions(-)
>>>>
>>>> diff --git a/tests/Makefile.include b/tests/Makefile.include
>>>> index d524e1bdeb..91ffde3103 100644
>>>> --- a/tests/Makefile.include
>>>> +++ b/tests/Makefile.include
>>>> @@ -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)
>>>
>>> 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?
>
> Ok, fair.
>
> Reviewed-by: Thomas Huth <thuth@redhat.com>
>
>> 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.

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [Qemu-devel] [PATCH v3 06/10] check: Only test ivshm when it is compiled in
  2018-08-22 14:36     ` Juan Quintela
@ 2018-08-22 14:43       ` Thomas Huth
  0 siblings, 0 replies; 42+ messages in thread
From: Thomas Huth @ 2018-08-22 14:43 UTC (permalink / raw)
  To: quintela; +Cc: qemu-devel, lvivier, dgilbert, peterx

On 2018-08-22 16:36, Juan Quintela wrote:
[...]
> 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

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [Qemu-devel] [PATCH v3 03/10] check: Only test isa-testdev when it is compiled in
  2018-08-22 10:18   ` Thomas Huth
  2018-08-22 14:30     ` Juan Quintela
@ 2018-08-22 16:34     ` Juan Quintela
  1 sibling, 0 replies; 42+ messages in thread
From: Juan Quintela @ 2018-08-22 16:34 UTC (permalink / raw)
  To: Thomas Huth; +Cc: qemu-devel, lvivier, dgilbert, peterx

Thomas Huth <thuth@redhat.com> wrote:
> On 2018-08-22 11:54, Juan Quintela wrote:
>> Once there, untangle endianness-test and boot-serial-test.
>> 
>> Signed-off-by: Juan Quintela <quintela@redhat.com>
>> 
>> --
>> 
>> boot-serial-test don't depend on isa-testdev.  Thanks Thomas.
>> 
>> Signed-off-by: Juan Quintela <quintela@redhat.com>
>
> 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.

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [Qemu-devel] [PATCH v3 07/10] check: Only test boot-serial when sga is compiled in
  2018-08-22 14:37     ` Juan Quintela
@ 2018-08-23  7:43       ` Gerd Hoffmann
  2018-08-23  8:05         ` Thomas Huth
  0 siblings, 1 reply; 42+ messages in thread
From: Gerd Hoffmann @ 2018-08-23  7:43 UTC (permalink / raw)
  To: Juan Quintela
  Cc: Thomas Huth, qemu-devel, lvivier, dgilbert, peterx,
	Paolo Bonzini, Michael S. Tsirkin, Marcel Apfelbaum

> > Reviewed-by: Thomas Huth <thuth@redhat.com>
> >
> > 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

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [Qemu-devel] [PATCH v3 07/10] check: Only test boot-serial when sga is compiled in
  2018-08-23  7:43       ` Gerd Hoffmann
@ 2018-08-23  8:05         ` Thomas Huth
  2018-08-23  9:48           ` Gerd Hoffmann
  0 siblings, 1 reply; 42+ messages in thread
From: Thomas Huth @ 2018-08-23  8:05 UTC (permalink / raw)
  To: Gerd Hoffmann, Juan Quintela
  Cc: qemu-devel, lvivier, dgilbert, peterx, Paolo Bonzini,
	Michael S. Tsirkin, Marcel Apfelbaum

On 2018-08-23 09:43, Gerd Hoffmann wrote:
>>> Reviewed-by: Thomas Huth <thuth@redhat.com>
>>>
>>> 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.

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

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [Qemu-devel] [PATCH v3 07/10] check: Only test boot-serial when sga is compiled in
  2018-08-23  8:05         ` Thomas Huth
@ 2018-08-23  9:48           ` Gerd Hoffmann
  2018-08-23  9:53             ` Daniel P. Berrangé
  0 siblings, 1 reply; 42+ messages in thread
From: Gerd Hoffmann @ 2018-08-23  9:48 UTC (permalink / raw)
  To: Thomas Huth
  Cc: Juan Quintela, qemu-devel, lvivier, dgilbert, peterx,
	Paolo Bonzini, Michael S. Tsirkin, Marcel Apfelbaum

> > 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.:
> 
>     } 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

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [Qemu-devel] [PATCH v3 07/10] check: Only test boot-serial when sga is compiled in
  2018-08-23  9:48           ` Gerd Hoffmann
@ 2018-08-23  9:53             ` Daniel P. Berrangé
  2018-08-23 10:27               ` Gerd Hoffmann
                                 ` (2 more replies)
  0 siblings, 3 replies; 42+ messages in thread
From: Daniel P. Berrangé @ 2018-08-23  9:53 UTC (permalink / raw)
  To: Gerd Hoffmann
  Cc: Thomas Huth, lvivier, Juan Quintela, Michael S. Tsirkin,
	qemu-devel, peterx, dgilbert, Paolo Bonzini

On Thu, Aug 23, 2018 at 11:48:50AM +0200, Gerd Hoffmann wrote:
> > > 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.:
> > 
> >     } 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.

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
-- 
|: 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 :|

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [Qemu-devel] [PATCH v3 07/10] check: Only test boot-serial when sga is compiled in
  2018-08-23  9:53             ` Daniel P. Berrangé
@ 2018-08-23 10:27               ` Gerd Hoffmann
  2018-08-23 11:06               ` Juan Quintela
  2018-08-27 10:53               ` Gerd Hoffmann
  2 siblings, 0 replies; 42+ messages in thread
From: Gerd Hoffmann @ 2018-08-23 10:27 UTC (permalink / raw)
  To: Daniel P. Berrangé
  Cc: Thomas Huth, lvivier, Juan Quintela, Michael S. Tsirkin,
	qemu-devel, peterx, dgilbert, Paolo Bonzini

  Hi,

> 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

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [Qemu-devel] [PATCH v3 07/10] check: Only test boot-serial when sga is compiled in
  2018-08-23  9:53             ` Daniel P. Berrangé
  2018-08-23 10:27               ` Gerd Hoffmann
@ 2018-08-23 11:06               ` Juan Quintela
  2018-08-27 10:53               ` Gerd Hoffmann
  2 siblings, 0 replies; 42+ messages in thread
From: Juan Quintela @ 2018-08-23 11:06 UTC (permalink / raw)
  To: Daniel P. Berrangé
  Cc: Gerd Hoffmann, Thomas Huth, lvivier, Michael S. Tsirkin,
	qemu-devel, peterx, dgilbert, Paolo Bonzini

Daniel P. Berrangé <berrange@redhat.com> wrote:
> On Thu, Aug 23, 2018 at 11:48:50AM +0200, Gerd Hoffmann wrote:
>> > > 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.:
>> > 
>> >     } 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.
>
> 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.

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.

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [Qemu-devel] [PATCH v3 07/10] check: Only test boot-serial when sga is compiled in
  2018-08-23  9:53             ` Daniel P. Berrangé
  2018-08-23 10:27               ` Gerd Hoffmann
  2018-08-23 11:06               ` Juan Quintela
@ 2018-08-27 10:53               ` Gerd Hoffmann
  2018-08-28  8:19                 ` Daniel P. Berrangé
  2 siblings, 1 reply; 42+ messages in thread
From: Gerd Hoffmann @ 2018-08-27 10:53 UTC (permalink / raw)
  To: Daniel P. Berrangé
  Cc: Thomas Huth, lvivier, Juan Quintela, Michael S. Tsirkin,
	qemu-devel, peterx, dgilbert, Paolo Bonzini

  Hi,

> 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

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [Qemu-devel] [PATCH v3 07/10] check: Only test boot-serial when sga is compiled in
  2018-08-27 10:53               ` Gerd Hoffmann
@ 2018-08-28  8:19                 ` Daniel P. Berrangé
  2018-08-28 10:20                   ` Gerd Hoffmann
  0 siblings, 1 reply; 42+ messages in thread
From: Daniel P. Berrangé @ 2018-08-28  8:19 UTC (permalink / raw)
  To: Gerd Hoffmann
  Cc: Thomas Huth, lvivier, Juan Quintela, Michael S. Tsirkin,
	qemu-devel, peterx, dgilbert, Paolo Bonzini

On Mon, Aug 27, 2018 at 12:53:21PM +0200, Gerd Hoffmann wrote:
>   Hi,
> 
> > 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
-- 
|: 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 :|

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [Qemu-devel] [PATCH v3 07/10] check: Only test boot-serial when sga is compiled in
  2018-08-28  8:19                 ` Daniel P. Berrangé
@ 2018-08-28 10:20                   ` Gerd Hoffmann
  2018-08-28 10:31                     ` Daniel P. Berrangé
  0 siblings, 1 reply; 42+ messages in thread
From: Gerd Hoffmann @ 2018-08-28 10:20 UTC (permalink / raw)
  To: Daniel P. Berrangé
  Cc: Thomas Huth, lvivier, Juan Quintela, Michael S. Tsirkin,
	qemu-devel, peterx, dgilbert, Paolo Bonzini

On Tue, Aug 28, 2018 at 09:19:20AM +0100, Daniel P. Berrangé wrote:
> On Mon, Aug 27, 2018 at 12:53:21PM +0200, Gerd Hoffmann wrote:
> >   Hi,
> > 
> > > 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 ?

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

^ permalink raw reply	[flat|nested] 42+ messages in thread

* Re: [Qemu-devel] [PATCH v3 07/10] check: Only test boot-serial when sga is compiled in
  2018-08-28 10:20                   ` Gerd Hoffmann
@ 2018-08-28 10:31                     ` Daniel P. Berrangé
  0 siblings, 0 replies; 42+ messages in thread
From: Daniel P. Berrangé @ 2018-08-28 10:31 UTC (permalink / raw)
  To: Gerd Hoffmann
  Cc: Thomas Huth, lvivier, Juan Quintela, Michael S. Tsirkin,
	qemu-devel, peterx, dgilbert, Paolo Bonzini

On Tue, Aug 28, 2018 at 12:20:02PM +0200, Gerd Hoffmann wrote:
> On Tue, Aug 28, 2018 at 09:19:20AM +0100, Daniel P. Berrangé wrote:
> > On Mon, Aug 27, 2018 at 12:53:21PM +0200, Gerd Hoffmann wrote:
> > >   Hi,
> > > 
> > > > 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 ?
> 
> 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
-- 
|: 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 :|

^ permalink raw reply	[flat|nested] 42+ messages in thread

end of thread, other threads:[~2018-08-28 10:43 UTC | newest]

Thread overview: 42+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-22  9:54 [Qemu-devel] [PATCH v3 00/10] Don't check disabled drivers Juan Quintela
2018-08-22  9:54 ` [Qemu-devel] [PATCH v3 01/10] configure: We don't want to clean configuration files Juan Quintela
2018-08-22 10:08   ` Thomas Huth
2018-08-22 14:24     ` Juan Quintela
2018-08-22  9:54 ` [Qemu-devel] [PATCH v3 02/10] check: Use land/lor when possible Juan Quintela
2018-08-22 10:13   ` Thomas Huth
2018-08-22 14:28     ` Juan Quintela
2018-08-22  9:54 ` [Qemu-devel] [PATCH v3 03/10] check: Only test isa-testdev when it is compiled in Juan Quintela
2018-08-22 10:18   ` Thomas Huth
2018-08-22 14:30     ` Juan Quintela
2018-08-22 16:34     ` Juan Quintela
2018-08-22  9:54 ` [Qemu-devel] [PATCH v3 04/10] check: Only test usb-xhci-nec " Juan Quintela
2018-08-22 10:22   ` Thomas Huth
2018-08-22 14:32     ` Juan Quintela
2018-08-22  9:54 ` [Qemu-devel] [PATCH v3 05/10] x86_64-softmmu: Configuration is identical to i386-softmmu Juan Quintela
2018-08-22 10:23   ` Thomas Huth
2018-08-22  9:54 ` [Qemu-devel] [PATCH v3 06/10] check: Only test ivshm when it is compiled in Juan Quintela
2018-08-22 10:26   ` Thomas Huth
2018-08-22 14:36     ` Juan Quintela
2018-08-22 14:43       ` Thomas Huth
2018-08-22  9:54 ` [Qemu-devel] [PATCH v3 07/10] check: Only test boot-serial when sga " Juan Quintela
2018-08-22 10:30   ` Thomas Huth
2018-08-22 14:37     ` Juan Quintela
2018-08-23  7:43       ` Gerd Hoffmann
2018-08-23  8:05         ` Thomas Huth
2018-08-23  9:48           ` Gerd Hoffmann
2018-08-23  9:53             ` Daniel P. Berrangé
2018-08-23 10:27               ` Gerd Hoffmann
2018-08-23 11:06               ` Juan Quintela
2018-08-27 10:53               ` Gerd Hoffmann
2018-08-28  8:19                 ` Daniel P. Berrangé
2018-08-28 10:20                   ` Gerd Hoffmann
2018-08-28 10:31                     ` Daniel P. Berrangé
2018-08-22  9:54 ` [Qemu-devel] [PATCH v3 08/10] check: Move VMXNET3 test to common Juan Quintela
2018-08-22 10:34   ` Thomas Huth
2018-08-22 10:41     ` Juan Quintela
2018-08-22 10:43       ` Thomas Huth
2018-08-22 14:39         ` Juan Quintela
2018-08-22  9:54 ` [Qemu-devel] [PATCH v3 09/10] check: Move endianess " Juan Quintela
2018-08-22 10:36   ` Thomas Huth
2018-08-22  9:54 ` [Qemu-devel] [PATCH v3 10/10] check: Move wdt_ib700 " Juan Quintela
2018-08-22 10:37   ` Thomas Huth

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.