[PATCH v2 0/8] user-mode: Prune build dependencies (part 2)

Philippe Mathieu-Daudé posted 8 patches 4 years, 1 month ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20200316000348.29692-1-philmd@redhat.com
Test docker-mingw@fedora passed
Test docker-quick@centos7 passed
Test checkpatch passed
Test FreeBSD passed
Test asan passed
Maintainers: Ronnie Sahlberg <ronniesahlberg@gmail.com>, Ben Warren <ben@skyportsystems.com>, Richard Henderson <rth@twiddle.net>, "Dr. David Alan Gilbert" <dgilbert@redhat.com>, "Michael S. Tsirkin" <mst@redhat.com>, Peter Lieven <pl@kamp.de>, "Daniel P. Berrangé" <berrange@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, Eric Blake <eblake@redhat.com>, Eduardo Habkost <ehabkost@redhat.com>, Igor Mammedov <imammedo@redhat.com>, Markus Armbruster <armbru@redhat.com>, David Hildenbrand <david@redhat.com>, Marcel Apfelbaum <marcel.apfelbaum@gmail.com>, Max Reitz <mreitz@redhat.com>, Kevin Wolf <kwolf@redhat.com>
There is a newer version of this series
qapi/block-core.json                 |  30 ++
qapi/machine-target.json             |  45 ++
qapi/machine.json                    | 766 +++++++++++++++++++++++++--
qapi/misc.json                       | 756 --------------------------
include/hw/acpi/acpi_dev_interface.h |   2 +-
include/hw/mem/memory-device.h       |   1 +
include/hw/rtc/mc146818rtc.h         |   2 +-
include/hw/virtio/virtio-pmem.h      |   2 +-
include/sysemu/balloon.h             |   2 +-
balloon.c                            |   2 +-
block/iscsi.c                        |   2 +-
hw/acpi/core.c                       |   2 +-
hw/acpi/cpu.c                        |   2 +-
hw/acpi/memory_hotplug.c             |   2 +-
hw/acpi/vmgenid.c                    |   2 +-
hw/core/qdev-properties.c            |   1 +
hw/i386/kvm/i8254.c                  |   2 +-
hw/pci/pci-stub.c                    |   2 +-
hw/pci/pci.c                         |   2 +-
hw/virtio/virtio-balloon.c           |   2 +-
monitor/hmp-cmds.c                   |   1 +
stubs/uuid.c                         |   2 +-
stubs/vmgenid.c                      |   2 +-
target/i386/cpu.c                    |   2 +-
target/i386/machine-stub.c           |  22 +
target/i386/Makefile.objs            |   3 +-
26 files changed, 843 insertions(+), 816 deletions(-)
create mode 100644 target/i386/machine-stub.c
[PATCH v2 0/8] user-mode: Prune build dependencies (part 2)
Posted by Philippe Mathieu-Daudé 4 years, 1 month ago
This is the second part of a series reducing user-mode
dependencies. By stripping out unused code, the build
and testing time is reduced (as is space used by objects).

Part 2:
- Extract code not related to user-mode from qapi/misc.json

Since v1:
- Do not extract the 'add_client' command (elmarco)

v1: https://www.mail-archive.com/qemu-block@nongnu.org/msg63284.html

Based-on: <i20200315235716.28448-1-philmd@redhat.com>

Philippe Mathieu-Daudé (8):
  target/i386: Restrict X86CPUFeatureWord to X86 targets
  qapi/misc: Restrict LostTickPolicy enum to machine code
  qapi/misc: Restrict balloon-related commands to machine code
  qapi/misc: Move query-uuid command with block code
  qapi/misc: Restrict query-vm-generation-id command to machine code
  qapi/misc: Restrict ACPI commands to machine code
  qapi/misc: Restrict PCI commands to machine code
  qapi/misc: Restrict device memory commands to machine code

 qapi/block-core.json                 |  30 ++
 qapi/machine-target.json             |  45 ++
 qapi/machine.json                    | 766 +++++++++++++++++++++++++--
 qapi/misc.json                       | 756 --------------------------
 include/hw/acpi/acpi_dev_interface.h |   2 +-
 include/hw/mem/memory-device.h       |   1 +
 include/hw/rtc/mc146818rtc.h         |   2 +-
 include/hw/virtio/virtio-pmem.h      |   2 +-
 include/sysemu/balloon.h             |   2 +-
 balloon.c                            |   2 +-
 block/iscsi.c                        |   2 +-
 hw/acpi/core.c                       |   2 +-
 hw/acpi/cpu.c                        |   2 +-
 hw/acpi/memory_hotplug.c             |   2 +-
 hw/acpi/vmgenid.c                    |   2 +-
 hw/core/qdev-properties.c            |   1 +
 hw/i386/kvm/i8254.c                  |   2 +-
 hw/pci/pci-stub.c                    |   2 +-
 hw/pci/pci.c                         |   2 +-
 hw/virtio/virtio-balloon.c           |   2 +-
 monitor/hmp-cmds.c                   |   1 +
 stubs/uuid.c                         |   2 +-
 stubs/vmgenid.c                      |   2 +-
 target/i386/cpu.c                    |   2 +-
 target/i386/machine-stub.c           |  22 +
 target/i386/Makefile.objs            |   3 +-
 26 files changed, 843 insertions(+), 816 deletions(-)
 create mode 100644 target/i386/machine-stub.c

-- 
2.21.1