[RFC PATCH 0/3] introduce QMP-only binaries

Paolo Bonzini posted 3 patches 4 years ago
Test checkpatch failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20220208144458.1079634-1-pbonzini@redhat.com
Maintainers: Juan Quintela <quintela@redhat.com>, Anthony Perard <anthony.perard@citrix.com>, Jason Wang <jasowang@redhat.com>, Stefano Stabellini <sstabellini@kernel.org>, "Dr. David Alan Gilbert" <dgilbert@redhat.com>, Paul Durrant <paul@xen.org>
hw/net/xen_nic.c            |  20 +++---
include/net/net.h           |   1 +
meson.build                 |  16 +++--
migration/migration.c       |   4 ++
net/net.c                   |   5 +-
softmmu/{vl.c => climain.c} |   2 +-
softmmu/meson.build         |   1 -
softmmu/qmpmain.c           | 120 ++++++++++++++++++++++++++++++++++++
softmmu/runstate.c          |   1 +
9 files changed, 153 insertions(+), 17 deletions(-)
rename softmmu/{vl.c => climain.c} (99%)
create mode 100644 softmmu/qmpmain.c
[RFC PATCH 0/3] introduce QMP-only binaries
Posted by Paolo Bonzini 4 years ago
These three patches introduce a new system emulation binary qemu-qmp-*
that does nothing but start a QMP monitor (via systemd activation
protocol if possible, otherwise on stdio).  The idea is that the
creation of the machine would happen through new commands such as
machine-set, accel-set, etc.

Patches 1 and 2 simply avoid that {'execute':'quit'} crashes; that's
more or less the extent of my testing.

Paolo

Paolo Bonzini (3):
  migration: allow calling migration_shutdown without a prior
    initialization
  net: initialize global variables early
  introduce qemu-qmp-*

 hw/net/xen_nic.c            |  20 +++---
 include/net/net.h           |   1 +
 meson.build                 |  16 +++--
 migration/migration.c       |   4 ++
 net/net.c                   |   5 +-
 softmmu/{vl.c => climain.c} |   2 +-
 softmmu/meson.build         |   1 -
 softmmu/qmpmain.c           | 120 ++++++++++++++++++++++++++++++++++++
 softmmu/runstate.c          |   1 +
 9 files changed, 153 insertions(+), 17 deletions(-)
 rename softmmu/{vl.c => climain.c} (99%)
 create mode 100644 softmmu/qmpmain.c

-- 
2.31.1