<feed xmlns='http://www.w3.org/2005/Atom'>
<title>qemu/qemu.git/monitor, branch master</title>
<subtitle>QEMU main repository</subtitle>
<id>https://git.landau.one/pub/scm/virt/qemu/qemu.git/atom?h=master</id>
<link rel='self' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/'/>
<updated>2026-09-03T10:22:32+00:00</updated>
<entry>
<title>system: query machines using TYPE_MACHINE</title>
<updated>2026-09-03T10:22:32+00:00</updated>
<author>
<name>Pierrick Bouvier</name>
<email>pierrick.bouvier@oss.qualcomm.com</email>
</author>
<published>2026-09-01T20:20:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=635301611606a98327452809a4ad8c119a9e5460'/>
<id>urn:sha1:635301611606a98327452809a4ad8c119a9e5460</id>
<content type='text'>
We drop the target_machine_typename() we introduced previously, and
revert to using TYPE_MACHINE. From there, we'll make sure only the right
types are registered at startup time.

Signed-off-by: Pierrick Bouvier &lt;pierrick.bouvier@oss.qualcomm.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@oss.qualcomm.com&gt;
Message-ID: &lt;20260901202043.26532-4-pierrick.bouvier@oss.qualcomm.com&gt;
Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@oss.qualcomm.com&gt;
</content>
</entry>
<entry>
<title>monitor: move HMP-specific to monitor-hmp-internal.h</title>
<updated>2026-08-29T08:07:45+00:00</updated>
<author>
<name>Marc-André Lureau</name>
<email>marcandre.lureau@redhat.com</email>
</author>
<published>2026-08-28T12:04:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=b818e58ac419a41735d480da5c1de8a104e7f59c'/>
<id>urn:sha1:b818e58ac419a41735d480da5c1de8a104e7f59c</id>
<content type='text'>
Move HMP-specific declarations to its own CONFIG_HMP guarded header.

Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@oss.qualcomm.com&gt;
Reviewed-by: Dr. David Alan Gilbert &lt;dave@treblig.org&gt;
Signed-off-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Message-ID: &lt;20260828-qemu-no-hmp-v5-48-9227de146347@redhat.com&gt;
</content>
</entry>
<entry>
<title>monitor: move monitor_hmp_print*() functions to hmp.c</title>
<updated>2026-08-29T08:07:45+00:00</updated>
<author>
<name>Marc-André Lureau</name>
<email>marcandre.lureau@redhat.com</email>
</author>
<published>2026-08-28T12:04:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=ab0d33832f3bd5a43bb5e2a0d69edbef4dfcf806'/>
<id>urn:sha1:ab0d33832f3bd5a43bb5e2a0d69edbef4dfcf806</id>
<content type='text'>
Those functions are only used when CONFIG_HMP, compile them out, and add
conditions for the calling code.

Reviewed-by: Dr. David Alan Gilbert &lt;dave@treblig.org&gt;
Signed-off-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Message-ID: &lt;20260828-qemu-no-hmp-v5-47-9227de146347@redhat.com&gt;
</content>
</entry>
<entry>
<title>build-sys: make HMP source files conditional on have_hmp</title>
<updated>2026-08-29T08:07:45+00:00</updated>
<author>
<name>Marc-André Lureau</name>
<email>marcandre.lureau@redhat.com</email>
</author>
<published>2026-08-28T12:04:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=34c5de5c6d6049b7cd0d475a32da8760f35c0ab5'/>
<id>urn:sha1:34c5de5c6d6049b7cd0d475a32da8760f35c0ab5</id>
<content type='text'>
Exclude all *-hmp-cmds.c files and HMP-only source files from the
build when HMP is disabled.

Also conditionalise the hmp-commands.hx header generation and the
test-hmp qtest.

Acked-by: Dr. David Alan Gilbert &lt;dave@treblig.org&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@oss.qualcomm.com&gt;
Signed-off-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Message-ID: &lt;20260828-qemu-no-hmp-v5-45-9227de146347@redhat.com&gt;
</content>
</entry>
<entry>
<title>target: guard MonitorDef tables with CONFIG_HMP</title>
<updated>2026-08-29T08:07:45+00:00</updated>
<author>
<name>Marc-André Lureau</name>
<email>marcandre.lureau@redhat.com</email>
</author>
<published>2026-08-28T12:04:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=8b6882066703926b01fa419012e982ba1343969b'/>
<id>urn:sha1:8b6882066703926b01fa419012e982ba1343969b</id>
<content type='text'>
Guard SysemuCPUOps::monitor_defs field and the per-target MonitorDef
arrays with CONFIG_HMP. These tables are only used by HMP 'print' and
'info registers' commands.

