qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [RFC PATCH v2 00/22] More patches to disable stuff
@ 2018-08-08 11:48 Juan Quintela
  2018-08-08 11:48 ` [Qemu-devel] [PATCH v2 01/22] configure: We don't want to clean configuration files Juan Quintela
                   ` (22 more replies)
  0 siblings, 23 replies; 72+ messages in thread
From: Juan Quintela @ 2018-08-08 11:48 UTC (permalink / raw)
  To: qemu-devel; +Cc: dgilbert, lvivier, peterx

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=y
CONFIG_VIRTIO_CRYPTO=y
CONFIG_VIRTIO_GPU=y
CONFIG_SCSI=y
CONFIG_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

-- 
2.17.1

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

end of thread, other threads:[~2018-08-24 13:14 UTC | newest]

Thread overview: 72+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-08 11:48 [Qemu-devel] [RFC PATCH v2 00/22] More patches to disable stuff Juan Quintela
2018-08-08 11:48 ` [Qemu-devel] [PATCH v2 01/22] configure: We don't want to clean configuration files Juan Quintela
2018-08-08 11:48 ` [Qemu-devel] [PATCH v2 02/22] config: CONFIG_SERIAL* is already in pci.mak Juan Quintela
2018-08-08 12:00   ` Thomas Huth
2018-08-10 10:19   ` Paolo Bonzini
2018-08-10 11:06     ` Juan Quintela
2018-08-10 12:08       ` Paolo Bonzini
2018-08-14 11:40     ` Juan Quintela
2018-08-14 11:52       ` Paolo Bonzini
2018-08-14 12:06         ` Peter Maydell
2018-08-14 12:56           ` Paolo Bonzini
2018-08-14 12:57             ` Peter Maydell
2018-08-14 13:05               ` Paolo Bonzini
2018-08-14 13:31           ` Juan Quintela
2018-08-08 11:48 ` [Qemu-devel] [PATCH v2 03/22] check: Use land/lor when possible Juan Quintela
2018-08-08 11:48 ` [Qemu-devel] [PATCH v2 04/22] check: Only test isa-testdev when it is compiled in Juan Quintela
2018-08-08 12:03   ` Thomas Huth
2018-08-10 10:20   ` Paolo Bonzini
2018-08-10 11:08     ` Juan Quintela
2018-08-10 12:11       ` Paolo Bonzini
2018-08-10 15:17         ` Juan Quintela
2018-08-13 11:31           ` Paolo Bonzini
2018-08-08 11:48 ` [Qemu-devel] [PATCH v2 05/22] check: Only test usb-xhci-nec " Juan Quintela
2018-08-08 12:06   ` Thomas Huth
2018-08-08 17:02     ` Juan Quintela
2018-08-09  5:28       ` Thomas Huth
2018-08-08 11:48 ` [Qemu-devel] [PATCH v2 06/22] i386-softmmu: Configuration is identical to x86_64-softmmu Juan Quintela
2018-08-08 12:10   ` Thomas Huth
2018-08-08 16:59     ` Juan Quintela
2018-08-08 11:48 ` [Qemu-devel] [PATCH v2 07/22] check: Only test ivshm when it is compiled in Juan Quintela
2018-08-08 11:48 ` [Qemu-devel] [PATCH v2 08/22] check: Only test tpm devices when they are " Juan Quintela
2018-08-08 12:11   ` Thomas Huth
2018-08-08 11:48 ` [Qemu-devel] [PATCH v2 09/22] virtio: Remove unneeded includes Juan Quintela
2018-08-08 13:11   ` Thomas Huth
2018-08-09 19:03   ` Dr. David Alan Gilbert
2018-08-09 22:56     ` Michael S. Tsirkin
2018-08-10  7:34       ` Juan Quintela
2018-08-10  9:29         ` Michael S. Tsirkin
2018-08-10 10:01           ` Juan Quintela
2018-08-10 10:17             ` Michael S. Tsirkin
2018-08-10 11:08               ` Juan Quintela
2018-08-08 11:48 ` [Qemu-devel] [PATCH v2 10/22] virtio: split vsock bits from virtio-pci Juan Quintela
2018-08-08 12:18   ` Thomas Huth
2018-08-09 19:10     ` Dr. David Alan Gilbert
2018-08-08 11:48 ` [Qemu-devel] [PATCH v2 11/22] virtio: split host " Juan Quintela
2018-08-09  6:10   ` Thomas Huth
2018-08-24 13:00     ` Juan Quintela
2018-08-08 11:48 ` [Qemu-devel] [PATCH v2 12/22] virtio: split input " Juan Quintela
2018-08-09  6:17   ` Thomas Huth
2018-08-24 13:14     ` Juan Quintela
2018-08-08 11:48 ` [Qemu-devel] [PATCH v2 13/22] virtio: split rng " Juan Quintela
2018-08-09  6:22   ` Thomas Huth
2018-08-08 11:48 ` [Qemu-devel] [PATCH v2 14/22] virtio: split balloon " Juan Quintela
2018-08-15 15:32   ` Thomas Huth
2018-08-08 11:48 ` [Qemu-devel] [PATCH v2 15/22] virtio: split 9p " Juan Quintela
2018-08-15 15:37   ` Thomas Huth
2018-08-15 15:40   ` Thomas Huth
2018-08-08 11:48 ` [Qemu-devel] [PATCH v2 16/22] virtio: split vhost-user-blk " Juan Quintela
2018-08-15 15:40   ` Thomas Huth
2018-08-08 11:48 ` [Qemu-devel] [PATCH v2 17/22] virtio: split vhost-user-scsi " Juan Quintela
2018-08-15 16:18   ` Thomas Huth
2018-08-08 11:48 ` [Qemu-devel] [PATCH v2 18/22] virtio: split vhost-scsi " Juan Quintela
2018-08-15 16:21   ` Thomas Huth
2018-08-08 11:48 ` [Qemu-devel] [PATCH v2 19/22] virtio: split virtio-scsi " Juan Quintela
2018-08-15 16:30   ` Thomas Huth
2018-08-08 11:48 ` [Qemu-devel] [PATCH v2 20/22] virtio: split virtio-blk bits rom virtio-pci Juan Quintela
2018-08-16  7:12   ` Thomas Huth
2018-08-08 11:48 ` [Qemu-devel] [PATCH v2 21/22] virtio: split virtio-net " Juan Quintela
2018-08-16  7:14   ` Thomas Huth
2018-08-08 11:48 ` [Qemu-devel] [PATCH v2 22/22] virtio: split virtio-serial " Juan Quintela
2018-08-16  7:24   ` Thomas Huth
2018-08-10 10:22 ` [Qemu-devel] [RFC PATCH v2 00/22] More patches to disable stuff Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).