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

Philippe Mathieu-Daudé posted 9 patches 3 years, 11 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20200525150640.30879-1-philmd@redhat.com
Test docker-mingw@fedora passed
Test checkpatch passed
Test asan passed
Test docker-quick@centos7 passed
Test FreeBSD passed
There is a newer version of this series
qapi/machine-target.json             |  45 ++
qapi/machine.json                    | 803 +++++++++++++++++++++++++--
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 +-
25 files changed, 850 insertions(+), 816 deletions(-)
create mode 100644 target/i386/machine-stub.c
[PATCH v3 0/9] user-mode: Prune build dependencies (part 2)
Posted by Philippe Mathieu-Daudé 3 years, 11 months ago
Missing review:
- #2 restrict LostTickPolicy to x86
- #3 correct balloon documentation (new)
- #4 restrict balloon to machine
- #6 move query-uuid to machine
- #8 restrict PCI commands

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 v2:
- Addressed Igor review comments (move query-uuid to machine)
- Addressed David review comments (fix balloon documentation)

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

$ git backport-diff -u v2
Key:
[----] : patches are identical
[####] : number of functional differences between upstream/downstream patch
[down] : patch is downstream-only
The flags [FC] indicate (F)unctional and (C)ontextual differences, respectively

001/9:[----] [--] 'target/i386: Restrict X86CPUFeatureWord to X86 targets'
002/9:[----] [--] 'qapi/misc: Restrict LostTickPolicy enum to machine code'
003/9:[down] 'qapi/misc.json: Correct balloon documentation'
004/9:[0026] [FC] 'qapi/misc: Restrict balloon-related commands to machine code'
005/9:[----] [--] 'qapi/misc: Restrict query-vm-generation-id command to machine code'
006/9:[down] 'qapi/misc: Move query-uuid command to machine code'
007/9:[----] [--] 'qapi/misc: Restrict ACPI commands to machine code'
008/9:[----] [--] 'qapi/misc: Restrict PCI commands to machine code'
009/9:[----] [--] 'qapi/misc: Restrict device memory commands to machine code'

Philippe Mathieu-Daudé (9):
  target/i386: Restrict X86CPUFeatureWord to X86 targets
  qapi/misc: Restrict LostTickPolicy enum to machine code
  qapi/misc.json: Correct balloon documentation
  qapi/misc: Restrict balloon-related commands to machine code
  qapi/misc: Restrict query-vm-generation-id command to machine code
  qapi/misc: Move query-uuid 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/machine-target.json             |  45 ++
 qapi/machine.json                    | 803 +++++++++++++++++++++++++--
 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 +-
 25 files changed, 850 insertions(+), 816 deletions(-)
 create mode 100644 target/i386/machine-stub.c

-- 
2.21.3