On Fri, Jun 26, 2026 at 01:19:35AM +0400, Marc-André Lureau wrote:
> Add #ifdef CONFIG_HMP around all hmp_* function implementations and
> their HMP-only helpers across subsystems.
> 
> This covers monitor_register_hmp* callers, hmp_info_* handlers, and
> HMP-only helper functions like slirp_lookup.
> 
> To link succesfully, use empty cmds tables in hmp-cmds.c (to be removed
> once meson build-sys is updated with !hmp support later in the series)
> 
> Signed-off-by: Marc-André Lureau <[email protected]>
> ---
>  accel/accel-system.c      | 2 ++
>  accel/tcg/monitor.c       | 2 ++
>  hw/i386/kvm/xen-stubs.c   | 2 ++
>  hw/i386/kvm/xen_evtchn.c  | 3 ++-
>  hw/i386/sgx.c             | 2 ++
>  hw/misc/mos6522-stub.c    | 2 ++
>  hw/misc/mos6522.c         | 2 ++
>  hw/pci/pci-stub.c         | 2 ++
>  hw/s390x/s390-skeys.c     | 2 ++
>  hw/s390x/s390-stattrib.c  | 4 ++++
>  hw/uefi/ovmf-log.c        | 2 ++
>  hw/usb/host-libusb.c      | 6 ++++++
>  migration/dirtyrate.c     | 2 ++
>  monitor/hmp-cmds.c        | 5 +++++
>  net/slirp.c               | 7 ++++++-
>  replay/replay-debugging.c | 8 ++++++++
>  replay/stubs-system.c     | 6 ++++++
>  system/dirtylimit.c       | 6 ++++++
>  system/qdev-monitor.c     | 4 ++++
>  target/i386/cpu-apic.c    | 2 ++
>  target/i386/monitor.c     | 3 +++
>  target/i386/sev.c         | 2 ++
>  target/m68k/monitor.c     | 2 ++
>  target/ppc/monitor.c      | 2 ++
>  target/riscv/monitor.c    | 3 +++
>  target/sh4/monitor.c      | 2 ++
>  target/sparc/monitor.c    | 2 ++
>  target/xtensa/monitor.c   | 2 ++
>  28 files changed, 87 insertions(+), 2 deletions(-)

Reviewed-by: Daniel P. Berrangé <[email protected]>


With regards,
Daniel
-- 
|: https://berrange.com       ~~        https://hachyderm.io/@berrange :|
|: https://libvirt.org          ~~          https://entangle-photo.org :|
|: https://pixelfed.art/berrange   ~~    https://fstop138.berrange.com :|


Reply via email to