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-phi...@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