qemu/stubs
Daniel P. Berrangé 75f31e3a8a monitor: implement "user creatable" interface for adding monitors
Implement the user creatable QOM interface and define the monitor-qmp
and monitor-hmp types in QAPI. This unlocks the ability to create them
on the command line with -object or in HMP/QMP with object_add.

For example:

  $QEMU -chardev stdio,id=monchr0 -object monitor-hmp,id=mon0,chrdev=monchr0

Initially the "prepare_delete" callback is hardcoded to return an error
which means -object and object_add can be used, but object_del will fail.
Support for deleting monitors will be introduced in subsequent commits.

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Tested-by: Peter Krempa <pkrempa@redhat.com>
Acked-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-ID: <20260706135824.2623960-24-berrange@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
2026-07-07 11:16:25 +02:00
..
async-run-on-cpu.c target/s390x: Fix infinite loop during replay 2026-01-12 13:56:28 +01:00
bdrv-next-monitor-owned.c Include qemu-common.h exactly where needed 2019-06-12 13:20:20 +02:00
blk-commit-all.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
blk-exp-close-all.c meson: Drop the .fa library suffix 2024-07-03 18:41:26 +02:00
blockdev-close-all-bdrv-states.c all: Clean up includes 2016-02-16 14:29:28 +00:00
change-state-handler.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
cmos.c stubs/cmos: Use correct include 2020-09-01 09:10:58 +02:00
cpu-destroy-address-spaces.c physmem: Destroy all CPU AddressSpaces on unrealize 2025-10-03 09:48:02 -04:00
cpu-get-clock.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
cpu-synchronize-state.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
cpus-queue.c target/s390x: Fix infinite loop during replay 2026-01-12 13:56:28 +01:00
cpus-virtual-clock.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
dump.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
fdset.c monitor: Report errors from monitor_fdset_dup_fd_add 2024-06-21 09:47:21 -03:00
fw_cfg.c MAINTAINERS: Remove my disfunctional emails 2026-04-24 21:27:22 +02:00
get-vm-name.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
graph-lock.c async: Register/unregister aiocontext in graph lock list 2022-12-15 16:07:43 +01:00
hmp-cmd-info_mem.c monitor: Do not check TARGET_I386/RISCV to build 'info mem' command 2026-05-06 12:58:08 +02:00
hmp-cmd-info_sev.c monitor: Do not check TARGET_I386 to build 'info sev' command 2026-05-06 12:58:08 +02:00
hmp-cmd-info_tlb.c monitor: Do not check multiple TARGET_* to build 'info tlb' command 2026-05-06 12:58:08 +02:00
hmp-cmds-hw-s390x.c monitor: Do not check TARGET_S390X to build s390x commands 2026-05-06 12:58:08 +02:00
hmp-cmds-target-i386.c monitor: Do not check TARGET_I386 to build target/i386/ commands 2026-05-06 12:58:08 +02:00
hotplug-stubs.c MAINTAINERS: Remove my disfunctional emails 2026-04-24 21:27:22 +02:00
icount.c include/exec: Split out icount.h 2025-04-23 14:08:44 -07:00
igvm.c igvm: fix build when igvm is not installed in a well known path 2026-03-10 08:57:05 +01:00
iothread-lock-block.c main-loop.h: introduce qemu_in_main_thread() 2022-03-04 18:18:15 +01:00
iothread-lock.c bql: Fix bql_locked status with condvar APIs 2025-11-03 11:59:32 +01:00
is-daemonized.c Include qemu-common.h exactly where needed 2019-06-12 13:20:20 +02:00
kvm.c accel/kvm: add changes required to support KVM VM file descriptor change 2026-02-27 14:22:08 +01:00
linux-aio.c block: rename block/aio.h to qemu/aio.h 2025-12-27 10:11:12 +01:00
meson.build monitor: Remove target_monitor_defs() 2026-05-06 12:58:08 +02:00
migr-blocker.c migration: Use bitset of MigMode instead of variable arguments 2025-11-03 16:04:10 -05:00
monitor-core.c monitor: drop unused monitor_cur_is_qmp 2026-07-07 11:16:25 +02:00
monitor-internal.c monitor: implement "user creatable" interface for adding monitors 2026-07-07 11:16:25 +02:00
physmem.c system/ramblock: Constify various RAMBlock arguments 2026-03-09 15:27:25 -04:00
qdev.c MAINTAINERS: Remove my disfunctional emails 2026-04-24 21:27:22 +02:00
qemu-timer-notify-cb.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
qmp-arm-gic.c stubs: Rename monitor* -> qmp* files 2026-05-06 12:58:08 +02:00
qmp-command-available.c qapi: Move and rename qapi/qmp/dispatch.h to qapi/qmp-registry.h 2025-02-10 15:33:29 +01:00
qmp-cpu-s390x-kvm.c stubs: Rename monitor* -> qmp* files 2026-05-06 12:58:08 +02:00
qmp-cpu-s390x.c stubs: Rename monitor* -> qmp* files 2026-05-06 12:58:08 +02:00
qmp-cpu.c stubs: Rename monitor* -> qmp* files 2026-05-06 12:58:08 +02:00
qmp-i386-rtc.c stubs: Rename monitor* -> qmp* files 2026-05-06 12:58:08 +02:00
qmp-i386-sev.c stubs: Rename monitor* -> qmp* files 2026-05-06 12:58:08 +02:00
qmp-i386-sgx.c stubs: Rename monitor* -> qmp* files 2026-05-06 12:58:08 +02:00
qmp-i386-xen.c stubs: Rename monitor* -> qmp* files 2026-05-06 12:58:08 +02:00
qmp-quit.c qapi: Move and rename qapi/qmp/dispatch.h to qapi/qmp-registry.h 2025-02-10 15:33:29 +01:00
qom-compat-properties.c qom: Restrict compat properties API to system emulation 2026-04-24 21:27:21 +02:00
qtest.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
ram-block.c system/ramblock: Constify various RAMBlock arguments 2026-03-09 15:27:25 -04:00
replay-mode.c gdbstub: Make default replay_mode value explicit in stubs 2026-07-06 15:42:18 +02:00
replay-tools.c block: rename block/aio.h to qemu/aio.h 2025-12-27 10:11:12 +01:00
replay.c stubs: split record/replay stubs further 2024-04-18 11:17:27 +02:00
runstate-check.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
sysbus.c include: move hw/qdev-core.h to hw/core/, rename 2025-12-27 10:11:07 +01:00
trace-control.c trace: remove code that depends on setting vcpu 2023-06-01 11:05:05 -04:00
uuid.c qapi: Restrict query-uuid command to machine code 2020-09-29 15:41:35 +02:00
vm-stop.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
vmstate.c migration: cpr-transfer mode 2025-01-29 11:56:24 -03:00
win32-kbd-hook.c ui/win32-kbd-hook: handle AltGr in a hook procedure 2020-05-19 09:06:44 +02:00
xen-hw-stub.c hw/xen: Remove unnecessary xen_hvm_inject_msi() stub 2024-03-09 18:51:45 +01:00