Skip to content

RFC Stubs cleanup

Paolo Bonzini qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest11 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11stubs: merge all monitor stubs in one file, remove monitor_cur_is_qmp stubstubs/Makefile.objs stubs/mon-is-qmp.c stubs/monitor-init.c +1 more+7 -200 replies
2/11stubs: move smbios stubs to hw/smbioshw/smbios/Makefile.objs hw/smbios/smbios_type_38-stub.c stubs/Makefile.objs+8 -40 replies
3/11stubs: move acpi stubs to hw/acpihw/acpi/Makefile.objs hw/acpi/ipmi-stub.c stubs/Makefile.objs+8 -50 replies
4/11stubs: remove unused stub for serial_hdstubs/Makefile.objs stubs/get-next-serial.c+0 -50 replies
5/11hw: move reset handlers from vl.c to hw/corehw/core/Makefile.objs hw/core/reset.c include/hw/hw.h +6 more+85 -640 replies
6/11stubs: group stubs for user-mode emulationMAINTAINERS Makefile.target stubs/Makefile.objs +3 more+37 -480 replies
7/11stubs: group all monitor_fdset_* functions in a single filestubs/Makefile.objs stubs/fdset-add-fd.c stubs/fdset-find-fd.c +3 more+23 -350 replies
8/11stubs: move vhost stubs to stubs/vhost.ohw/Makefile.objs hw/virtio/Makefile.objs hw/virtio/vhost-stub.c +1 more+6 -30 replies
9/11event_notifier: cleanups around event_notifier_set_handlerhw/usb/ccid-card-emulated.c hw/virtio/virtio.c include/qemu/event_notifier.h +7 more+32 -420 replies
10/11build: remove --enable-colo/--disable-coloconfigure migration/Makefile.objs stubs/Makefile.objs +1 more+1 -600 replies
11/11stubs: remove stubs/kvm.cstubs/Makefile.objs stubs/kvm.c target/mips/kvm.c +2 more+15 -90 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [RFC PATCH 00/11] Stubs cleanup

This moves out of libqemustub.a those functions which can be handled simply by $(call lnot), like we already do for pci-stub.c or kvm-stub.c. libqemustub.a keep the more complex cases where a small part of the executables we build needs an implementation of a small subset of an API.

Paolo

Paolo Bonzini (11):
stubs: merge all monitor stubs in one file, remove monitor_cur_is_qmp stub
stubs: move smbios stubs to hw/smbios
stubs: move acpi stubs to hw/acpi
stubs: remove unused stub for serial_hd
hw: move reset handlers from vl.c to hw/core
stubs: group stubs for user-mode emulation
stubs: group all monitor_fdset_* functions in a single file
stubs: move vhost stubs to stubs/vhost.o
event_notifier: cleanups around event_notifier_set_handler
build: remove --enable-colo/--disable-colo
stubs: remove stubs/kvm.c

 MAINTAINERS                                        |  1 +
 Makefile.target                                    |  4 +-
 configure                                          | 11 ----
 hw/Makefile.objs                                   |  2 +-
 hw/acpi/Makefile.objs                              | 12 ++--
 stubs/ipmi.c => hw/acpi/ipmi-stub.c                |  0
 hw/core/Makefile.objs                              |  2 +-
 hw/core/reset.c                                    | 72 ++++++++++++++++++++++
 hw/smbios/Makefile.objs                            | 11 +++-
 .../smbios/smbios_type_38-stub.c                   |  0
 hw/usb/ccid-card-emulated.c                        |  2 +-
 hw/virtio/Makefile.objs                            |  6 +-
 stubs/vhost.c => hw/virtio/vhost-stub.c            |  0
 hw/virtio/virtio.c                                 | 10 +--
 include/hw/hw.h                                    |  6 +-
 include/qemu/event_notifier.h                      |  3 -
 include/qemu/main-loop.h                           | 15 +++++
 include/sysemu/reset.h                             | 10 +++
 include/sysemu/sysemu.h                            |  1 -
 iohandler.c                                        |  7 +++
 migration/Makefile.objs                            |  3 +-
 stubs/Makefile.objs                                | 19 +-----
 stubs/cpus.c                                       | 11 ----
 stubs/fdset-add-fd.c                               |  8 ---
 stubs/fdset-find-fd.c                              |  8 ---
 stubs/fdset-get-fd.c                               |  8 ---
 stubs/fdset-remove-fd.c                            |  7 ---
 stubs/fdset.c                                      | 22 +++++++
 stubs/get-next-serial.c                            |  4 --
 stubs/iohandler.c                                  |  8 ---
 stubs/kvm.c                                        |  8 ---
 stubs/migration-colo.c                             | 46 --------------
 stubs/mon-is-qmp.c                                 | 10 ---
 stubs/monitor-init.c                               |  7 ---
 stubs/{get-fd.c => monitor.c}                      |  6 ++
 stubs/replay-user.c                                | 33 ----------
 stubs/reset.c                                      | 14 -----
 target/i386/hyperv.c                               |  7 ++-
 target/mips/kvm.c                                  |  5 ++
 target/ppc/kvm.c                                   |  5 ++
 target/s390x/kvm.c                                 |  5 ++
 tests/Makefile.include                             |  1 +
 user-exec-stub.c                                   | 34 ++++++++++
 util/event_notifier-posix.c                        |  9 ---
 util/event_notifier-win32.c                        | 12 ----
 vl.c                                               | 42 -------------
 46 files changed, 222 insertions(+), 295 deletions(-)
 rename stubs/ipmi.c => hw/acpi/ipmi-stub.c (100%)
 create mode 100644 hw/core/reset.c
 rename stubs/smbios_type_38.c => hw/smbios/smbios_type_38-stub.c (100%)
 rename stubs/vhost.c => hw/virtio/vhost-stub.c (100%)
 create mode 100644 include/sysemu/reset.h
 delete mode 100644 stubs/cpus.c
 delete mode 100644 stubs/fdset-add-fd.c
 delete mode 100644 stubs/fdset-find-fd.c
 delete mode 100644 stubs/fdset-get-fd.c
 delete mode 100644 stubs/fdset-remove-fd.c
 create mode 100644 stubs/fdset.c
 delete mode 100644 stubs/get-next-serial.c
 delete mode 100644 stubs/iohandler.c
 delete mode 100644 stubs/kvm.c
 delete mode 100644 stubs/migration-colo.c
 delete mode 100644 stubs/mon-is-qmp.c
 delete mode 100644 stubs/monitor-init.c
 rename stubs/{get-fd.c => monitor.c} (75%)
 delete mode 100644 stubs/replay-user.c
 delete mode 100644 stubs/reset.c
 create mode 100644 user-exec-stub.c
Signature · 1 line
2.9.3