Note that the #ifdef in hmp.c is not optimal, but will be removed
later once the unit is built conditionally.

Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@oss.qualcomm.com&gt;
Signed-off-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Message-ID: &lt;20260828-qemu-no-hmp-v5-42-9227de146347@redhat.com&gt;
</content>
</entry>
<entry>
<title>Guard HMP command implementations with CONFIG_HMP</title>
<updated>2026-08-29T08:07:45+00:00</updated>
<author>
<name>Marc-André Lureau</name>
<email>marcandre.lureau@redhat.com</email>
</author>
<published>2026-08-28T12:04:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=0bd6562fc3e54d6d96db1f7bc5188da512249349'/>
<id>urn:sha1:0bd6562fc3e54d6d96db1f7bc5188da512249349</id>
<content type='text'>
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)

Reviewed-by: Jason J. Herne &lt;jjherne@linux.ibm.com&gt;
Reviewed-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
Signed-off-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Message-ID: &lt;20260828-qemu-no-hmp-v5-41-9227de146347@redhat.com&gt;
</content>
</entry>
<entry>
<title>qapi: make HMP-specific schema entries conditional on CONFIG_HMP</title>
<updated>2026-08-29T08:07:45+00:00</updated>
<author>
<name>Marc-André Lureau</name>
<email>marcandre.lureau@redhat.com</email>
</author>
<published>2026-08-28T12:04:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=2d6d5508bb1f2304fbc7cec8ed053f7c293fd972'/>
<id>urn:sha1:2d6d5508bb1f2304fbc7cec8ed053f7c293fd972</id>
<content type='text'>
Make the 'readline' value of MonitorMode and the
'human-monitor-command' command conditional on CONFIG_HMP, so
they are only available when HMP support is compiled in.

Reviewed-by: Dr. David Alan Gilbert &lt;dave@treblig.org&gt;
Signed-off-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Message-ID: &lt;20260828-qemu-no-hmp-v5-40-9227de146347@redhat.com&gt;
</content>
</entry>
<entry>
<title>monitor: tighten monitor_printf*()</title>
<updated>2026-08-29T08:07:45+00:00</updated>
<author>
<name>Marc-André Lureau</name>
<email>marcandre.lureau@redhat.com</email>
</author>
<published>2026-08-28T12:04:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=f3900cfb0cddd2fcc3b9db20f52f3755e6ed962f'/>
<id>urn:sha1:f3900cfb0cddd2fcc3b9db20f52f3755e6ed962f</id>
<content type='text'>
Rename monitor_printf-&gt;monitor_hmp_printf, monitor_vprintf-&gt;
monitor_hmp_vprintf, and monitor_printc-&gt;monitor_hmp_printc, changing
the first parameter from Monitor * to MonitorHMP * to enforce type
safety. The implementation is also simplified: monitor_hmp_vprintf now
directly calls g_strdup_vprintf + monitor_puts, removing the virtual
dispatch via moncls-&gt;vprintf.

The dev_print() callbacks are temporarily using the MONITOR_HMP(mon)
cast, they are fixed in the following commits.

Early return in qemu_vprintf() if "hmp" is NULL, relying on
monitor_hmp_vprintf() handling NULL case is a bit uncommon.

Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@oss.qualcomm.com&gt;
Signed-off-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Message-ID: &lt;20260828-qemu-no-hmp-v5-37-9227de146347@redhat.com&gt;
</content>
</entry>
<entry>
<title>monitor: tighten monitor_set_cpu()/get_cpu()</title>
<updated>2026-08-29T08:07:44+00:00</updated>
<author>
<name>Marc-André Lureau</name>
<email>marcandre.lureau@redhat.com</email>
</author>
<published>2026-08-28T12:04:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=bcf97f76064885730f491b63d4543b60c87c09fd'/>
<id>urn:sha1:bcf97f76064885730f491b63d4543b60c87c09fd</id>
<content type='text'>
These functions access mon_cpu_path, which is a MonitorHMP-specific
field. Narrowing their signatures from Monitor* to MonitorHMP* makes the
type system enforce what was already true at runtime: every caller is in
an HMP context. The expression parser's MONITOR_HMP() casts are safe
because it is only reachable from handle_hmp_command(), they will be
dropped with later patches.

Reviewed-by: Dr. David Alan Gilbert &lt;dave@treblig.org&gt;
Signed-off-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Message-ID: &lt;20260828-qemu-no-hmp-v5-36-9227de146347@redhat.com&gt;
</content>
</entry>
<entry>
<title>monitor: add monitor_cur_hmp() helper</title>
<updated>2026-08-29T08:07:44+00:00</updated>
<author>
<name>Marc-André Lureau</name>
<email>marcandre.lureau@redhat.com</email>
</author>
<published>2026-08-28T12:04:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=7204d4c2c0bc2b23b77776775dd5ea0785fca43c'/>
<id>urn:sha1:7204d4c2c0bc2b23b77776775dd5ea0785fca43c</id>
<content type='text'>
This will help to simplify the code in the following changes.

Reviewed-by: Dr. David Alan Gilbert &lt;dave@treblig.org&gt;
Signed-off-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Message-ID: &lt;20260828-qemu-no-hmp-v5-33-9227de146347@redhat.com&gt;
</content>
</entry>
</feed>
