More patches to disable stuff
v2 cover More patches to disable stuff
Hi
First the things I didn'~t touch:
- CONFIG_FOO in source files (scsi mainly) Paolo said that there are people working on that
- usb: it is a mess how things are entangled there
- acpi options (like hotplug etc); another entanglement
So, what is there?
- the bits that didn't got reviewed on previous iteration
- virtio-pci: As Thomas did something for s390, I did the bits for virtio-pci.
I am able now to disable all virtio-pci devices, and run make tests. This is my current virtio bits:
CONFIG_VIRTIO=yCONFIG_VIRTIO_CRYPTO=yCONFIG_VIRTIO_GPU=yCONFIG_SCSI=yCONFIG_VIRTIO_SCSI=y
VIRTIO_SCSI is used in cdrom-test.c. The only way to be able to disable it is to test for its existence insed that test. Notice that this are the same bits that make it impssible to disable megasas, lsi and esp.
Please, comment.
Juan.
[v1]
Notice that this is an RFC because they don't work. As said on my previous submmision, we need <foo>-softmmu/config-devices.h to make this work. This series just allow us to disable the devices, but not to enable it back O:-)
Notice:
- scsi stuff: we are testing they in cdrom-test.c, so we need to be able to config them out. Notice also that #ifdefs only go in tests/<...>
- virtio stuff: see how we need to also change hw/virtio/virtio-pci.c to disable it. The problem appears in the device-instropect-test.c. As they are defined in the binary, but not complied in. We can change for a registration appreach, but that is more work that what I intended for this series.
What do you think?
Later, Juan.
Based-on:
Juan Quintela (22):
configure: We don't want to clean configuration files
config: CONFIG_SERIAL* is already in pci.mak
check: Use land/lor when possible
check: Only test isa-testdev when it is compiled in
check: Only test usb-xhci-nec when it is compiled in
i386-softmmu: Configuration is identical to x86_64-softmmu
check: Only test ivshm when it is compiled in
check: Only test tpm devices when they are compiled in
virtio: Remove unneeded includes
virtio: split vsock bits from virtio-pci
virtio: split host bits from virtio-pci
virtio: split input bits from virtio-pci
virtio: split rng bits from virtio-pci
virtio: split balloon bits from virtio-pci
virtio: split 9p bits from virtio-pci
virtio: split vhost-user-blk bits from virtio-pci
virtio: split vhost-user-scsi bits from virtio-pci
virtio: split vhost-scsi bits from virtio-pci
virtio: split virtio-scsi bits from virtio-pci
virtio: split virtio-blk bits rom virtio-pci
virtio: split virtio-net bits rom virtio-pci
virtio: split virtio-serial bits rom virtio-pci
Makefile | 3 +- default-configs/alpha-softmmu.mak | 2 - default-configs/arm-softmmu.mak | 2 - default-configs/hppa-softmmu.mak | 3 - default-configs/i386-softmmu.mak | 67 +- default-configs/mips-softmmu-common.mak | 2 - default-configs/ppc-softmmu.mak | 1 - default-configs/ppcemb-softmmu.mak | 2 - default-configs/sh4-softmmu.mak | 2 - default-configs/sh4eb-softmmu.mak | 2 - default-configs/sparc64-softmmu.mak | 2 - default-configs/virtio.mak | 3 + default-configs/x86_64-softmmu.mak | 2 - hw/virtio/Makefile.objs | 14 +- hw/virtio/vhost-scsi-pci.c | 94 +++ hw/virtio/vhost-user-blk-pci.c | 88 +++ hw/virtio/vhost-user-scsi-pci.c | 89 +++ hw/virtio/vhost-vsock-pci.c | 71 +++ hw/virtio/virtio-9p-pci.c | 74 +++ hw/virtio/virtio-balloon-pci.c | 82 +++ hw/virtio/virtio-blk-pci.c | 82 +++ hw/virtio/virtio-input-host-pci.c | 42 ++ hw/virtio/virtio-input-pci.c | 136 ++++ hw/virtio/virtio-net-pci.c | 81 +++ hw/virtio/virtio-pci.c | 792 +----------------------- hw/virtio/virtio-rng-pci.c | 77 +++ hw/virtio/virtio-scsi-pci.c | 93 +++ hw/virtio/virtio-serial-pci.c | 97 +++ tests/Makefile.include | 89 ++- 29 files changed, 1169 insertions(+), 925 deletions(-) create mode 100644 hw/virtio/vhost-scsi-pci.c create mode 100644 hw/virtio/vhost-user-blk-pci.c create mode 100644 hw/virtio/vhost-user-scsi-pci.c create mode 100644 hw/virtio/vhost-vsock-pci.c create mode 100644 hw/virtio/virtio-9p-pci.c create mode 100644 hw/virtio/virtio-balloon-pci.c create mode 100644 hw/virtio/virtio-blk-pci.c create mode 100644 hw/virtio/virtio-input-host-pci.c create mode 100644 hw/virtio/virtio-input-pci.c create mode 100644 hw/virtio/virtio-net-pci.c create mode 100644 hw/virtio/virtio-rng-pci.c create mode 100644 hw/virtio/virtio-scsi-pci.c create mode 100644 hw/virtio/virtio-serial-pci.c
Signature · 1 line
2.17.1
PATCH v2 1/22 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
@@ -751,7 +751,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)
@@ -763,6 +763,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
PATCH v2 2/22 config: CONFIG_SERIAL* is already in pci.mak
In reply to Juan Quintela--- default-configs/alpha-softmmu.mak | 2 -- default-configs/arm-softmmu.mak | 2 -- default-configs/hppa-softmmu.mak | 3 --- default-configs/i386-softmmu.mak | 2 -- default-configs/mips-softmmu-common.mak | 2 -- default-configs/ppc-softmmu.mak | 1 - default-configs/ppcemb-softmmu.mak | 2 -- default-configs/sh4-softmmu.mak | 2 -- default-configs/sh4eb-softmmu.mak | 2 -- default-configs/sparc64-softmmu.mak | 2 -- default-configs/x86_64-softmmu.mak | 2 -- 11 files changed, 22 deletions(-)
default-configs/alpha-softmmu.mak +0 -2
@@ -2,8 +2,6 @@ include pci.mak include usb.mak -CONFIG_SERIAL=y -CONFIG_SERIAL_ISA=y CONFIG_I82374=y CONFIG_I8254=y CONFIG_I8257=y
default-configs/arm-softmmu.mak +0 -2
@@ -5,8 +5,6 @@ include usb.mak CONFIG_VGA=y CONFIG_NAND=y CONFIG_ECC=y -CONFIG_SERIAL=y -CONFIG_SERIAL_ISA=y CONFIG_PTIMER=y CONFIG_SD=y CONFIG_MAX7310=y
default-configs/hppa-softmmu.mak +0 -3
@@ -1,8 +1,5 @@ include pci.mak include usb.mak -CONFIG_SERIAL=y -CONFIG_SERIAL_ISA=y -CONFIG_ISA_BUS=y CONFIG_I8259=y CONFIG_E1000_PCI=y CONFIG_IDE_ISA=y
default-configs/i386-softmmu.mak +0 -2
@@ -15,8 +15,6 @@ 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
default-configs/mips-softmmu-common.mak +0 -2
@@ -9,8 +9,6 @@ CONFIG_VGA_ISA=y CONFIG_VGA_ISA_MM=y CONFIG_VGA_CIRRUS=y CONFIG_VMWARE_VGA=y -CONFIG_SERIAL=y -CONFIG_SERIAL_ISA=y CONFIG_PARALLEL=y CONFIG_I8254=y CONFIG_PCSPK=y
default-configs/ppc-softmmu.mak +0 -1
@@ -53,7 +53,6 @@ CONFIG_IDE_MACIO=y # For PReP CONFIG_PREP=y CONFIG_PREP_PCI=y -CONFIG_SERIAL_ISA=y CONFIG_MC146818RTC=y CONFIG_ISA_TESTDEV=y CONFIG_RS6000_MC=y
default-configs/ppcemb-softmmu.mak +0 -2
@@ -5,8 +5,6 @@ include sound.mak include usb.mak CONFIG_PPC4XX=y CONFIG_M48T59=y -CONFIG_SERIAL=y -CONFIG_SERIAL_ISA=y CONFIG_I8257=y CONFIG_OPENPIC=y CONFIG_PFLASH_CFI01=y
default-configs/sh4-softmmu.mak +0 -2
@@ -2,8 +2,6 @@ include pci.mak include usb.mak -CONFIG_SERIAL=y -CONFIG_SERIAL_ISA=y CONFIG_PTIMER=y CONFIG_PFLASH_CFI02=y CONFIG_SH4=y
default-configs/sh4eb-softmmu.mak +0 -2
@@ -2,8 +2,6 @@ include pci.mak include usb.mak -CONFIG_SERIAL=y -CONFIG_SERIAL_ISA=y CONFIG_PTIMER=y CONFIG_PFLASH_CFI02=y CONFIG_SH4=y
default-configs/sparc64-softmmu.mak +0 -2
@@ -4,8 +4,6 @@ include pci.mak include usb.mak CONFIG_M48T59=y CONFIG_PTIMER=y -CONFIG_SERIAL=y -CONFIG_SERIAL_ISA=y CONFIG_PARALLEL=y CONFIG_PCKBD=y CONFIG_FDC=y
default-configs/x86_64-softmmu.mak +0 -2
@@ -15,8 +15,6 @@ 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
Signature · 1 line
2.17.1
Re: [Qemu-devel] [PATCH v2 02/22] config: CONFIG_SERIAL* is already in pci.mak
Quoted 46 lines · Juan Quintela
Signed-off-by Juan Quintela <[email protected]>--- default-configs/alpha-softmmu.mak | 2 -- default-configs/arm-softmmu.mak | 2 -- default-configs/hppa-softmmu.mak | 3 --- default-configs/i386-softmmu.mak | 2 -- default-configs/mips-softmmu-common.mak | 2 -- default-configs/ppc-softmmu.mak | 1 - default-configs/ppcemb-softmmu.mak | 2 -- default-configs/sh4-softmmu.mak | 2 -- default-configs/sh4eb-softmmu.mak | 2 -- default-configs/sparc64-softmmu.mak | 2 -- default-configs/x86_64-softmmu.mak | 2 -- 11 files changed, 22 deletions(-)default-configs/alpha-softmmu.mak +0
-2@@ -2,8 +2,6 @@ include pci.mak include usb.mak -CONFIG_SERIAL=y -CONFIG_SERIAL_ISA=y CONFIG_I82374=y CONFIG_I8254=y CONFIG_I8257=ydefault-configs/arm-softmmu.mak +0
-2@@ -5,8 +5,6 @@ include usb.mak CONFIG_VGA=y CONFIG_NAND=y CONFIG_ECC=y -CONFIG_SERIAL=y -CONFIG_SERIAL_ISA=y CONFIG_PTIMER=y CONFIG_SD=y CONFIG_MAX7310=ydefault-configs/hppa-softmmu.mak +0
-0
default-configs/hppa-softmmu.mak line 5
Quoted 5 lines
default-configs/hppa-softmmu.mak +0
-3@@ -1,8 +1,5 @@ include pci.mak include usb.mak -CONFIG_SERIAL=y -CONFIG_SERIAL_ISA=y -CONFIG_ISA_BUS=y
You should maybe mention CONFIG_ISA_BUS in the patch description, too.
Apart from that nit:
Re: [Qemu-devel] [PATCH v2 02/22] config: CONFIG_SERIAL* is already in pci.mak
In reply to Juan QuintelaQuoted 14 lines · Juan Quintela
Signed-off-by Juan Quintela <[email protected]>--- default-configs/alpha-softmmu.mak | 2 -- default-configs/arm-softmmu.mak | 2 -- default-configs/hppa-softmmu.mak | 3 --- default-configs/i386-softmmu.mak | 2 -- default-configs/mips-softmmu-common.mak | 2 -- default-configs/ppc-softmmu.mak | 1 - default-configs/ppcemb-softmmu.mak | 2 -- default-configs/sh4-softmmu.mak | 2 -- default-configs/sh4eb-softmmu.mak | 2 -- default-configs/sparc64-softmmu.mak | 2 -- default-configs/x86_64-softmmu.mak | 2 -- 11 files changed, 22 deletions(-)
I don't think CONFIG_SERIAL_ISA should be in pci.mak though, and CONFIG_SERIAL is a dependency of both CONFIG_SERIAL and CONFIG_SERIAL_PCI. Perhaps introduce a superio.mak with all the legacy ISA devices?
Paolo
Re: [Qemu-devel] [PATCH v2 02/22] config: CONFIG_SERIAL* is already in pci.mak
Quoted 16 lines · Paolo Bonzini
Quoted 14 lines · Juan Quintela
Signed-off-by Juan Quintela <[email protected]>--- default-configs/alpha-softmmu.mak | 2 -- default-configs/arm-softmmu.mak | 2 -- default-configs/hppa-softmmu.mak | 3 --- default-configs/i386-softmmu.mak | 2 -- default-configs/mips-softmmu-common.mak | 2 -- default-configs/ppc-softmmu.mak | 1 - default-configs/ppcemb-softmmu.mak | 2 -- default-configs/sh4-softmmu.mak | 2 -- default-configs/sh4eb-softmmu.mak | 2 -- default-configs/sparc64-softmmu.mak | 2 -- default-configs/x86_64-softmmu.mak | 2 -- 11 files changed, 22 deletions(-)
Quoted 4 lines
I don't think
CONFIG_SERIAL_ISAshould be in pci.mak though, andCONFIG_SERIALis a dependency of bothCONFIG_SERIALandCONFIG_SERIAL_PCI. Perhaps introduce a superio.mak with all the legacy ISA devices?
Hi
Several things here.
a- I am just removing bits that are duplicated in this patch
So I think it should got in as it is.
b- SuperIO: I would really be able to remove isapc machine type and
isa-bus and related friends. (Yes, as put before, I know that all pc's have an isa bus, but no need for things like mmouse nowadays)
c- untangling piix and q35 is a bit of work. The things that I remember
from memory:
* tests: we have tests for both on the same file (we can split the file)
* is_default. This is a mess. I tried to disable "piix" machine types leaving only q35, and then tests complain that there is no default machine type. I think that we should remove all the is_default logic and just choose the 1st for the list of machines (but that is one idea that I haven't triued to follow yet).
And that is before we start doing things like network isa cards, isa sound cards, vmport (I hate that), parallel port, whatdog, etc, etc.
Later, Juan.
Re: [Qemu-devel] [PATCH v2 02/22] config: CONFIG_SERIAL* is already in pci.mak
Quoted 11 lines · Juan Quintela
Quoted 4 lines
I don't think
CONFIG_SERIAL_ISAshould be in pci.mak though, andCONFIG_SERIALis a dependency of bothCONFIG_SERIALandCONFIG_SERIAL_PCI. Perhaps introduce a superio.mak with all the legacy ISA devices?Hi
Several things here.
a- I am just removing bits that are duplicated in this patch
So I think it should got in as it is.
The right thing to do perhaps would be to remove CONFIG_SERIAL_ISA from pci.mak. There's no reason why a pSeries-only QEMU would include CONFIG_SERIAL_ISA, I think. Thomas, Laurent?
Quoted 3 lines
b- SuperIO: I would really be able to remove isapc machine type and
isa-bus and related friends. (Yes, as put before, I know that all pc's have an isa bus, but no need for things like mmouse nowadays)
Not sure how isapc and a hypothetical superio.mak are related.
Quoted 4 lines
c- untangling piix and q35 is a bit of work. The things that I remember
from memory:
* tests: we have tests for both on the same file (we can split the file)
Again, you're duplicating what qos-test is doing, and again I'm not sure how (c) is related to the other parts.
Paolo
Re: [Qemu-devel] [PATCH v2 02/22] config: CONFIG_SERIAL* is already in pci.mak
In reply to Paolo BonziniQuoted 16 lines · Paolo Bonzini
Quoted 14 lines · Juan Quintela
Signed-off-by Juan Quintela <[email protected]>--- default-configs/alpha-softmmu.mak | 2 -- default-configs/arm-softmmu.mak | 2 -- default-configs/hppa-softmmu.mak | 3 --- default-configs/i386-softmmu.mak | 2 -- default-configs/mips-softmmu-common.mak | 2 -- default-configs/ppc-softmmu.mak | 1 - default-configs/ppcemb-softmmu.mak | 2 -- default-configs/sh4-softmmu.mak | 2 -- default-configs/sh4eb-softmmu.mak | 2 -- default-configs/sparc64-softmmu.mak | 2 -- default-configs/x86_64-softmmu.mak | 2 -- 11 files changed, 22 deletions(-)
Quoted 1 line
I don't think
CONFIG_SERIAL_ISAshould be in pci.mak though
agreed.
Quoted 3 lines
, and
CONFIG_SERIALis a dependency of bothCONFIG_SERIALandCONFIG_SERIAL_PCI.
I guess you here mean CONFIG_SERIAL_ISA or CONFIG_SERIAL_PCI. That is not enough. CONFIG_SERIAL really means CONFIG_SERIAL_COMMON, and things like riscv* require it (i.e. basically all the weird(*) boards have a serial port)
Quoted 2 lines
Perhaps introduce a superio.mak with all the legacy ISA devices?
What are the surperio.mak or isa.mak. And once there, what are the isa devices? Weird things that came to my mind that can't be disabled:
- mmmouse
- serial-isa
- fdc
- vmport
- vga-isa (this is another weird thing)
- ipmi-isa?
- what else?
Later, Juan.
(*): weird here means that they don't have PCI available.
Re: [Qemu-devel] [PATCH v2 02/22] config: CONFIG_SERIAL* is already in pci.mak
Quoted 6 lines · Juan Quintela
Quoted 2 lines
CONFIG_SERIALis a dependency of bothCONFIG_SERIALandCONFIG_SERIAL_PCI.I guess you here mean
CONFIG_SERIAL_ISAorCONFIG_SERIAL_PCI. That is not enough.CONFIG_SERIALreally meansCONFIG_SERIAL_COMMON, and things like riscv* require it
Right, I would put
CONFIG_SERIAL=y
CONFIG_SERIAL_ISA=y
in superio.mak and
CONFIG_SERIAL=y
CONFIG_SERIAL_PCI=y
in pci.mak.
Quoted 6 lines
Quoted 2 lines
Perhaps introduce a superio.mak with all the legacy ISA devices?
What are the surperio.mak or isa.mak. And once there, what are the isa devices? Weird things that came to my mind that can't be disabled:
- mmmouse
msmouse is a character device backend, not a device model
Quoted 6 lines
- serial-isa
- fdc
- vmport
- vga-isa (this is another weird thing)
- ipmi-isa?
- what else?
SuperIO is RTC, I8254, I8257, I8259, ISA serial, parallel, floppy. They can all be disabled (well, no guarantee that it compiles but the option is there).
Paolo
Re: [Qemu-devel] [PATCH v2 02/22] config: CONFIG_SERIAL* is already in pci.mak
Quoted 13 lines · Paolo Bonzini
Quoted 6 lines · Juan Quintela
Quoted 2 lines
CONFIG_SERIALis a dependency of bothCONFIG_SERIALandCONFIG_SERIAL_PCI.I guess you here mean
CONFIG_SERIAL_ISAorCONFIG_SERIAL_PCI. That is not enough.CONFIG_SERIALreally meansCONFIG_SERIAL_COMMON, and things like riscv* require itRight, I would put
CONFIG_SERIAL=y
CONFIG_SERIAL_ISA=y
Quoted 6 lines
in superio.mak and
CONFIG_SERIAL=y
CONFIG_SERIAL_PCI=yin pci.mak.
What about the boards that use the serial.c code but do not have PCI, ISA or a superio chip? That is, all the boards/devices that call serial_mm_init() directly to create a memory-mapped 16550.
(If anybody feels like trying to do a complicated refactoring, serial_mm_init() is a pretty ugly legacy API around some non-QOMified core 16550 code...)
thanks
-- PMM
Re: [Qemu-devel] [PATCH v2 02/22] config: CONFIG_SERIAL* is already in pci.mak
Quoted 19 lines · Peter Maydell
Quoted 18 lines · Paolo Bonzini
Quoted 6 lines · Juan Quintela
Quoted 2 lines
CONFIG_SERIALis a dependency of bothCONFIG_SERIALandCONFIG_SERIAL_PCI.I guess you here mean
CONFIG_SERIAL_ISAorCONFIG_SERIAL_PCI. That is not enough.CONFIG_SERIALreally meansCONFIG_SERIAL_COMMON, and things like riscv* require itRight, I would put
CONFIG_SERIAL=y
CONFIG_SERIAL_ISA=yin superio.mak and
CONFIG_SERIAL=y
CONFIG_SERIAL_PCI=y
Quoted 6 lines
Quoted 1 line
in pci.mak.
What about the boards that use the
serial.ccode but do not have PCI, ISA or a superio chip? That is, all the boards/devices that callserial_mm_init()directly to create a memory-mapped 16550.
They just add
CONFIG_SERIAL=y
to the .mak file.
Paolo
Re: [Qemu-devel] [PATCH v2 02/22] config: CONFIG_SERIAL* is already in pci.mak
Quoted 11 lines · Paolo Bonzini
Quoted 4 lines · Peter Maydell
What about the boards that use the
serial.ccode but do not have PCI, ISA or a superio chip? That is, all the boards/devices that callserial_mm_init()directly to create a memory-mapped 16550.They just add
CONFIG_SERIAL=yto the .mak file.
...but the patch that has kicked off this thread is *removing* CONFIG_SERIAL=y from the various .mak files...
thanks
-- PMM
Re: [Qemu-devel] [PATCH v2 02/22] config: CONFIG_SERIAL* is already in pci.mak
Quoted 7 lines · Peter Maydell
Quoted 6 lines · Paolo Bonzini
Quoted 4 lines · Peter Maydell
What about the boards that use the
serial.ccode but do not have PCI, ISA or a superio chip? That is, all the boards/devices that callserial_mm_init()directly to create a memory-mapped 16550.
Quoted 8 lines
Quoted 5 lines
They just add
CONFIG_SERIAL=yto the .mak file.
...but the patch that has kicked off this thread is *removing*
CONFIG_SERIAL=yfrom the various .mak files...
Probably because they were including pci.mak. Indeed CONFIG_SERIAL=y should remain in the ARM/HPPA/Microblaze/MIPS/Mozie/NiOS2/OpenRISC/PPC/RiscV/SH/SPARC64/Xtensa .mak files.
Another possibility would be to split .mak files per-machine, and include the per-machine file in the toplevel.
Thanks,
Paolo
Re: [Qemu-devel] [PATCH v2 02/22] config: CONFIG_SERIAL* is already in pci.mak
In reply to Peter MaydellQuoted 19 lines · Peter Maydell
Quoted 18 lines · Paolo Bonzini
Quoted 6 lines · Juan Quintela
Quoted 2 lines
CONFIG_SERIALis a dependency of bothCONFIG_SERIALandCONFIG_SERIAL_PCI.I guess you here mean
CONFIG_SERIAL_ISAorCONFIG_SERIAL_PCI. That is not enough.CONFIG_SERIALreally meansCONFIG_SERIAL_COMMON, and things like riscv* require itRight, I would put
CONFIG_SERIAL=y
CONFIG_SERIAL_ISA=yin superio.mak and
CONFIG_SERIAL=y
CONFIG_SERIAL_PCI=y
Quoted 6 lines
Quoted 1 line
in pci.mak.
What about the boards that use the
serial.ccode but do not have PCI, ISA or a superio chip? That is, all the boards/devices that callserial_mm_init()directly to create a memory-mapped 16550.
That is what I mean that changing CONFIG_SERIAL to $(call lor,$(CONFIG_SERIAL_ISA), $(CONFIG_SERIAL_PCI))
is not enough.
Quoted 3 lines
(If anybody feels like trying to do a complicated refactoring,
serial_mm_init()is a pretty ugly legacy API around some non-QOMified core 16550 code...)
It is really, really interesting, we have:
- serial_init()
used is sh4, mips and imx serial
- serial_mm_init()
loads of places
- serial_hds_isa_init()
sparc64, ppc, other mips, and pc
And now you can start getting creative with qom.
O:-)
Later, Juan.
PATCH v2 3/22 check: Use land/lor when possible
In reply to Juan QuintelaSo everythig is (a bit) more consistent
--- tests/Makefile.include | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-)
tests/Makefile.include +4 -8
@@ -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) += tests/tpm-crb-swtpm-test$(EXESUF) check-qtest-i386-$(CONFIG_TPM) += tests/tpm-crb-test$(EXESUF) check-qtest-i386-$(CONFIG_TPM) += tests/tpm-tis-swtpm-test$(EXESUF)
Signature · 1 line
2.17.1
PATCH v2 4/22 check: Only test isa-testdev when it is compiled in
In reply to Juan QuintelaOnce 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
@@ -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
Re: [Qemu-devel] [PATCH v2 04/22] check: Only test isa-testdev when it is compiled in
Quoted 7 lines · Juan Quintela
Once there, untangle endianness-test and boot-serial-test.
Signed-off-by Juan Quintela <[email protected]>--
boot-serial-test don't depend on isa-testdev. Thanks Thomas.
So remove it from the patch description, too?
Quoted 26 lines
Signed-off-by Juan Quintela <[email protected]>--- tests/Makefile.include | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-)tests/Makefile.include +1
-5@@ -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) -
tests/Makefile.include check-qtest-m68k-y = tests/boot-serial-test$(EXESUF) · line 330
Quoted 10 lines
tests/Makefile.include +5
-3-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)
I think it would be good to try to keep the alphabetical order of the entries, i.e. keep mips before moxie?
Thomas
Re: [Qemu-devel] [PATCH v2 04/22] check: Only test isa-testdev when it is compiled in
In reply to Juan QuintelaQuoted 3 lines · Juan Quintela
Once there, untangle endianness-test and boot-serial-test.
Signed-off-by Juan Quintela <[email protected]>
Emanuele's qos-test would do this automatically. It would be nicer to convert the whole ISA subsystem to use libqos and qos-test...
Paolo
Quoted 66 lines
--
boot-serial-test don't depend on isa-testdev. Thanks Thomas.
Signed-off-by Juan Quintela <[email protected]>--- tests/Makefile.include | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-)tests/Makefile.include +11
-11@@ -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)
Re: [Qemu-devel] [PATCH v2 04/22] check: Only test isa-testdev when it is compiled in
Quoted 7 lines · Paolo Bonzini
Quoted 3 lines · Juan Quintela
Once there, untangle endianness-test and boot-serial-test.
Signed-off-by Juan Quintela <[email protected]>Emanuele's qos-test would do this automatically. It would be nicer to convert the whole ISA subsystem to use libqos and qos-test...
Can we get this in until we get some volunteer for that other work? /me full of things on his plate at the moment.
Thanks, Juan.
Re: [Qemu-devel] [PATCH v2 04/22] check: Only test isa-testdev when it is compiled in
Quoted 4 lines · Juan Quintela
Quoted 2 lines
Emanuele's qos-test would do this automatically. It would be nicer to convert the whole ISA subsystem to use libqos and qos-test...
Can we get this in until we get some volunteer for that other work? /me full of things on his plate at the moment.
Sure, but since this is RFC, I commented. :) With qos-test, all tests end up in a single binary that is generic for all QEMU targets, and there's no need to synchronize the configuration with the testing.
The disadvantage of doing it at the Makefile level is that it relies on the devices being either in all targets or none. For example CONFIG_ISA_TESTDEV cannot be removed from just default-configs/ppc-softmmu.mak if you are building both a PPC and an x86 target.
Paolo
Re: [Qemu-devel] [PATCH v2 04/22] check: Only test isa-testdev when it is compiled in
Quoted 7 lines · Paolo Bonzini
Quoted 4 lines · Juan Quintela
Quoted 2 lines
Emanuele's qos-test would do this automatically. It would be nicer to convert the whole ISA subsystem to use libqos and qos-test...
Can we get this in until we get some volunteer for that other work? /me full of things on his plate at the moment.
Sure, but since this is RFC, I commented. :)
I didn't expect less of you O:-)
Quoted 9 lines
With qos-test, all tests
end up in a single binary that is generic for all QEMU targets, and there's no need to synchronize the configuration with the testing.The disadvantage of doing it at the
Makefilelevel is that it relies on the devices being either in all targets or none. For exampleCONFIG_ISA_TESTDEVcannot be removed from just default-configs/ppc-softmmu.mak if you are building both a PPC and an x86 target.
I can live with that. My use case is:
- complining for more than one architecture: everything under the sun is compiled in
- development: I choose a single architecture and the minimal amount of devices for whatever I am testing
So, for me is perfect, thanks.
Later, Juan.
Re: [Qemu-devel] [PATCH v2 04/22] check: Only test isa-testdev when it is compiled in
Quoted 20 lines · Juan Quintela
Quoted 7 lines · Paolo Bonzini
Quoted 4 lines · Juan Quintela
Quoted 2 lines
Emanuele's qos-test would do this automatically. It would be nicer to convert the whole ISA subsystem to use libqos and qos-test...
Can we get this in until we get some volunteer for that other work? /me full of things on his plate at the moment.
Sure, but since this is RFC, I commented. :)
I didn't expect less of you O:-)
Quoted 9 lines
With qos-test, all tests
end up in a single binary that is generic for all QEMU targets, and there's no need to synchronize the configuration with the testing.The disadvantage of doing it at the
Makefilelevel is that it relies on the devices being either in all targets or none. For exampleCONFIG_ISA_TESTDEVcannot be removed from just default-configs/ppc-softmmu.mak if you are building both a PPC and an x86 target.
Anyway, I'm not opposed to merging this part, it's just that they may be unnecessary in the future. The virtio split is more interesting to me, and I am very happy that you are doing it!
Paolo
PATCH v2 5/22 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
@@ -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
Re: [Qemu-devel] [PATCH v2 05/22] check: Only test usb-xhci-nec when it is compiled in
Quoted 10 lines · Juan Quintela
Signed-off-by Juan Quintela <[email protected]>--- tests/Makefile.include | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)tests/Makefile.include +0
-0
tests/Makefile.include endif · line 295
Quoted 8 lines
tests/Makefile.include +3
-2@@ -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
Maybe use CONFIG_USB_XHCI_NEC for the hcd-xhci-nec.c entry instead?
tests/Makefile.include check-qtest-ppc64-$(CONFIG_USB_OHCI) += tests/usb-hcd-ohci-test$(EXESUF) · line 354
Quoted 11 lines
tests/Makefile.include +2
-2check-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
Also add hcd-xhci-nec.c gcov entry here?
tests/Makefile.include check-qtest-ppc64-$(CONFIG_USB_OHCI) += tests/usb-hcd-ohci-test$(EXESUF) · line 357
Quoted 3 lines
tests/Makefile.include +0
-0check-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)
Thomas
Re: [Qemu-devel] [PATCH v2 05/22] check: Only test usb-xhci-nec when it is compiled in
Quoted 6 lines · Thomas Huth
Quoted 5 lines · Juan Quintela
Signed-off-by Juan Quintela <[email protected]>--- tests/Makefile.include | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
Quoted 15 lines
tests/Makefile.include endif · line 295
Quoted 13 lines
tests/Makefile.include +3
-2@@ -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.cMaybe use
CONFIG_USB_XHCI_NECfor thehcd-xhci-nec.centry instead?
Not sure, this split looks artifitial. My read of this:
commit 0bbb2f3df1ffd9ccf7135a69a450c6929bc0b915
Author: Gerd Hoffmann <[email protected]> Date: Wed May 17 12:33:12 2017 +0200
xhci: split into multiple files
Is that it got split so we could add more controllers that never happened. I am not sure what we need to do.
Quoted 6 lines
Quoted 6 lines
tests/Makefile.include +0
-0check-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
Quoted 8 lines
tests/Makefile.include check-qtest-ppc64-$(CONFIG_USB_OHCI) += tests/usb-hcd-ohci-test$(EXESUF) · line 354
Quoted 6 lines
tests/Makefile.include +2
-2check-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.cAlso add
hcd-xhci-nec.cgcov entry here?
I didn't want to go "further", but I think that we should have here is something like:
check-qtest-$(CONFIG_USB_XHCI_NEC) += tests/usb-hcd-xhci-test$(EXESUF) gcov-files-$(CONFIG_USB_XHCI) += hw/usb/hcd-xhci.c
and remove the arch specific bits. If one arch don't support it, we know have CONFIG_USB_XHCI bits to not _enable_ it there.
What do you think?
Thanks, Juan.
Re: [Qemu-devel] [PATCH v2 05/22] check: Only test usb-xhci-nec when it is compiled in
Quoted 1 line · Juan Quintela
Thomas Huth <[email protected]> wrote:
[...]
Quoted 6 lines
I didn't want to go "further", but I think that we should have here is something like:
check-qtest-$(CONFIG_USB_XHCI_NEC) += tests/usb-hcd-xhci-test$(EXESUF) gcov-files-$(CONFIG_USB_XHCI) +=
hw/usb/hcd-xhci.c
Quoted 6 lines
and remove the arch specific bits. If one arch don't support it, we know have
CONFIG_USB_XHCIbits to not _enable_ it there.What do you think?
Thanks, Juan.
If "make check" passes with that change, that sounds like the right solution to me, too.
Thomas
PATCH v2 6/22 i386-softmmu: Configuration is identical to x86_64-softmmu
In reply to Juan QuintelaIf we ever changed that, just make the things that are different explicit.
--- default-configs/i386-softmmu.mak | 65 +------------------------------- 1 file changed, 1 insertion(+), 64 deletions(-)
default-configs/i386-softmmu.mak +1 -64
@@ -1,66 +1,3 @@ # Default configuration for i386-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_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 x86_64-softmmu.mak
Signature · 1 line
2.17.1
Re: [Qemu-devel] [PATCH v2 06/22] i386-softmmu: Configuration is identical to x86_64-softmmu
Quoted 70 lines · Juan Quintela
If we ever changed that, just make the things that are different explicit.
Signed-off-by Juan Quintela <[email protected]>--- default-configs/i386-softmmu.mak | 65 +------------------------------- 1 file changed, 1 insertion(+), 64 deletions(-)default-configs/i386-softmmu.mak +0
-55@@ -1,66 +1,3 @@ # Default configuration for i386-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_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
default-configs/i386-softmmu.mak line 3
Quoted 10 lines
default-configs/i386-softmmu.mak +1
-9-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 x86_64-softmmu.mak
That's theoretically a good idea, but I think I'd rather do it the other way round: include i386-softmmu.mak in the x86_64 config file.
Rationale: x86_64 is supposed to be a superset of i386, not the other way round, so when we will ever get a CONFIG_SWITCH_FOR_X86_64_ONLY, it's easier to handle if the includes are done the other way round.
And that's also how we do it in aarch64-softmmu.mak an ppc64-softmmu.mak.
Thomas
Re: [Qemu-devel] [PATCH v2 06/22] i386-softmmu: Configuration is identical to x86_64-softmmu
Quoted 79 lines · Thomas Huth
Quoted 78 lines · Juan Quintela
If we ever changed that, just make the things that are different explicit.
Signed-off-by Juan Quintela <[email protected]>--- default-configs/i386-softmmu.mak | 65 +------------------------------- 1 file changed, 1 insertion(+), 64 deletions(-)default-configs/i386-softmmu.mak +0
-63@@ -1,66 +1,3 @@ # Default configuration for i386-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_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
Quoted 8 lines
default-configs/i386-softmmu.mak line 3
Quoted 2 lines
default-configs/i386-softmmu.mak +1
-1-CONFIG_AMD_IOMMU=y +include x86_64-softmmu.makThat's theoretically a good idea, but I think I'd rather do it the other way round: include i386-softmmu.mak in the
x86_64config file.
Rationale:x86_64is supposed to be a superset of i386, not the other way round, so when we will ever get aCONFIG_SWITCH_FOR_X86_64_ONLY, it's easier to handle if the includes are done the other way round.
[1]
Quoted 1 line
And that's also how we do it in aarch64-softmmu.mak an ppc64-softmmu.mak.
This is a good point.
But for (1), I really think that we should make i386 only for old stuff, and remove things like ISA devices from x86_64 (ok, I know that there is some ISA on all chipsets, but ne2000-isa is not one of them).
Anyways, I don't really care enough, so I will change that.
Later, Juan.
PATCH v2 7/22 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
@@ -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
PATCH v2 8/22 check: Only test tpm devices when they are compiled in
In reply to Juan Quintela--- tests/Makefile.include | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
tests/Makefile.include +4 -4
@@ -299,10 +299,10 @@ 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) 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) += tests/tpm-crb-swtpm-test$(EXESUF) -check-qtest-i386-$(CONFIG_TPM) += tests/tpm-crb-test$(EXESUF) -check-qtest-i386-$(CONFIG_TPM) += tests/tpm-tis-swtpm-test$(EXESUF) -check-qtest-i386-$(CONFIG_TPM) += tests/tpm-tis-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) +check-qtest-i386-$(CONFIG_TPM_TIS) += tests/tpm-tis-test$(EXESUF) check-qtest-i386-$(CONFIG_SLIRP) += tests/test-netfilter$(EXESUF) check-qtest-i386-$(CONFIG_POSIX) += tests/test-filter-mirror$(EXESUF) check-qtest-i386-$(CONFIG_RTL8139_PCI) += tests/test-filter-redirector$(EXESUF)
Signature · 1 line
2.17.1
Re: [Qemu-devel] [PATCH v2 08/22] check: Only test tpm devices when they are compiled in
Quoted 14 lines · Juan Quintela
Signed-off-by Juan Quintela <[email protected]>--- tests/Makefile.include | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)tests/Makefile.include +0
-1@@ -299,10 +299,10 @@ 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) 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) += tests/tpm-crb-swtpm-test$(EXESUF)
tests/Makefile.include check-qtest-i386-y += tests/vmgenid-test$(EXESUF) · line 308
Quoted 10 lines
tests/Makefile.include +4
-3-check-qtest-i386-$(CONFIG_TPM) += tests/tpm-crb-test$(EXESUF) -check-qtest-i386-$(CONFIG_TPM) += tests/tpm-tis-swtpm-test$(EXESUF) -check-qtest-i386-$(CONFIG_TPM) += tests/tpm-tis-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) +check-qtest-i386-$(CONFIG_TPM_TIS) += tests/tpm-tis-test$(EXESUF) check-qtest-i386-$(CONFIG_SLIRP) += tests/test-netfilter$(EXESUF) check-qtest-i386-$(CONFIG_POSIX) += tests/test-filter-mirror$(EXESUF) check-qtest-i386-$(CONFIG_RTL8139_PCI) += tests/test-filter-redirector$(EXESUF)
PATCH v2 9/22 virtio: Remove unneeded includes
In reply to Juan QuintelaThey are all already included in virtio_pci.h.
--- hw/virtio/virtio-pci.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-)
hw/virtio/virtio-pci.c +1 -14
@@ -18,24 +18,11 @@#include "qemu/osdep.h" #include "standard-headers/linux/virtio_pci.h" -#include "hw/virtio/virtio.h" -#include "hw/virtio/virtio-blk.h" -#include "hw/virtio/virtio-net.h" -#include "hw/virtio/virtio-serial.h" -#include "hw/virtio/virtio-scsi.h" -#include "hw/virtio/virtio-balloon.h" -#include "hw/virtio/virtio-input.h" -#include "hw/pci/pci.h" +#include "virtio-pci.h" #include "qapi/error.h" -#include "qemu/error-report.h" -#include "hw/pci/msi.h" #include "hw/pci/msix.h" -#include "hw/loader.h" #include "sysemu/kvm.h" -#include "virtio-pci.h" #include "qemu/range.h" -#include "hw/virtio/virtio-bus.h" -#include "qapi/visitor.h" #define VIRTIO_PCI_REGION_SIZE (dev) VIRTIO_PCI_CONFIG_OFF(msix_present(dev))
Signature · 1 line
2.17.1
Re: [Qemu-devel] [PATCH v2 09/22] virtio: Remove unneeded includes
Quoted 26 lines · Juan Quintela
They are all already included in
virtio_pci.h.Signed-off-by Juan Quintela <[email protected]>--- hw/virtio/virtio-pci.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-)hw/virtio/virtio-pci.c +1
-9@@ -18,24 +18,11 @@#include "qemu/osdep.h" #include "standard-headers/linux/virtio_pci.h" -#include "hw/virtio/virtio.h" -#include "hw/virtio/virtio-blk.h" -#include "hw/virtio/virtio-net.h" -#include "hw/virtio/virtio-serial.h" -#include "hw/virtio/virtio-scsi.h" -#include "hw/virtio/virtio-balloon.h" -#include "hw/virtio/virtio-input.h" -#include "hw/pci/pci.h" +#include "virtio-pci.h" #include "qapi/error.h" -#include "qemu/error-report.h"
hw/virtio/virtio-pci.c line 27
Quoted 10 lines
hw/virtio/virtio-pci.c +0
-5-#include "hw/pci/msi.h" #include "hw/pci/msix.h" -#include "hw/loader.h" #include "sysemu/kvm.h" -#include "virtio-pci.h" #include "qemu/range.h" -#include "hw/virtio/virtio-bus.h" -#include "qapi/visitor.h" #define VIRTIO_PCI_REGION_SIZE (dev) VIRTIO_PCI_CONFIG_OFF(msix_present(dev))
Re: [Qemu-devel] [PATCH v2 09/22] virtio: Remove unneeded includes
In reply to Juan QuintelaQuoted 3 lines · * Juan Quintela ([email protected]) wrote:
They are all already included in
virtio_pci.h.Signed-off-by Juan Quintela <[email protected]>
cc'ing in mst for virtio goodness.
Quoted 37 lines
--- hw/virtio/virtio-pci.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-)hw/virtio/virtio-pci.c +1
-14@@ -18,24 +18,11 @@#include "qemu/osdep.h" #include "standard-headers/linux/virtio_pci.h" -#include "hw/virtio/virtio.h" -#include "hw/virtio/virtio-blk.h" -#include "hw/virtio/virtio-net.h" -#include "hw/virtio/virtio-serial.h" -#include "hw/virtio/virtio-scsi.h" -#include "hw/virtio/virtio-balloon.h" -#include "hw/virtio/virtio-input.h" -#include "hw/pci/pci.h" +#include "virtio-pci.h" #include "qapi/error.h" -#include "qemu/error-report.h" -#include "hw/pci/msi.h" #include "hw/pci/msix.h" -#include "hw/loader.h" #include "sysemu/kvm.h" -#include "virtio-pci.h" #include "qemu/range.h" -#include "hw/virtio/virtio-bus.h" -#include "qapi/visitor.h" #define VIRTIO_PCI_REGION_SIZE (dev) VIRTIO_PCI_CONFIG_OFF(msix_present(dev))Signature · 1 line
2.17.1
--
Dr. David Alan Gilbert / [email protected] / Manchester, UK
Re: [Qemu-devel] [PATCH v2 09/22] virtio: Remove unneeded includes
Quoted 2 lines · Dr. David Alan Gilbert
Quoted 1 line · * Juan Quintela ([email protected]) wrote:
They are all already included in
virtio_pci.h.
All I see in virtio_pci.h is:
#include "standard-headers/linux/types.h"
Weird.
BTW what's the point of this patch? Generally it's best not to depend on headers including each other, it makes refactoring harder.
Quoted 46 lines
Quoted 2 lines
Signed-off-by Juan Quintela <[email protected]>cc'ing in mst for virtio goodness.
Quoted 37 lines
--- hw/virtio/virtio-pci.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-)hw/virtio/virtio-pci.c +1
-14@@ -18,24 +18,11 @@#include "qemu/osdep.h" #include "standard-headers/linux/virtio_pci.h" -#include "hw/virtio/virtio.h" -#include "hw/virtio/virtio-blk.h" -#include "hw/virtio/virtio-net.h" -#include "hw/virtio/virtio-serial.h" -#include "hw/virtio/virtio-scsi.h" -#include "hw/virtio/virtio-balloon.h" -#include "hw/virtio/virtio-input.h" -#include "hw/pci/pci.h" +#include "virtio-pci.h" #include "qapi/error.h" -#include "qemu/error-report.h" -#include "hw/pci/msi.h" #include "hw/pci/msix.h" -#include "hw/loader.h" #include "sysemu/kvm.h" -#include "virtio-pci.h" #include "qemu/range.h" -#include "hw/virtio/virtio-bus.h" -#include "qapi/visitor.h" #define VIRTIO_PCI_REGION_SIZE (dev) VIRTIO_PCI_CONFIG_OFF(msix_present(dev))Signature · 1 line
2.17.1--
Dr. David Alan Gilbert / [email protected] / Manchester, UK
Re: [Qemu-devel] [PATCH v2 09/22] virtio: Remove unneeded includes
Quoted 4 lines · Michael S. Tsirkin
Quoted 2 lines · Dr. David Alan Gilbert
Quoted 1 line · * Juan Quintela ([email protected]) wrote:
They are all already included in
virtio_pci.h.
Quoted 8 lines
All I see in
virtio_pci.his:#include "
standard-headers/linux/types.h"Weird.
BTW what's the point of this patch? Generally it's best not to depend on headers including each other, it makes refactoring harder.
If you see the following patches, we remove blk, net, serial, scsi, balloon and input bits from that file, so I was removing includes patch by patch.
And at the end, I found that we only need that ones.
"virtio-pci.h" does too many things here, I could have split it also, because the mayority of the bits are only used now inside their own virtio-foo-pci.c. But then, there are things that share bits, virtio-bus-pci is used for lots of stuff, virtio-input-pci bits are used
in virtio-input-host-pci.c, etc, So I decided to only do the direct
split.
And about including directly all the files that you use, and including only the files that are extrictly needed, the normal argument is that the less includes, the faster compiler times.
Later, Juan.
Re: [Qemu-devel] [PATCH v2 09/22] virtio: Remove unneeded includes
Quoted 27 lines · Juan Quintela
Quoted 4 lines · Michael S. Tsirkin
Quoted 2 lines · Dr. David Alan Gilbert
Quoted 1 line · * Juan Quintela ([email protected]) wrote:
They are all already included in
virtio_pci.h.Quoted 8 lines
All I see in
virtio_pci.his:#include "
standard-headers/linux/types.h"Weird.
BTW what's the point of this patch? Generally it's best not to depend on headers including each other, it makes refactoring harder.
If you see the following patches, we remove blk, net, serial, scsi, balloon and input bits from that file, so I was removing includes patch by patch.
And at the end, I found that we only need that ones.
"
virtio-pci.h" does too many things here, I could have split it also, because the mayority of the bits are only used now inside their ownvirtio-foo-pci.c. But then, there are things that share bits, virtio-bus-pci is used for lots of stuff, virtio-input-pci bits are used
invirtio-input-host-pci.c, etc, So I decided to only do the direct
split.
Quoted 5 lines
And about including directly all the files that you use, and including only the files that are extrictly needed, the normal argument is that the less includes, the faster compiler times.
Later, Juan.
That's reverse of the direction we have been going. Pls move includes when you split up the files.
Signature · 1 line
MST
Re: [Qemu-devel] [PATCH v2 09/22] virtio: Remove unneeded includes
Quoted 28 lines · Michael S. Tsirkin
Quoted 27 lines · Juan Quintela
Quoted 4 lines · Michael S. Tsirkin
Quoted 2 lines · Dr. David Alan Gilbert
Quoted 1 line · * Juan Quintela ([email protected]) wrote:
They are all already included in
virtio_pci.h.Quoted 8 lines
All I see in
virtio_pci.his:#include "
standard-headers/linux/types.h"Weird.
BTW what's the point of this patch? Generally it's best not to depend on headers including each other, it makes refactoring harder.
If you see the following patches, we remove blk, net, serial, scsi, balloon and input bits from that file, so I was removing includes patch by patch.
And at the end, I found that we only need that ones.
"
virtio-pci.h" does too many things here, I could have split it also, because the mayority of the bits are only used now inside their ownvirtio-foo-pci.c. But then, there are things that share bits, virtio-bus-pci is used for lots of stuff, virtio-input-pci bits are used
invirtio-input-host-pci.c, etc, So I decided to only do the direct
split.
Quoted 8 lines
Quoted 5 lines
And about including directly all the files that you use, and including only the files that are extrictly needed, the normal argument is that the less includes, the faster compiler times.
Later, Juan.
That's reverse of the direction we have been going. Pls move includes when you split up the files.
Hi
You want this bit of virtio-pci.h into vhost-vsock-pci.h?
#ifdef CONFIG_VHOST_VSOCK
/*
* vhost-vsock-pci: This extends VirtioPCIProxy.
*/
#define TYPE_VHOST_VSOCK_PCI "vhost-vsock-pci"
#define VHOST_VSOCK_PCI(obj) \
OBJECT_CHECK(VHostVSockPCI, (obj), TYPE_VHOST_VSOCK_PCI)
struct VHostVSockPCI {
VirtIOPCIProxy parent_obj;
VHostVSock vdev;
};#endif
Except for shared things (input, bus, ...) the rest are only used on the file that uses them.
Later, Juan.
Re: [Qemu-devel] [PATCH v2 09/22] virtio: Remove unneeded includes
Quoted 33 lines · Juan Quintela
Quoted 32 lines · Michael S. Tsirkin
Quoted 31 lines · Juan Quintela
Quoted 4 lines · Michael S. Tsirkin
Quoted 2 lines · Dr. David Alan Gilbert
Quoted 1 line · * Juan Quintela ([email protected]) wrote:
They are all already included in
virtio_pci.h.Quoted 8 lines
All I see in
virtio_pci.his:#include "
standard-headers/linux/types.h"Weird.
BTW what's the point of this patch? Generally it's best not to depend on headers including each other, it makes refactoring harder.
If you see the following patches, we remove blk, net, serial, scsi, balloon and input bits from that file, so I was removing includes patch by patch.
And at the end, I found that we only need that ones.
"
virtio-pci.h" does too many things here, I could have split it also, because the mayority of the bits are only used now inside their ownvirtio-foo-pci.c. But then, there are things that share bits, virtio-bus-pci is used for lots of stuff, virtio-input-pci bits are used
invirtio-input-host-pci.c, etc, So I decided to only do the direct
split.And about including directly all the files that you use, and including only the files that are extrictly needed, the normal argument is that the less includes, the faster compiler times.
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
Later, Juan.
That's reverse of the direction we have been going. Pls move includes when you split up the files.
Hi
You want this bit of
virtio-pci.hintovhost-vsock-pci.h?
In fact can we move it into c file?
Quoted 19 lines
#ifdef
CONFIG_VHOST_VSOCK
/*
* vhost-vsock-pci: This extends VirtioPCIProxy.
*/
#defineTYPE_VHOST_VSOCK_PCI"vhost-vsock-pci"
#defineVHOST_VSOCK_PCI(obj)\
OBJECT_CHECK(VHostVSockPCI, (obj), TYPE_VHOST_VSOCK_PCI)struct VHostVSockPCI { VirtIOPCIProxy parent_obj; VHostVSock vdev; };#endif
Except for shared things (input, bus, ...) the rest are only used on the file that uses them.
Later, Juan.
Re: [Qemu-devel] [PATCH v2 09/22] virtio: Remove unneeded includes
Quoted 36 lines · Michael S. Tsirkin
Quoted 35 lines · Juan Quintela
Quoted 34 lines · Michael S. Tsirkin
Quoted 32 lines · Juan Quintela
Quoted 4 lines · Michael S. Tsirkin
Quoted 2 lines · Dr. David Alan Gilbert
Quoted 1 line · * Juan Quintela ([email protected]) wrote:
They are all already included in
virtio_pci.h.Quoted 8 lines
All I see in
virtio_pci.his:#include "
standard-headers/linux/types.h"Weird.
BTW what's the point of this patch? Generally it's best not to depend on headers including each other, it makes refactoring harder.
If you see the following patches, we remove blk, net, serial, scsi, balloon and input bits from that file, so I was removing includes patch by patch.
And at the end, I found that we only need that ones.
"
virtio-pci.h" does too many things here, I could have split it also, because the mayority of the bits are only used now inside their ownvirtio-foo-pci.c. But then, there are things that share bits, virtio-bus-pci is used for lots of stuff, virtio-input-pci bits are used
invirtio-input-host-pci.c, etc, So I decided to only do the direct
split.And about including directly all the files that you use, and including only the files that are extrictly needed, the normal argument is that the less includes, the faster compiler times.
Later, Juan.
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
That's reverse of the direction we have been going. Pls move includes when you split up the files.
Hi
You want this bit of
virtio-pci.hintovhost-vsock-pci.h?In fact can we move it into c file?
Miss-type. I mean the .c file.
ok, will do for the next round.
Thanks for the comments.
Quoted 19 lines
Quoted 19 lines
#ifdef
CONFIG_VHOST_VSOCK
/*
* vhost-vsock-pci: This extends VirtioPCIProxy.
*/
#defineTYPE_VHOST_VSOCK_PCI"vhost-vsock-pci"
#defineVHOST_VSOCK_PCI(obj)\
OBJECT_CHECK(VHostVSockPCI, (obj), TYPE_VHOST_VSOCK_PCI)struct VHostVSockPCI { VirtIOPCIProxy parent_obj; VHostVSock vdev; };#endif
Except for shared things (input, bus, ...) the rest are only used on the file that uses them.
Later, Juan.
PATCH v2 10/22 virtio: split vsock bits from virtio-pci
In reply to Juan Quintela--- hw/virtio/Makefile.objs | 2 +- hw/virtio/vhost-vsock-pci.c | 71 +++++++++++++++++++++++++++++++++++++ hw/virtio/virtio-pci.c | 51 -------------------------- 3 files changed, 72 insertions(+), 52 deletions(-) create mode 100644 hw/virtio/vhost-vsock-pci.c
hw/virtio/Makefile.objs +1 -1
@@ -10,7 +10,7 @@ obj-$(CONFIG_VIRTIO_CRYPTO) += virtio-crypto.o obj-$(call land,$(CONFIG_VIRTIO_CRYPTO),$(CONFIG_VIRTIO_PCI)) += virtio-crypto-pci.o obj-$(CONFIG_LINUX) += vhost.o vhost-backend.o vhost-user.o -obj-$(CONFIG_VHOST_VSOCK) += vhost-vsock.o +obj-$(CONFIG_VHOST_VSOCK) += vhost-vsock.o vhost-vsock-pci.o endif common-obj-$(call lnot,$(call land,$(CONFIG_VIRTIO),$(CONFIG_LINUX))) += vhost-stub.o
hw/virtio/vhost-vsock-pci.c new file +71 -0
71 lines not on this page · raw message
hw/virtio/virtio-pci.c +0 -51
63 lines not on this page · raw message
Signature · 1 line
2.17.1
Re: [Qemu-devel] [PATCH v2 10/22] virtio: split vsock bits from virtio-pci
Quoted 27 lines · Juan Quintela
Signed-off-by Juan Quintela <[email protected]>--- hw/virtio/Makefile.objs | 2 +- hw/virtio/vhost-vsock-pci.c | 71 +++++++++++++++++++++++++++++++++++++ hw/virtio/virtio-pci.c | 51 -------------------------- 3 files changed, 72 insertions(+), 52 deletions(-) create mode 100644 hw/virtio/vhost-vsock-pci.chw/virtio/Makefile.objs +1
-1@@ -10,7 +10,7 @@ obj-$(CONFIG_VIRTIO_CRYPTO) += virtio-crypto.o obj-$(call land,$(CONFIG_VIRTIO_CRYPTO),$(CONFIG_VIRTIO_PCI)) += virtio-crypto-pci.o obj-$(CONFIG_LINUX) += vhost.o vhost-backend.o vhost-user.o -obj-$(CONFIG_VHOST_VSOCK) += vhost-vsock.o +obj-$(CONFIG_VHOST_VSOCK) += vhost-vsock.o vhost-vsock-pci.o endif common-obj-$(call lnot,$(call land,$(CONFIG_VIRTIO),$(CONFIG_LINUX))) += vhost-stub.ohw/virtio/vhost-vsock-pci.c new file +0
-0
hw/virtio/vhost-vsock-pci.c line 9
Quoted 9 lines
hw/virtio/vhost-vsock-pci.c new file +9
-0@@ -0,0 +1,71 @@ +/* +* Virtio vsock PCI vhost Bindings +* +* Copyright IBM, Corp. 2007 +* Copyright (c) 2009 CodeSourcery +* +* Authors: +* Anthony Liguori <[email protected]> +* Paul Brook <[email protected]>
The vhost-vsock code has been added by Stefan in 2016, so these Copyright and Author informations looks somehow weird in this new file now. Not sure how to deal best with this situation, ... I'd maybe simply drop the above lines in the new file?
Thomas
Re: [Qemu-devel] [PATCH v2 10/22] virtio: split vsock bits from virtio-pci
Quoted 34 lines · * Thomas Huth ([email protected]) wrote:
Quoted 33 lines · Juan Quintela
Signed-off-by Juan Quintela <[email protected]>--- hw/virtio/Makefile.objs | 2 +- hw/virtio/vhost-vsock-pci.c | 71 +++++++++++++++++++++++++++++++++++++ hw/virtio/virtio-pci.c | 51 -------------------------- 3 files changed, 72 insertions(+), 52 deletions(-) create mode 100644 hw/virtio/vhost-vsock-pci.chw/virtio/Makefile.objs +1
-1@@ -10,7 +10,7 @@ obj-$(CONFIG_VIRTIO_CRYPTO) += virtio-crypto.o obj-$(call land,$(CONFIG_VIRTIO_CRYPTO),$(CONFIG_VIRTIO_PCI)) += virtio-crypto-pci.o obj-$(CONFIG_LINUX) += vhost.o vhost-backend.o vhost-user.o -obj-$(CONFIG_VHOST_VSOCK) += vhost-vsock.o +obj-$(CONFIG_VHOST_VSOCK) += vhost-vsock.o vhost-vsock-pci.o endif common-obj-$(call lnot,$(call land,$(CONFIG_VIRTIO),$(CONFIG_LINUX))) += vhost-stub.ohw/virtio/vhost-vsock-pci.c new file +6
-0@@ -0,0 +1,71 @@ +/* +* Virtio vsock PCI vhost Bindings +* +* Copyright IBM, Corp. 2007 +* Copyright (c) 2009 CodeSourcery +*
Quoted 8 lines
hw/virtio/vhost-vsock-pci.c line 9
Quoted 3 lines
hw/virtio/vhost-vsock-pci.c new file +3
-0+* Authors: +* Anthony Liguori <[email protected]> +* Paul Brook <[email protected]> The vhost-vsock code has been added by Stefan in 2016, so these Copyright and Author informations looks somehow weird in this new file now. Not sure how to deal best with this situation, ... I'd maybe simply drop the above lines in the new file?
Well, we should figure it out; if it's all new code then it doesn't need to be GPL 2 only either.
Dave
Quoted 1 line
Thomas
--
Dr. David Alan Gilbert / [email protected] / Manchester, UK
PATCH v2 11/22 virtio: split host bits from virtio-pci
In reply to Juan Quintela--- default-configs/virtio.mak | 3 +++ hw/virtio/Makefile.objs | 1 + hw/virtio/virtio-input-host-pci.c | 42 +++++++++++++++++++++++++++++++ hw/virtio/virtio-pci.c | 20 --------------- 4 files changed, 46 insertions(+), 20 deletions(-) create mode 100644 hw/virtio/virtio-input-host-pci.c
default-configs/virtio.mak +3 -0
@@ -12,3 +12,6 @@ CONFIG_VIRTIO_RNG=y CONFIG_SCSI=y CONFIG_VIRTIO_SCSI=y CONFIG_VIRTIO_SERIAL=y +CONFIG_VIRTIO_VSOCK=y +CONFIG_VIRTIO_INPUT_HOST=$(CONFIG_LINUX) +
hw/virtio/Makefile.objs +1 -0
@@ -11,6 +11,7 @@ obj-$(call land,$(CONFIG_VIRTIO_CRYPTO),$(CONFIG_VIRTIO_PCI)) += virtio-crypto-p obj-$(CONFIG_LINUX) += vhost.o vhost-backend.o vhost-user.o obj-$(CONFIG_VHOST_VSOCK) += vhost-vsock.o vhost-vsock-pci.o +obj-$(CONFIG_VIRTIO_INPUT_HOST) += virtio-input-host-pci.o endif common-obj-$(call lnot,$(call land,$(CONFIG_VIRTIO),$(CONFIG_LINUX))) += vhost-stub.o
hw/virtio/virtio-input-host-pci.c new file +42 -0
42 lines not on this page · raw message
hw/virtio/virtio-pci.c +0 -20
@@ -2567,23 +2567,6 @@ static const TypeInfo virtio_tablet_pci_info = { .instance_init = virtio_tablet_initfn, }; -#ifdef CONFIG_LINUX -static void virtio_host_initfn (Object *obj) -{ -VirtIOInputHostPCI *dev =VIRTIO_INPUT_HOST_PCI (obj); - -virtio_instance_init_common (obj, &dev->vdev,sizeof (dev->vdev), -TYPE_VIRTIO_INPUT_HOST ); -} - -static const TypeInfo virtio_host_pci_info = { - .name =TYPE_VIRTIO_INPUT_HOST_PCI , - .parent =TYPE_VIRTIO_INPUT_PCI , - .instance_size =sizeof (VirtIOInputHostPCI), - .instance_init = virtio_host_initfn, -}; -#endif -/* virtio-pci-bus */ static void virtio_pci_bus_new(VirtioBusState *bus, size_t bus_size,
@@ -2637,9 +2620,6 @@ static void virtio_pci_register_types(void)type_register_static (&virtio_keyboard_pci_info);type_register_static (&virtio_mouse_pci_info);type_register_static (&virtio_tablet_pci_info); -#ifdef CONFIG_LINUX -type_register_static (&virtio_host_pci_info); -#endif type_register_static (&virtio_pci_bus_info);type_register_static (&virtio_pci_info);#ifdef CONFIG_VIRTFS
Signature · 1 line
2.17.1
Re: [Qemu-devel] [PATCH v2 11/22] virtio: split host bits from virtio-pci
Quoted 14 lines · Juan Quintela
Signed-off-by Juan Quintela <[email protected]>--- default-configs/virtio.mak | 3 +++ hw/virtio/Makefile.objs | 1 + hw/virtio/virtio-input-host-pci.c | 42 +++++++++++++++++++++++++++++++ hw/virtio/virtio-pci.c | 20 --------------- 4 files changed, 46 insertions(+), 20 deletions(-) create mode 100644 hw/virtio/virtio-input-host-pci.cdefault-configs/virtio.mak +0
-0
default-configs/virtio.mak CONFIG_VIRTIO_RNG=y · line 16
Quoted 5 lines
default-configs/virtio.mak +2
-0@@ -12,3 +12,6 @@ CONFIG_VIRTIO_RNG=y CONFIG_SCSI=y CONFIG_VIRTIO_SCSI=y CONFIG_VIRTIO_SERIAL=y +CONFIG_VIRTIO_VSOCK=y +CONFIG_VIRTIO_INPUT_HOST=$(CONFIG_LINUX)
What's the VIRTIO_VSOCK good for? You don't seem to use it in this patch?
Thomas
Quoted 99 lines
hw/virtio/Makefile.objs +1
-0@@ -11,6 +11,7 @@ obj-$(call land,$(CONFIG_VIRTIO_CRYPTO),$(CONFIG_VIRTIO_PCI)) += virtio-crypto-p obj-$(CONFIG_LINUX) += vhost.o vhost-backend.o vhost-user.o obj-$(CONFIG_VHOST_VSOCK) += vhost-vsock.o vhost-vsock-pci.o +obj-$(CONFIG_VIRTIO_INPUT_HOST) += virtio-input-host-pci.o endif common-obj-$(call lnot,$(call land,$(CONFIG_VIRTIO),$(CONFIG_LINUX))) += vhost-stub.ohw/virtio/virtio-input-host-pci.c new file +42
-0@@ -0,0 +1,42 @@ +/* +* Virtio input host PCI Bindings +* +* Copyright IBM, Corp. 2007 +* Copyright (c) 2009 CodeSourcery +* +* Authors: +* Anthony Liguori <[email protected]> +* Paul Brook <[email protected]> +* +* This work is licensed under the terms of the GNU GPL, version 2. See +* the COPYING file in the top-level directory. +* +* Contributions after 2012-01-13 are licensed under the terms of the +* GNU GPL, version 2 or (at your option) any later version. +*/ + +#include "qemu/osdep.h" + +#include "virtio-pci.h" + +static void virtio_input_host_initfn (Object *obj) +{ +VirtIOInputHostPCI *dev =VIRTIO_INPUT_HOST_PCI (obj); + +virtio_instance_init_common (obj, &dev->vdev,sizeof (dev->vdev), +TYPE_VIRTIO_INPUT_HOST ); +} + +static const TypeInfo virtio_input_host_pci_info = { + .name =TYPE_VIRTIO_INPUT_HOST_PCI , + .parent =TYPE_VIRTIO_INPUT_PCI , + .instance_size =sizeof (VirtIOInputHostPCI), + .instance_init = virtio_input_host_initfn, +}; + +static void virtio_input_host_pci_register (void ) +{ +type_register_static (&virtio_input_host_pci_info); +} + +type_init (virtio_input_host_pci_register)hw/virtio/virtio-pci.c +0
-20@@ -2567,23 +2567,6 @@ static const TypeInfo virtio_tablet_pci_info = { .instance_init = virtio_tablet_initfn, }; -#ifdef CONFIG_LINUX -static void virtio_host_initfn (Object *obj) -{ -VirtIOInputHostPCI *dev =VIRTIO_INPUT_HOST_PCI (obj); - -virtio_instance_init_common (obj, &dev->vdev,sizeof (dev->vdev), -TYPE_VIRTIO_INPUT_HOST ); -} - -static const TypeInfo virtio_host_pci_info = { - .name =TYPE_VIRTIO_INPUT_HOST_PCI , - .parent =TYPE_VIRTIO_INPUT_PCI , - .instance_size =sizeof (VirtIOInputHostPCI), - .instance_init = virtio_host_initfn, -}; -#endif -/* virtio-pci-bus */ static void virtio_pci_bus_new(VirtioBusState *bus, size_t bus_size,@@ -2637,9 +2620,6 @@ static void virtio_pci_register_types(void)type_register_static (&virtio_keyboard_pci_info);type_register_static (&virtio_mouse_pci_info);type_register_static (&virtio_tablet_pci_info); -#ifdef CONFIG_LINUX -type_register_static (&virtio_host_pci_info); -#endif type_register_static (&virtio_pci_bus_info);type_register_static (&virtio_pci_info);#ifdef CONFIG_VIRTFS
Re: [Qemu-devel] [PATCH v2 11/22] virtio: split host bits from virtio-pci
Quoted 10 lines · Thomas Huth
Quoted 9 lines · Juan Quintela
Signed-off-by Juan Quintela <[email protected]>--- default-configs/virtio.mak | 3 +++ hw/virtio/Makefile.objs | 1 + hw/virtio/virtio-input-host-pci.c | 42 +++++++++++++++++++++++++++++++ hw/virtio/virtio-pci.c | 20 --------------- 4 files changed, 46 insertions(+), 20 deletions(-) create mode 100644 hw/virtio/virtio-input-host-pci.c
Quoted 12 lines
default-configs/virtio.mak CONFIG_VIRTIO_RNG=y · line 16
Quoted 10 lines
default-configs/virtio.mak +2
-0@@ -12,3 +12,6 @@ CONFIG_VIRTIO_RNG=y CONFIG_SCSI=y CONFIG_VIRTIO_SCSI=y CONFIG_VIRTIO_SERIAL=y +CONFIG_VIRTIO_VSOCK=y +CONFIG_VIRTIO_INPUT_HOST=$(CONFIG_LINUX)What's the
VIRTIO_VSOCKgood for? You don't seem to use it in this patch?
Trash from previous rebases. Removed. Thanks.
PATCH v2 12/22 virtio: split input bits from virtio-pci
In reply to Juan Quintela--- hw/virtio/Makefile.objs | 1 + hw/virtio/virtio-input-pci.c | 136 +++++++++++++++++++++++++++++++++++ hw/virtio/virtio-pci.c | 112 ----------------------------- 3 files changed, 137 insertions(+), 112 deletions(-) create mode 100644 hw/virtio/virtio-input-pci.c
hw/virtio/Makefile.objs +1 -0
@@ -12,6 +12,7 @@ obj-$(call land,$(CONFIG_VIRTIO_CRYPTO),$(CONFIG_VIRTIO_PCI)) += virtio-crypto-p obj-$(CONFIG_LINUX) += vhost.o vhost-backend.o vhost-user.o obj-$(CONFIG_VHOST_VSOCK) += vhost-vsock.o vhost-vsock-pci.o obj-$(CONFIG_VIRTIO_INPUT_HOST) += virtio-input-host-pci.o +obj-$(CONFIG_VIRTIO_INPUT) += virtio-input-pci.o endif common-obj-$(call lnot,$(call land,$(CONFIG_VIRTIO),$(CONFIG_LINUX))) += vhost-stub.o
hw/virtio/virtio-input-pci.c new file +136 -0
136 lines not on this page · raw message
hw/virtio/virtio-pci.c +0 -112
124 lines not on this page · raw message
Signature · 1 line
2.17.1
Re: [Qemu-devel] [PATCH v2 12/22] virtio: split input bits from virtio-pci
Quoted 32 lines · Juan Quintela
Signed-off-by Juan Quintela <[email protected]>--- hw/virtio/Makefile.objs | 1 + hw/virtio/virtio-input-pci.c | 136 +++++++++++++++++++++++++++++++++++ hw/virtio/virtio-pci.c | 112 ----------------------------- 3 files changed, 137 insertions(+), 112 deletions(-) create mode 100644 hw/virtio/virtio-input-pci.chw/virtio/Makefile.objs +1
-0@@ -12,6 +12,7 @@ obj-$(call land,$(CONFIG_VIRTIO_CRYPTO),$(CONFIG_VIRTIO_PCI)) += virtio-crypto-p obj-$(CONFIG_LINUX) += vhost.o vhost-backend.o vhost-user.o obj-$(CONFIG_VHOST_VSOCK) += vhost-vsock.o vhost-vsock-pci.o obj-$(CONFIG_VIRTIO_INPUT_HOST) += virtio-input-host-pci.o +obj-$(CONFIG_VIRTIO_INPUT) += virtio-input-pci.o endif common-obj-$(call lnot,$(call land,$(CONFIG_VIRTIO),$(CONFIG_LINUX))) += vhost-stub.ohw/virtio/virtio-input-pci.c new file +6
-0@@ -0,0 +1,136 @@ +/* +* Virtio input PCI Bindings +* +* Copyright IBM, Corp. 2007 +* Copyright (c) 2009 CodeSourcery +*
hw/virtio/virtio-input-pci.c line 16
Quoted 10 lines
hw/virtio/virtio-input-pci.c new file +10
-0+* Authors: +* Anthony Liguori <[email protected]> +* Paul Brook <[email protected]> +* +* This work is licensed under the terms of the GNU GPL, version 2. See +* the COPYING file in the top-level directory. +* +* Contributions after 2012-01-13 are licensed under the terms of the +* GNU GPL, version 2 or (at your option) any later version. +*/
virtio-input had been added by Gerd in 2015, so I think you can now switch to the GPLv2+ text only. Apart from that, patch looks fine to me.
Thomas
Re: [Qemu-devel] [PATCH v2 12/22] virtio: split input bits from virtio-pci
Quoted 41 lines · Thomas Huth
Quoted 40 lines · Juan Quintela
Signed-off-by Juan Quintela <[email protected]>--- hw/virtio/Makefile.objs | 1 + hw/virtio/virtio-input-pci.c | 136 +++++++++++++++++++++++++++++++++++ hw/virtio/virtio-pci.c | 112 ----------------------------- 3 files changed, 137 insertions(+), 112 deletions(-) create mode 100644 hw/virtio/virtio-input-pci.chw/virtio/Makefile.objs +0
-0@@ -12,6 +12,7 @@ obj-$(callland,$(CONFIG_VIRTIO_CRYPTO),$(CONFIG_VIRTIO_PCI)) += virtio-crypto-p
obj-$(CONFIG_LINUX) += vhost.o vhost-backend.o vhost-user.o obj-$(CONFIG_VHOST_VSOCK) += vhost-vsock.o vhost-vsock-pci.o obj-$(CONFIG_VIRTIO_INPUT_HOST) += virtio-input-host-pci.o
+obj-$(CONFIG_VIRTIO_INPUT) += virtio-input-pci.o
endifcommon-obj-$(call lnot,$(call
land,$(CONFIG_VIRTIO),$(CONFIG_LINUX))) += vhost-stub.ohw/virtio/virtio-input-pci.c new file +11
-0@@ -0,0 +1,136 @@ +/* +* Virtio input PCI Bindings +* +* Copyright IBM, Corp. 2007 +* Copyright (c) 2009 CodeSourcery +* +* Authors: +* Anthony Liguori <[email protected]> +* Paul Brook <[email protected]> +* +* This work is licensed under the terms of the GNU GPL, version 2. See
Quoted 8 lines
hw/virtio/virtio-input-pci.c line 16
Quoted 5 lines
hw/virtio/virtio-input-pci.c new file +5
-0+* the COPYING file in the top-level directory. +* +* Contributions after 2012-01-13 are licensed under the terms of the +* GNU GPL, version 2 or (at your option) any later version. +*/ virtio-input had been added by Gerd in 2015, so I think you can now switch to the GPLv2+ text only. Apart from that, patch looks fine to me.
Done.
Thanks.
PATCH v2 13/22 virtio: split rng bits from virtio-pci
In reply to Juan Quintela--- hw/virtio/Makefile.objs | 1 + hw/virtio/virtio-pci.c | 52 ------------------------- hw/virtio/virtio-rng-pci.c | 77 ++++++++++++++++++++++++++++++++++++++ tests/Makefile.include | 4 +- 4 files changed, 80 insertions(+), 54 deletions(-) create mode 100644 hw/virtio/virtio-rng-pci.c
hw/virtio/Makefile.objs +1 -0
@@ -13,6 +13,7 @@ obj-$(CONFIG_LINUX) += vhost.o vhost-backend.o vhost-user.o obj-$(CONFIG_VHOST_VSOCK) += vhost-vsock.o vhost-vsock-pci.o obj-$(CONFIG_VIRTIO_INPUT_HOST) += virtio-input-host-pci.o obj-$(CONFIG_VIRTIO_INPUT) += virtio-input-pci.o +obj-$(CONFIG_VIRTIO_RNG) += virtio-rng-pci.o endif common-obj-$(call lnot,$(call land,$(CONFIG_VIRTIO),$(CONFIG_LINUX))) += vhost-stub.o
hw/virtio/virtio-pci.c +0 -52
64 lines not on this page · raw message
hw/virtio/virtio-rng-pci.c new file +77 -0
77 lines not on this page · raw message
tests/Makefile.include +2 -2
@@ -195,8 +195,8 @@ check-qtest-virtio-y += tests/virtio-balloon-test$(EXESUF) gcov-files-virtio-y += i386-softmmu/hw/virtio/virtio-balloon.c check-qtest-virtio-y += tests/virtio-blk-test$(EXESUF) gcov-files-virtio-y += i386-softmmu/hw/block/virtio-blk.c -check-qtest-virtio-y += tests/virtio-rng-test$(EXESUF) -gcov-files-virtio-y += hw/virtio/virtio-rng.c +check-qtest-virtio-$(CONFIG_VIRTIO_RNG) += tests/virtio-rng-test$(EXESUF) +gcov-files-virtio-$(CONFIG_VIRTIO_RNG) += hw/virtio/virtio-rng.c check-qtest-virtio-y += tests/virtio-scsi-test$(EXESUF) gcov-files-virtio-y += i386-softmmu/hw/scsi/virtio-scsi.c ifeq ($(CONFIG_VIRTIO)$(CONFIG_VIRTFS)$(CONFIG_PCI),yyy)
Signature · 1 line
2.17.1
Re: [Qemu-devel] [PATCH v2 13/22] virtio: split rng bits from virtio-pci
Quoted 103 lines · Juan Quintela
Signed-off-by Juan Quintela <[email protected]>--- hw/virtio/Makefile.objs | 1 + hw/virtio/virtio-pci.c | 52 ------------------------- hw/virtio/virtio-rng-pci.c | 77 ++++++++++++++++++++++++++++++++++++++ tests/Makefile.include | 4 +- 4 files changed, 80 insertions(+), 54 deletions(-) create mode 100644 hw/virtio/virtio-rng-pci.chw/virtio/Makefile.objs +1
-0@@ -13,6 +13,7 @@ obj-$(CONFIG_LINUX) += vhost.o vhost-backend.o vhost-user.o obj-$(CONFIG_VHOST_VSOCK) += vhost-vsock.o vhost-vsock-pci.o obj-$(CONFIG_VIRTIO_INPUT_HOST) += virtio-input-host-pci.o obj-$(CONFIG_VIRTIO_INPUT) += virtio-input-pci.o +obj-$(CONFIG_VIRTIO_RNG) += virtio-rng-pci.o endif common-obj-$(call lnot,$(call land,$(CONFIG_VIRTIO),$(CONFIG_LINUX))) += vhost-stub.ohw/virtio/virtio-pci.c +0
-52@@ -2409,57 +2409,6 @@ static const TypeInfo virtio_net_pci_info = { .class_init = virtio_net_pci_class_init, }; -/* virtio-rng-pci */ - -static void virtio_rng_pci_realize (VirtIOPCIProxy *vpci_dev,Error **errp) -{ -VirtIORngPCI *vrng =VIRTIO_RNG_PCI (vpci_dev); -DeviceState *vdev =DEVICE (&vrng->vdev); -Error *err =NULL ; - -qdev_set_parent_bus (vdev,BUS (&vpci_dev->bus)); -object_property_set_bool (OBJECT (vdev), true,"realized" , &err); -if (err) { -error_propagate (errp, err); -return ; - } - -object_property_set_link (OBJECT (vrng), -OBJECT (vrng->vdev.conf.rng),"rng" , -NULL ); -} - -static void virtio_rng_pci_class_init (ObjectClass *klass,void *data) -{ -DeviceClass *dc =DEVICE_CLASS (klass); -VirtioPCIClass *k =VIRTIO_PCI_CLASS (klass); -PCIDeviceClass *pcidev_k =PCI_DEVICE_CLASS (klass); - - k->realize = virtio_rng_pci_realize; -set_bit (DEVICE_CATEGORY_MISC , dc->categories); - - pcidev_k->vendor_id =PCI_VENDOR_ID_REDHAT_QUMRANET ; - pcidev_k->device_id =PCI_DEVICE_ID_VIRTIO_RNG ; - pcidev_k->revision =VIRTIO_PCI_ABI_VERSION ; - pcidev_k->class_id =PCI_CLASS_OTHERS ; -} - -static void virtio_rng_initfn (Object *obj) -{ -VirtIORngPCI *dev =VIRTIO_RNG_PCI (obj); - -virtio_instance_init_common (obj, &dev->vdev,sizeof (dev->vdev), -TYPE_VIRTIO_RNG ); -} - -static const TypeInfo virtio_rng_pci_info = { - .name =TYPE_VIRTIO_RNG_PCI , - .parent =TYPE_VIRTIO_PCI , - .instance_size =sizeof (VirtIORngPCI), - .instance_init = virtio_rng_initfn, - .class_init = virtio_rng_pci_class_init, -}; -/* virtio-pci-bus */ static void virtio_pci_bus_new(VirtioBusState *bus, size_t bus_size,@@ -2507,7 +2456,6 @@ static const TypeInfo virtio_pci_bus_info = {static void virtio_pci_register_types (void ) { -type_register_static (&virtio_rng_pci_info);type_register_static (&virtio_pci_bus_info);type_register_static (&virtio_pci_info);#ifdef CONFIG_VIRTFS hw/virtio/virtio-rng-pci.c new file +6
-0@@ -0,0 +1,77 @@ +/* +* Virtio rng PCI Bindings +* +* Copyright IBM, Corp. 2007 +* Copyright (c) 2009 CodeSourcery +*
hw/virtio/virtio-rng-pci.c line 16
Quoted 10 lines
hw/virtio/virtio-rng-pci.c new file +10
-0+* Authors: +* Anthony Liguori <[email protected]> +* Paul Brook <[email protected]> +* +* This work is licensed under the terms of the GNU GPL, version 2. See +* the COPYING file in the top-level directory. +* +* Contributions after 2012-01-13 are licensed under the terms of the +* GNU GPL, version 2 or (at your option) any later version. +*/
virtio-rng has been added by Amit in June 2012 (see commit 16c915ba42b4) so you can use GPLv2+ text only here, too.
Thomas
(Sorry for being picky here, but these "contributions after ...." texts really look cumbersome to me - we should use this occasion of your rework to clean them up if possible)
PATCH v2 14/22 virtio: split balloon bits from virtio-pci
In reply to Juan Quintela--- hw/virtio/Makefile.objs | 1 + hw/virtio/virtio-balloon-pci.c | 82 ++++++++++++++++++++++++++++++++++ hw/virtio/virtio-pci.c | 57 ----------------------- tests/Makefile.include | 4 +- 4 files changed, 85 insertions(+), 59 deletions(-) create mode 100644 hw/virtio/virtio-balloon-pci.c
hw/virtio/Makefile.objs +1 -0
@@ -14,6 +14,7 @@ obj-$(CONFIG_VHOST_VSOCK) += vhost-vsock.o vhost-vsock-pci.o obj-$(CONFIG_VIRTIO_INPUT_HOST) += virtio-input-host-pci.o obj-$(CONFIG_VIRTIO_INPUT) += virtio-input-pci.o obj-$(CONFIG_VIRTIO_RNG) += virtio-rng-pci.o +obj-$(CONFIG_VIRTIO_BALLOON) += virtio-balloon-pci.o endif common-obj-$(call lnot,$(call land,$(CONFIG_VIRTIO),$(CONFIG_LINUX))) += vhost-stub.o
hw/virtio/virtio-balloon-pci.c new file +82 -0
82 lines not on this page · raw message
hw/virtio/virtio-pci.c +0 -57
69 lines not on this page · raw message
tests/Makefile.include +2 -2
@@ -191,8 +191,8 @@ gcov-files-virtioserial-y += hw/char/virtio-console.c gcov-files-virtio-y += i386-softmmu/hw/virtio/virtio.c check-qtest-virtio-y += tests/virtio-net-test$(EXESUF) gcov-files-virtio-y += i386-softmmu/hw/net/virtio-net.c -check-qtest-virtio-y += tests/virtio-balloon-test$(EXESUF) -gcov-files-virtio-y += i386-softmmu/hw/virtio/virtio-balloon.c +check-qtest-virtio-$(CONFIG_VIRTIO_BALLOON) += tests/virtio-balloon-test$(EXESUF) +gcov-files-virtio-$(CONFIG_VIRTIO_BALLOON) += i386-softmmu/hw/virtio/virtio-balloon.c check-qtest-virtio-y += tests/virtio-blk-test$(EXESUF) gcov-files-virtio-y += i386-softmmu/hw/block/virtio-blk.c check-qtest-virtio-$(CONFIG_VIRTIO_RNG) += tests/virtio-rng-test$(EXESUF)
Signature · 1 line
2.17.1
Re: [Qemu-devel] [PATCH v2 14/22] virtio: split balloon bits from virtio-pci
Quoted 8 lines · Juan Quintela
Signed-off-by Juan Quintela <[email protected]>--- hw/virtio/Makefile.objs | 1 + hw/virtio/virtio-balloon-pci.c | 82 ++++++++++++++++++++++++++++++++++ hw/virtio/virtio-pci.c | 57 ----------------------- tests/Makefile.include | 4 +- 4 files changed, 85 insertions(+), 59 deletions(-) create mode 100644 hw/virtio/virtio-balloon-pci.c
PATCH v2 15/22 virtio: split 9p bits from virtio-pci
In reply to Juan Quintela--- hw/virtio/Makefile.objs | 1 + hw/virtio/virtio-9p-pci.c | 74 +++++++++++++++++++++++++++++++++++++++ hw/virtio/virtio-pci.c | 52 --------------------------- 3 files changed, 75 insertions(+), 52 deletions(-) create mode 100644 hw/virtio/virtio-9p-pci.c
hw/virtio/Makefile.objs +1 -0
@@ -15,6 +15,7 @@ obj-$(CONFIG_VIRTIO_INPUT_HOST) += virtio-input-host-pci.o obj-$(CONFIG_VIRTIO_INPUT) += virtio-input-pci.o obj-$(CONFIG_VIRTIO_RNG) += virtio-rng-pci.o obj-$(CONFIG_VIRTIO_BALLOON) += virtio-balloon-pci.o +obj-$(CONFIG_VIRTIO_9P) += virtio-9p-pci.o endif common-obj-$(call lnot,$(call land,$(CONFIG_VIRTIO),$(CONFIG_LINUX))) += vhost-stub.o
hw/virtio/virtio-9p-pci.c new file +74 -0
74 lines not on this page · raw message
hw/virtio/virtio-pci.c +0 -52
64 lines not on this page · raw message
Signature · 1 line
2.17.1
Re: [Qemu-devel] [PATCH v2 15/22] virtio: split 9p bits from virtio-pci
Quoted 7 lines · Juan Quintela
Signed-off-by Juan Quintela <[email protected]>--- hw/virtio/Makefile.objs | 1 + hw/virtio/virtio-9p-pci.c | 74 +++++++++++++++++++++++++++++++++++++++ hw/virtio/virtio-pci.c | 52 --------------------------- 3 files changed, 75 insertions(+), 52 deletions(-) create mode 100644 hw/virtio/virtio-9p-pci.c
Re: [Qemu-devel] [PATCH v2 15/22] virtio: split 9p bits from virtio-pci
In reply to Juan QuintelaQuoted 7 lines · Juan Quintela
Signed-off-by Juan Quintela <[email protected]>--- hw/virtio/Makefile.objs | 1 + hw/virtio/virtio-9p-pci.c | 74 +++++++++++++++++++++++++++++++++++++++ hw/virtio/virtio-pci.c | 52 --------------------------- 3 files changed, 75 insertions(+), 52 deletions(-) create mode 100644 hw/virtio/virtio-9p-pci.c
PATCH v2 16/22 virtio: split vhost-user-blk bits from virtio-pci
In reply to Juan Quintela--- hw/virtio/Makefile.objs | 1 + hw/virtio/vhost-user-blk-pci.c | 88 ++++++++++++++++++++++++++++++++++ hw/virtio/virtio-pci.c | 60 ----------------------- 3 files changed, 89 insertions(+), 60 deletions(-) create mode 100644 hw/virtio/vhost-user-blk-pci.c
hw/virtio/Makefile.objs +1 -0
@@ -11,6 +11,7 @@ obj-$(call land,$(CONFIG_VIRTIO_CRYPTO),$(CONFIG_VIRTIO_PCI)) += virtio-crypto-p obj-$(CONFIG_LINUX) += vhost.o vhost-backend.o vhost-user.o obj-$(CONFIG_VHOST_VSOCK) += vhost-vsock.o vhost-vsock-pci.o +obj-$(CONFIG_VHOST_USER_BLK) += vhost-user-blk-pci.o obj-$(CONFIG_VIRTIO_INPUT_HOST) += virtio-input-host-pci.o obj-$(CONFIG_VIRTIO_INPUT) += virtio-input-pci.o obj-$(CONFIG_VIRTIO_RNG) += virtio-rng-pci.o
hw/virtio/vhost-user-blk-pci.c new file +88 -0
88 lines not on this page · raw message
hw/virtio/virtio-pci.c +0 -60
72 lines not on this page · raw message
Signature · 1 line
2.17.1
Re: [Qemu-devel] [PATCH v2 16/22] virtio: split vhost-user-blk bits from virtio-pci
Quoted 7 lines · Juan Quintela
Signed-off-by Juan Quintela <[email protected]>--- hw/virtio/Makefile.objs | 1 + hw/virtio/vhost-user-blk-pci.c | 88 ++++++++++++++++++++++++++++++++++ hw/virtio/virtio-pci.c | 60 ----------------------- 3 files changed, 89 insertions(+), 60 deletions(-) create mode 100644 hw/virtio/vhost-user-blk-pci.c
PATCH v2 17/22 virtio: split vhost-user-scsi bits from virtio-pci
In reply to Juan Quintela--- hw/virtio/Makefile.objs | 1 + hw/virtio/vhost-user-scsi-pci.c | 89 +++++++++++++++++++++++++++++++++ hw/virtio/virtio-pci.c | 58 --------------------- 3 files changed, 90 insertions(+), 58 deletions(-) create mode 100644 hw/virtio/vhost-user-scsi-pci.c
hw/virtio/Makefile.objs +1 -0
@@ -12,6 +12,7 @@ obj-$(call land,$(CONFIG_VIRTIO_CRYPTO),$(CONFIG_VIRTIO_PCI)) += virtio-crypto-p obj-$(CONFIG_LINUX) += vhost.o vhost-backend.o vhost-user.o obj-$(CONFIG_VHOST_VSOCK) += vhost-vsock.o vhost-vsock-pci.o obj-$(CONFIG_VHOST_USER_BLK) += vhost-user-blk-pci.o +obj-$(CONFIG_VHOST_USER_SCSI) += vhost-user-scsi-pci.o obj-$(CONFIG_VIRTIO_INPUT_HOST) += virtio-input-host-pci.o obj-$(CONFIG_VIRTIO_INPUT) += virtio-input-pci.o obj-$(CONFIG_VIRTIO_RNG) += virtio-rng-pci.o
hw/virtio/vhost-user-scsi-pci.c new file +89 -0
89 lines not on this page · raw message
hw/virtio/virtio-pci.c +0 -58
70 lines not on this page · raw message
Signature · 1 line
2.17.1
Re: [Qemu-devel] [PATCH v2 17/22] virtio: split vhost-user-scsi bits from virtio-pci
Quoted 32 lines · Juan Quintela
Signed-off-by Juan Quintela <[email protected]>--- hw/virtio/Makefile.objs | 1 + hw/virtio/vhost-user-scsi-pci.c | 89 +++++++++++++++++++++++++++++++++ hw/virtio/virtio-pci.c | 58 --------------------- 3 files changed, 90 insertions(+), 58 deletions(-) create mode 100644 hw/virtio/vhost-user-scsi-pci.chw/virtio/Makefile.objs +1
-0@@ -12,6 +12,7 @@ obj-$(call land,$(CONFIG_VIRTIO_CRYPTO),$(CONFIG_VIRTIO_PCI)) += virtio-crypto-p obj-$(CONFIG_LINUX) += vhost.o vhost-backend.o vhost-user.o obj-$(CONFIG_VHOST_VSOCK) += vhost-vsock.o vhost-vsock-pci.o obj-$(CONFIG_VHOST_USER_BLK) += vhost-user-blk-pci.o +obj-$(CONFIG_VHOST_USER_SCSI) += vhost-user-scsi-pci.o obj-$(CONFIG_VIRTIO_INPUT_HOST) += virtio-input-host-pci.o obj-$(CONFIG_VIRTIO_INPUT) += virtio-input-pci.o obj-$(CONFIG_VIRTIO_RNG) += virtio-rng-pci.ohw/virtio/vhost-user-scsi-pci.c new file +6
-0@@ -0,0 +1,89 @@ +/* +* Virtio PCI Bindings +* +* Copyright IBM, Corp. 2007 +* Copyright (c) 2009 CodeSourcery +*
hw/virtio/vhost-user-scsi-pci.c line 16
Quoted 10 lines
hw/virtio/vhost-user-scsi-pci.c new file +10
-0+* Authors: +* Anthony Liguori <[email protected]> +* Paul Brook <[email protected]> +* +* This work is licensed under the terms of the GNU GPL, version 2. See +* the COPYING file in the top-level directory. +* +* Contributions after 2012-01-13 are licensed under the terms of the +* GNU GPL, version 2 or (at your option) any later version. +*/
The vhost-user-scsi code has been introduced in 2017 by Felipe Franciosi, so I think you could remove the above "Authors" lines, and adjust the GPL license statement to plain GPLv2+ here.
Thomas
PATCH v2 18/22 virtio: split vhost-scsi bits from virtio-pci
In reply to Juan Quintela--- hw/virtio/Makefile.objs | 1 + hw/virtio/vhost-scsi-pci.c | 94 ++++++++++++++++++++++++++++++++++++++ hw/virtio/virtio-pci.c | 59 ------------------------ 3 files changed, 95 insertions(+), 59 deletions(-) create mode 100644 hw/virtio/vhost-scsi-pci.c
hw/virtio/Makefile.objs +1 -0
@@ -13,6 +13,7 @@ obj-$(CONFIG_LINUX) += vhost.o vhost-backend.o vhost-user.o obj-$(CONFIG_VHOST_VSOCK) += vhost-vsock.o vhost-vsock-pci.o obj-$(CONFIG_VHOST_USER_BLK) += vhost-user-blk-pci.o obj-$(CONFIG_VHOST_USER_SCSI) += vhost-user-scsi-pci.o +obj-$(CONFIG_VHOST_SCSI) += vhost-scsi-pci.o obj-$(CONFIG_VIRTIO_INPUT_HOST) += virtio-input-host-pci.o obj-$(CONFIG_VIRTIO_INPUT) += virtio-input-pci.o obj-$(CONFIG_VIRTIO_RNG) += virtio-rng-pci.o
hw/virtio/vhost-scsi-pci.c new file +94 -0
94 lines not on this page · raw message
hw/virtio/virtio-pci.c +0 -59
71 lines not on this page · raw message
Signature · 1 line
2.17.1
Re: [Qemu-devel] [PATCH v2 18/22] virtio: split vhost-scsi bits from virtio-pci
Quoted 32 lines · Juan Quintela
Signed-off-by Juan Quintela <[email protected]>--- hw/virtio/Makefile.objs | 1 + hw/virtio/vhost-scsi-pci.c | 94 ++++++++++++++++++++++++++++++++++++++ hw/virtio/virtio-pci.c | 59 ------------------------ 3 files changed, 95 insertions(+), 59 deletions(-) create mode 100644 hw/virtio/vhost-scsi-pci.chw/virtio/Makefile.objs +1
-0@@ -13,6 +13,7 @@ obj-$(CONFIG_LINUX) += vhost.o vhost-backend.o vhost-user.o obj-$(CONFIG_VHOST_VSOCK) += vhost-vsock.o vhost-vsock-pci.o obj-$(CONFIG_VHOST_USER_BLK) += vhost-user-blk-pci.o obj-$(CONFIG_VHOST_USER_SCSI) += vhost-user-scsi-pci.o +obj-$(CONFIG_VHOST_SCSI) += vhost-scsi-pci.o obj-$(CONFIG_VIRTIO_INPUT_HOST) += virtio-input-host-pci.o obj-$(CONFIG_VIRTIO_INPUT) += virtio-input-pci.o obj-$(CONFIG_VIRTIO_RNG) += virtio-rng-pci.ohw/virtio/vhost-scsi-pci.c new file +6
-0@@ -0,0 +1,94 @@ +/* +* Virtio PCI Bindings +* +* Copyright IBM, Corp. 2007 +* Copyright (c) 2009 CodeSourcery +*
hw/virtio/vhost-scsi-pci.c line 16
Quoted 10 lines
hw/virtio/vhost-scsi-pci.c new file +10
-0+* Authors: +* Anthony Liguori <[email protected]> +* Paul Brook <[email protected]> +* +* This work is licensed under the terms of the GNU GPL, version 2. See +* the COPYING file in the top-level directory. +* +* Contributions after 2012-01-13 are licensed under the terms of the +* GNU GPL, version 2 or (at your option) any later version. +*/
vhost-scsi has been added in 2013 by Nicholas Bellinger, so you can simplify the above header comment, too.
Thomas
PATCH v2 19/22 virtio: split virtio-scsi bits from virtio-pci
In reply to Juan QuintelaNotice that we can't still run tests with it disabled. Both cdrom-test and drive_del-test use virtio-scsi without checking if it is enabled.
--- hw/virtio/Makefile.objs | 1 + hw/virtio/virtio-pci.c | 68 --------------------------- hw/virtio/virtio-scsi-pci.c | 93 +++++++++++++++++++++++++++++++++++++ tests/Makefile.include | 4 +- 4 files changed, 96 insertions(+), 70 deletions(-) create mode 100644 hw/virtio/virtio-scsi-pci.c
hw/virtio/Makefile.objs +1 -0
@@ -19,6 +19,7 @@ obj-$(CONFIG_VIRTIO_INPUT) += virtio-input-pci.o obj-$(CONFIG_VIRTIO_RNG) += virtio-rng-pci.o obj-$(CONFIG_VIRTIO_BALLOON) += virtio-balloon-pci.o obj-$(CONFIG_VIRTIO_9P) += virtio-9p-pci.o +obj-$(CONFIG_VIRTIO_SCSI) += virtio-scsi-pci.o endif common-obj-$(call lnot,$(call land,$(CONFIG_VIRTIO),$(CONFIG_LINUX))) += vhost-stub.o
hw/virtio/virtio-pci.c +0 -68
80 lines not on this page · raw message
hw/virtio/virtio-scsi-pci.c new file +93 -0
93 lines not on this page · raw message
tests/Makefile.include +2 -2
@@ -197,8 +197,8 @@ check-qtest-virtio-y += tests/virtio-blk-test$(EXESUF) gcov-files-virtio-y += i386-softmmu/hw/block/virtio-blk.c check-qtest-virtio-$(CONFIG_VIRTIO_RNG) += tests/virtio-rng-test$(EXESUF) gcov-files-virtio-$(CONFIG_VIRTIO_RNG) += hw/virtio/virtio-rng.c -check-qtest-virtio-y += tests/virtio-scsi-test$(EXESUF) -gcov-files-virtio-y += i386-softmmu/hw/scsi/virtio-scsi.c +check-qtest-virtio-$(CONFIG_VIRTIO_SCSI) += tests/virtio-scsi-test$(EXESUF) +gcov-files-virtio-$(CONFIG_VIRTIO_SCSI) += i386-softmmu/hw/scsi/virtio-scsi.c ifeq ($(CONFIG_VIRTIO)$(CONFIG_VIRTFS)$(CONFIG_PCI),yyy) check-qtest-virtio-y += tests/virtio-9p-test$(EXESUF) gcov-files-virtio-y += hw/9pfs/virtio-9p.c
Signature · 1 line
2.17.1
Re: [Qemu-devel] [PATCH v2 19/22] virtio: split virtio-scsi bits from virtio-pci
Quoted 11 lines · Juan Quintela
Notice that we can't still run tests with it disabled. Both cdrom-test and drive_del-test use virtio-scsi without checking if it is enabled.
Signed-off-by Juan Quintela <[email protected]>--- hw/virtio/Makefile.objs | 1 + hw/virtio/virtio-pci.c | 68 --------------------------- hw/virtio/virtio-scsi-pci.c | 93 +++++++++++++++++++++++++++++++++++++ tests/Makefile.include | 4 +- 4 files changed, 96 insertions(+), 70 deletions(-) create mode 100644 hw/virtio/virtio-scsi-pci.c
PATCH v2 20/22 virtio: split virtio-blk bits rom virtio-pci
In reply to Juan Quintela--- hw/virtio/Makefile.objs | 1 + hw/virtio/virtio-blk-pci.c | 82 ++++++++++++++++++++++++++++++++++++++ hw/virtio/virtio-pci.c | 58 --------------------------- tests/Makefile.include | 4 +- 4 files changed, 85 insertions(+), 60 deletions(-) create mode 100644 hw/virtio/virtio-blk-pci.c
hw/virtio/Makefile.objs +1 -0
@@ -20,6 +20,7 @@ obj-$(CONFIG_VIRTIO_RNG) += virtio-rng-pci.o obj-$(CONFIG_VIRTIO_BALLOON) += virtio-balloon-pci.o obj-$(CONFIG_VIRTIO_9P) += virtio-9p-pci.o obj-$(CONFIG_VIRTIO_SCSI) += virtio-scsi-pci.o +obj-$(CONFIG_VIRTIO_BLK) += virtio-blk-pci.o endif common-obj-$(call lnot,$(call land,$(CONFIG_VIRTIO),$(CONFIG_LINUX))) += vhost-stub.o
hw/virtio/virtio-blk-pci.c new file +82 -0
82 lines not on this page · raw message
hw/virtio/virtio-pci.c +0 -58
70 lines not on this page · raw message
tests/Makefile.include +2 -2
@@ -193,8 +193,8 @@ check-qtest-virtio-y += tests/virtio-net-test$(EXESUF) gcov-files-virtio-y += i386-softmmu/hw/net/virtio-net.c check-qtest-virtio-$(CONFIG_VIRTIO_BALLOON) += tests/virtio-balloon-test$(EXESUF) gcov-files-virtio-$(CONFIG_VIRTIO_BALLOON) += i386-softmmu/hw/virtio/virtio-balloon.c -check-qtest-virtio-y += tests/virtio-blk-test$(EXESUF) -gcov-files-virtio-y += i386-softmmu/hw/block/virtio-blk.c +check-qtest-virtio-$(CONFIG_VIRTIO_BLK) += tests/virtio-blk-test$(EXESUF) +gcov-files-virtio-$(CONFIG_VIRTIO_BLK) += i386-softmmu/hw/block/virtio-blk.c check-qtest-virtio-$(CONFIG_VIRTIO_RNG) += tests/virtio-rng-test$(EXESUF) gcov-files-virtio-$(CONFIG_VIRTIO_RNG) += hw/virtio/virtio-rng.c check-qtest-virtio-$(CONFIG_VIRTIO_SCSI) += tests/virtio-scsi-test$(EXESUF)
Signature · 1 line
2.17.1
Re: [Qemu-devel] [PATCH v2 20/22] virtio: split virtio-blk bits rom virtio-pci
Quoted 8 lines · Juan Quintela
Signed-off-by Juan Quintela <[email protected]>--- hw/virtio/Makefile.objs | 1 + hw/virtio/virtio-blk-pci.c | 82 ++++++++++++++++++++++++++++++++++++++ hw/virtio/virtio-pci.c | 58 --------------------------- tests/Makefile.include | 4 +- 4 files changed, 85 insertions(+), 60 deletions(-) create mode 100644 hw/virtio/virtio-blk-pci.c
PATCH v2 21/22 virtio: split virtio-net bits rom virtio-pci
In reply to Juan Quintela--- hw/virtio/Makefile.objs | 1 + hw/virtio/virtio-net-pci.c | 81 ++++++++++++++++++++++++++++++++++++++ hw/virtio/virtio-pci.c | 56 -------------------------- tests/Makefile.include | 4 +- 4 files changed, 84 insertions(+), 58 deletions(-) create mode 100644 hw/virtio/virtio-net-pci.c
hw/virtio/Makefile.objs +1 -0
@@ -21,6 +21,7 @@ obj-$(CONFIG_VIRTIO_BALLOON) += virtio-balloon-pci.o obj-$(CONFIG_VIRTIO_9P) += virtio-9p-pci.o obj-$(CONFIG_VIRTIO_SCSI) += virtio-scsi-pci.o obj-$(CONFIG_VIRTIO_BLK) += virtio-blk-pci.o +obj-$(CONFIG_VIRTIO_NET) += virtio-net-pci.o endif common-obj-$(call lnot,$(call land,$(CONFIG_VIRTIO),$(CONFIG_LINUX))) += vhost-stub.o
hw/virtio/virtio-net-pci.c new file +81 -0
81 lines not on this page · raw message
hw/virtio/virtio-pci.c +0 -56
68 lines not on this page · raw message
tests/Makefile.include +2 -2
@@ -189,8 +189,8 @@ check-qtest-virtioserial-y += tests/virtio-console-test$(EXESUF) gcov-files-virtioserial-y += hw/char/virtio-console.c gcov-files-virtio-y += i386-softmmu/hw/virtio/virtio.c -check-qtest-virtio-y += tests/virtio-net-test$(EXESUF) -gcov-files-virtio-y += i386-softmmu/hw/net/virtio-net.c +check-qtest-virtio-$(CONFIG_VIRTIO_NET) += tests/virtio-net-test$(EXESUF) +gcov-files-virtio-$(CONFIG_VIRTIO_NET) += i386-softmmu/hw/net/virtio-net.c check-qtest-virtio-$(CONFIG_VIRTIO_BALLOON) += tests/virtio-balloon-test$(EXESUF) gcov-files-virtio-$(CONFIG_VIRTIO_BALLOON) += i386-softmmu/hw/virtio/virtio-balloon.c check-qtest-virtio-$(CONFIG_VIRTIO_BLK) += tests/virtio-blk-test$(EXESUF)
Signature · 1 line
2.17.1
Re: [Qemu-devel] [PATCH v2 21/22] virtio: split virtio-net bits rom virtio-pci
Quoted 188 lines · Juan Quintela
Signed-off-by Juan Quintela <[email protected]>--- hw/virtio/Makefile.objs | 1 + hw/virtio/virtio-net-pci.c | 81 ++++++++++++++++++++++++++++++++++++++ hw/virtio/virtio-pci.c | 56 -------------------------- tests/Makefile.include | 4 +- 4 files changed, 84 insertions(+), 58 deletions(-) create mode 100644 hw/virtio/virtio-net-pci.chw/virtio/Makefile.objs +1
-0@@ -21,6 +21,7 @@ obj-$(CONFIG_VIRTIO_BALLOON) += virtio-balloon-pci.o obj-$(CONFIG_VIRTIO_9P) += virtio-9p-pci.o obj-$(CONFIG_VIRTIO_SCSI) += virtio-scsi-pci.o obj-$(CONFIG_VIRTIO_BLK) += virtio-blk-pci.o +obj-$(CONFIG_VIRTIO_NET) += virtio-net-pci.o endif common-obj-$(call lnot,$(call land,$(CONFIG_VIRTIO),$(CONFIG_LINUX))) += vhost-stub.ohw/virtio/virtio-net-pci.c new file +81
-0@@ -0,0 +1,81 @@ +/* +* Virtio net PCI Bindings +* +* Copyright IBM, Corp. 2007 +* Copyright (c) 2009 CodeSourcery +* +* Authors: +* Anthony Liguori <[email protected]> +* Paul Brook <[email protected]> +* +* This work is licensed under the terms of the GNU GPL, version 2. See +* the COPYING file in the top-level directory. +* +* Contributions after 2012-01-13 are licensed under the terms of the +* GNU GPL, version 2 or (at your option) any later version. +*/ + +#include "qemu/osdep.h" + +#include "virtio-pci.h" +#include "qapi/error.h" + +static Property virtio_net_properties[] = { +DEFINE_PROP_BIT ("ioeventfd" , VirtIOPCIProxy, flags, +VIRTIO_PCI_FLAG_USE_IOEVENTFD_BIT , true), +DEFINE_PROP_UINT32 ("vectors" , VirtIOPCIProxy, nvectors,3 ), +DEFINE_PROP_END_OF_LIST (), +}; + +static void virtio_net_pci_realize (VirtIOPCIProxy *vpci_dev,Error **errp) +{ +DeviceState *qdev =DEVICE (vpci_dev); +VirtIONetPCI *dev =VIRTIO_NET_PCI (vpci_dev); +DeviceState *vdev =DEVICE (&dev->vdev); + +virtio_net_set_netclient_name (&dev->vdev, qdev->id, +object_get_typename (OBJECT (qdev))); +qdev_set_parent_bus (vdev,BUS (&vpci_dev->bus)); +object_property_set_bool (OBJECT (vdev), true,"realized" , errp); +} + +static void virtio_net_pci_class_init (ObjectClass *klass,void *data) +{ +DeviceClass *dc =DEVICE_CLASS (klass); +PCIDeviceClass *k =PCI_DEVICE_CLASS (klass); +VirtioPCIClass *vpciklass =VIRTIO_PCI_CLASS (klass); + + k->romfile ="efi-virtio.rom" ; + k->vendor_id =PCI_VENDOR_ID_REDHAT_QUMRANET ; + k->device_id =PCI_DEVICE_ID_VIRTIO_NET ; + k->revision =VIRTIO_PCI_ABI_VERSION ; + k->class_id =PCI_CLASS_NETWORK_ETHERNET ; +set_bit (DEVICE_CATEGORY_NETWORK , dc->categories); + dc->props = virtio_net_properties; + vpciklass->realize = virtio_net_pci_realize; +} + +static void virtio_net_pci_instance_init (Object *obj) +{ +VirtIONetPCI *dev =VIRTIO_NET_PCI (obj); + +virtio_instance_init_common (obj, &dev->vdev,sizeof (dev->vdev), +TYPE_VIRTIO_NET ); +object_property_add_alias (obj,"bootindex" ,OBJECT (&dev->vdev), +"bootindex" , &error_abort); +} + +static const TypeInfo virtio_net_pci_info = { + .name =TYPE_VIRTIO_NET_PCI , + .parent =TYPE_VIRTIO_PCI , + .instance_size =sizeof (VirtIONetPCI), + .instance_init = virtio_net_pci_instance_init, + .class_init = virtio_net_pci_class_init, +}; + +static void virtio_net_pci_register (void ) +{ +type_register_static (&virtio_net_pci_info); +} + +type_init (virtio_net_pci_register)hw/virtio/virtio-pci.c +0
-56@@ -1957,61 +1957,6 @@ static const TypeInfo virtio_serial_pci_info = { .class_init = virtio_serial_pci_class_init, }; -/* virtio-net-pci */ - -static Property virtio_net_properties[] = { -DEFINE_PROP_BIT ("ioeventfd" , VirtIOPCIProxy, flags, -VIRTIO_PCI_FLAG_USE_IOEVENTFD_BIT , true), -DEFINE_PROP_UINT32 ("vectors" , VirtIOPCIProxy, nvectors,3 ), -DEFINE_PROP_END_OF_LIST (), -}; - -static void virtio_net_pci_realize (VirtIOPCIProxy *vpci_dev,Error **errp) -{ -DeviceState *qdev =DEVICE (vpci_dev); -VirtIONetPCI *dev =VIRTIO_NET_PCI (vpci_dev); -DeviceState *vdev =DEVICE (&dev->vdev); - -virtio_net_set_netclient_name (&dev->vdev, qdev->id, -object_get_typename (OBJECT (qdev))); -qdev_set_parent_bus (vdev,BUS (&vpci_dev->bus)); -object_property_set_bool (OBJECT (vdev), true,"realized" , errp); -} - -static void virtio_net_pci_class_init (ObjectClass *klass,void *data) -{ -DeviceClass *dc =DEVICE_CLASS (klass); -PCIDeviceClass *k =PCI_DEVICE_CLASS (klass); -VirtioPCIClass *vpciklass =VIRTIO_PCI_CLASS (klass); - - k->romfile ="efi-virtio.rom" ; - k->vendor_id =PCI_VENDOR_ID_REDHAT_QUMRANET ; - k->device_id =PCI_DEVICE_ID_VIRTIO_NET ; - k->revision =VIRTIO_PCI_ABI_VERSION ; - k->class_id =PCI_CLASS_NETWORK_ETHERNET ; -set_bit (DEVICE_CATEGORY_NETWORK , dc->categories); - dc->props = virtio_net_properties; - vpciklass->realize = virtio_net_pci_realize; -} - -static void virtio_net_pci_instance_init (Object *obj) -{ -VirtIONetPCI *dev =VIRTIO_NET_PCI (obj); - -virtio_instance_init_common (obj, &dev->vdev,sizeof (dev->vdev), -TYPE_VIRTIO_NET ); -object_property_add_alias (obj,"bootindex" ,OBJECT (&dev->vdev), -"bootindex" , &error_abort); -} - -static const TypeInfo virtio_net_pci_info = { - .name =TYPE_VIRTIO_NET_PCI , - .parent =TYPE_VIRTIO_PCI , - .instance_size =sizeof (VirtIONetPCI), - .instance_init = virtio_net_pci_instance_init, - .class_init = virtio_net_pci_class_init, -}; -/* virtio-pci-bus */ static void virtio_pci_bus_new(VirtioBusState *bus, size_t bus_size,@@ -2062,7 +2007,6 @@ static void virtio_pci_register_types(void)type_register_static (&virtio_pci_bus_info);type_register_static (&virtio_pci_info);type_register_static (&virtio_serial_pci_info); -type_register_static (&virtio_net_pci_info); }type_init (virtio_pci_register_types)tests/Makefile.include +0
-0
tests/Makefile.include check-qtest-virtioserial-y += tests/virtio-console-test$(EXESUF) · line 196
Quoted 10 lines
tests/Makefile.include +2
-2@@ -189,8 +189,8 @@ check-qtest-virtioserial-y += tests/virtio-console-test$(EXESUF) gcov-files-virtioserial-y += hw/char/virtio-console.c gcov-files-virtio-y += i386-softmmu/hw/virtio/virtio.c -check-qtest-virtio-y += tests/virtio-net-test$(EXESUF) -gcov-files-virtio-y += i386-softmmu/hw/net/virtio-net.c +check-qtest-virtio-$(CONFIG_VIRTIO_NET) += tests/virtio-net-test$(EXESUF) +gcov-files-virtio-$(CONFIG_VIRTIO_NET) += i386-softmmu/hw/net/virtio-net.c check-qtest-virtio-$(CONFIG_VIRTIO_BALLOON) += tests/virtio-balloon-test$(EXESUF) gcov-files-virtio-$(CONFIG_VIRTIO_BALLOON) += i386-softmmu/hw/virtio/virtio-balloon.c check-qtest-virtio-$(CONFIG_VIRTIO_BLK) += tests/virtio-blk-test$(EXESUF)
PATCH v2 22/22 virtio: split virtio-serial bits rom virtio-pci
In reply to Juan Quintela--- hw/virtio/Makefile.objs | 1 + hw/virtio/virtio-pci.c | 74 -------------------------- hw/virtio/virtio-serial-pci.c | 97 +++++++++++++++++++++++++++++++++++ tests/Makefile.include | 12 ++--- 4 files changed, 104 insertions(+), 80 deletions(-) create mode 100644 hw/virtio/virtio-serial-pci.c
hw/virtio/Makefile.objs +1 -0
@@ -22,6 +22,7 @@ obj-$(CONFIG_VIRTIO_9P) += virtio-9p-pci.o obj-$(CONFIG_VIRTIO_SCSI) += virtio-scsi-pci.o obj-$(CONFIG_VIRTIO_BLK) += virtio-blk-pci.o obj-$(CONFIG_VIRTIO_NET) += virtio-net-pci.o +obj-$(CONFIG_VIRTIO_SERIAL) += virtio-serial-pci.o endif common-obj-$(call lnot,$(call land,$(CONFIG_VIRTIO),$(CONFIG_LINUX))) += vhost-stub.o
hw/virtio/virtio-pci.c +0 -74
86 lines not on this page · raw message
hw/virtio/virtio-serial-pci.c new file +97 -0
97 lines not on this page · raw message
tests/Makefile.include +6 -6
@@ -143,7 +143,7 @@ check-unit-y += tests/test-crypto-secret$(EXESUF) check-unit-$(CONFIG_GNUTLS) += tests/test-crypto-tlscredsx509$(EXESUF) check-unit-$(CONFIG_GNUTLS) += tests/test-crypto-tlssession$(EXESUF) ifneq (,$(findstring qemu-ga,$(TOOLS))) -check-unit-$(CONFIG_LINUX) += tests/test-qga$(EXESUF) +check-unit-$(land,$(CONFIG_LINUX),$(CONFIG_VIRTIO_SERIAL)) += tests/test-qga$(EXESUF) endif check-unit-y += tests/test-timed-average$(EXESUF) check-unit-y += tests/test-util-sockets$(EXESUF)
@@ -185,8 +185,8 @@ gcov-files-ipack-y += hw/ipack/ipack.c check-qtest-ipack-y += tests/ipoctal232-test$(EXESUF) gcov-files-ipack-y += hw/char/ipoctal232.c -check-qtest-virtioserial-y += tests/virtio-console-test$(EXESUF) -gcov-files-virtioserial-y += hw/char/virtio-console.c +check-qtest-virtioserial-$(CONFIG_VIRTIO_SERIAL) += tests/virtio-console-test$(EXESUF) +gcov-files-virtioserial-$(CONFIG_VIRTIO_SERIAL) += hw/char/virtio-console.c gcov-files-virtio-y += i386-softmmu/hw/virtio/virtio.c check-qtest-virtio-$(CONFIG_VIRTIO_NET) += tests/virtio-net-test$(EXESUF)
@@ -204,8 +204,8 @@ check-qtest-virtio-y += tests/virtio-9p-test$(EXESUF) gcov-files-virtio-y += hw/9pfs/virtio-9p.c gcov-files-virtio-y += i386-softmmu/hw/9pfs/virtio-9p-device.c endif -check-qtest-virtio-y += tests/virtio-serial-test$(EXESUF) -gcov-files-virtio-y += i386-softmmu/hw/char/virtio-serial-bus.c +check-qtest-virtio-$(CONFIG_VIRTIO_SERIAL) += tests/virtio-serial-test$(EXESUF) +gcov-files-virtio-$(CONFIG_VIRTIO_SERIAL) += i386-softmmu/hw/char/virtio-serial-bus.c check-qtest-virtio-y += $(check-qtest-virtioserial-y) gcov-files-virtio-y += $(gcov-files-virtioserial-y)
@@ -402,7 +402,7 @@ check-qtest-s390x-$(CONFIG_POSIX) += tests/test-filter-redirector$(EXESUF) check-qtest-s390x-y += tests/drive_del-test$(EXESUF) check-qtest-s390x-y += tests/virtio-balloon-test$(EXESUF) check-qtest-s390x-y += tests/virtio-console-test$(EXESUF) -check-qtest-s390x-y += tests/virtio-serial-test$(EXESUF) +check-qtest-s390x-$(CONFIG_VIRTIO_SERIAL) += tests/virtio-serial-test$(EXESUF) check-qtest-s390x-y += tests/cpu-plug-test$(EXESUF) check-qtest-generic-y += tests/machine-none-test$(EXESUF)
Signature · 1 line
2.17.1
Re: [Qemu-devel] [PATCH v2 22/22] virtio: split virtio-serial bits rom virtio-pci
Quoted 8 lines · Juan Quintela
Signed-off-by Juan Quintela <[email protected]>--- hw/virtio/Makefile.objs | 1 + hw/virtio/virtio-pci.c | 74 -------------------------- hw/virtio/virtio-serial-pci.c | 97 +++++++++++++++++++++++++++++++++++ tests/Makefile.include | 12 ++--- 4 files changed, 104 insertions(+), 80 deletions(-) create mode 100644 hw/virtio/virtio-serial-pci.c
[...]
tests/Makefile.include check-unit-y += tests/test-crypto-secret$(EXESUF) · line 146
Quoted 10 lines
tests/Makefile.include +1
-1@@ -143,7 +143,7 @@ check-unit-y += tests/test-crypto-secret$(EXESUF) check-unit-$(CONFIG_GNUTLS) += tests/test-crypto-tlscredsx509$(EXESUF) check-unit-$(CONFIG_GNUTLS) += tests/test-crypto-tlssession$(EXESUF) ifneq (,$(findstring qemu-ga,$(TOOLS))) -check-unit-$(CONFIG_LINUX) += tests/test-qga$(EXESUF) +check-unit-$(land,$(CONFIG_LINUX),$(CONFIG_VIRTIO_SERIAL)) += tests/test-qga$(EXESUF)
Maybe mention qga's dependency in the patch description?
Anyway:
Quoted 5 lines · Juan Quintela
Hi
First the things I didn'~t touch:
-CONFIG_FOOin source files (scsi mainly) Paolo said that there are people working on that
IIRC I was referring to tests, so basically the first half of this series. The virtio-pci bits look great though.
Paolo
Quoted 9 lines
- usb: it is a mess how things are entangled there
- acpi options (like hotplug etc); another entanglementSo, what is there?
- the bits that didn't got reviewed on previous iteration
- virtio-pci: As Thomas did something for s390, I did the bits for virtio-pci.I am able now to disable all virtio-pci devices, and run make tests. This is my current virtio bits: