Files
Marc-André Lureau 4d37c61590 python, tests: switch usernet queries from HMP to QMP
Replace human-monitor-command "info usernet" calls with the structured
x-query-usernet QMP command in get_usernet_hostfwd_port() and the VM
test runner boot path.

Since x-query-usernet returns a list of UsernetInfo entries, callers
now iterate over the result and extract the port from each entry's
"info" field. Also switch get_info_usernet_hostfwd_port() from
split('\r\n') to splitlines(), since QMP strings use \n rather than
the HMP monitor's \r\n line endings.

Reviewed-by: Thomas Huth <th.huth+qemu@posteo.eu>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Marc-Andre Lureau <marcandre.lureau@redhat.com>
Message-ID: <20260828-qemu-no-hmp-v5-11-9227de146347@redhat.com>
2026-08-29 12:07:43 +04:00
..
2025-07-16 16:58:41 +02:00
2026-02-24 13:11:29 -05:00
2025-07-16 16:58:41 +02:00

qemu.utils package
==================

This package provides miscellaneous utilities used for testing and
debugging QEMU. It is used primarily by the vm and functional tests.

See the documentation in ``__init__.py`` for more information.