<feed xmlns='http://www.w3.org/2005/Atom'>
<title>qemu/qemu.git/backends, 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-08-29T08:07:45+00:00</updated>
<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>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: change HMPCommand cmd to take MonitorHMP</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:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=139ffc1039d9f23cc2d948d45183d0932595c73a'/>
<id>urn:sha1:139ffc1039d9f23cc2d948d45183d0932595c73a</id>
<content type='text'>
HMP commands are specific to the HMP monitor, so make the cmd function
pointer in HMPCommand take MonitorHMP * instead of Monitor *. This
strengthens type safety and makes the HMP-specific nature of these
handlers explicit.

Handler functions are renamed to take MonitorHMP *hmp, with a local
Monitor *mon = MONITOR(hmp) added where the body needs the base type.
Following patches will drop it, since most functions are HMP specific.

Reviewed-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
Reviewed-by: Jason J. Herne &lt;jjherne@linux.ibm.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-31-9227de146347@redhat.com&gt;
</content>
</entry>
<entry>
<title>char-fe: implement qemu_chr_fe_backend_name</title>
<updated>2026-08-28T10:40:02+00:00</updated>
<author>
<name>Alex Bennée</name>
<email>alex.bennee@linaro.org</email>
</author>
<published>2026-08-24T15:24:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=6b375e13b2db9c9ef5ec10d214cd764b9411dc20'/>
<id>urn:sha1:6b375e13b2db9c9ef5ec10d214cd764b9411dc20</id>
<content type='text'>
A number of chardev users where calling qemu_chr_fe_get_driver() which
is discouraged as it blocks backend hotswap. As the pattern is common
and need for the string is transitory add a helper and keep
qemu_chr_fe_get_driver() for those that really need the funkiness of
poking around the backend setup.

Suggested-by: Peter Maydell &lt;peter.maydell@linaro.org&gt;
Reviewed-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Message-ID: &lt;20260824-fixes-for-11-2-v2-4-352c6b890402@linaro.org&gt;
Signed-off-by: Alex Bennée &lt;alex.bennee@linaro.org&gt;
</content>
</entry>
<entry>
<title>backends/igvm: add a tracepoint for qigvm_cleanup_memory</title>
<updated>2026-08-20T14:40:33+00:00</updated>
<author>
<name>Ani Sinha</name>
<email>anisinha@redhat.com</email>
</author>
<published>2026-08-17T14:20:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=68e54556e731432dd5ceff3daf5889e2096d42ae'/>
<id>urn:sha1:68e54556e731432dd5ceff3daf5889e2096d42ae</id>
<content type='text'>
Useful for debugging memory region cleanups.

Signed-off-by: Ani Sinha &lt;anisinha@redhat.com&gt;
Message-ID: &lt;20260817142010.80693-6-anisinha@redhat.com&gt;
Signed-off-by: Gerd Hoffmann &lt;kraxel@redhat.com&gt;
</content>
</entry>
<entry>
<title>igvm: cleanup memory regions</title>
<updated>2026-08-20T14:40:33+00:00</updated>
<author>
<name>Gerd Hoffmann</name>
<email>kraxel@redhat.com</email>
</author>
<published>2026-08-17T14:19:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=94cfb5afe77858536265c957f47d10d85d75908c'/>
<id>urn:sha1:94cfb5afe77858536265c957f47d10d85d75908c</id>
<content type='text'>
This change cleans up existing memory regions that were created by the current
IGVM. The cleanup would be necessary when a new IGVM is loaded. This cleanup
function is called in a subsequent patch.

Reviewed-by: Alexander Graf &lt;graf@amazon.com&gt;
Tested-by: Ani Sinha &lt;anisinha@redhat.com&gt;
Signed-off-by: Gerd Hoffmann &lt;kraxel@redhat.com&gt;
Message-ID: &lt;20260817142010.80693-4-anisinha@redhat.com&gt;
Signed-off-by: Gerd Hoffmann &lt;kraxel@redhat.com&gt;
</content>
</entry>
<entry>
<title>igvm: track memory regions</title>
<updated>2026-08-20T14:40:33+00:00</updated>
<author>
<name>Gerd Hoffmann</name>
<email>kraxel@redhat.com</email>
</author>
<published>2026-08-17T14:19:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=14eb43761dc2d732f8f86b051f31323f1cf1fd80'/>
<id>urn:sha1:14eb43761dc2d732f8f86b051f31323f1cf1fd80</id>
<content type='text'>
Memory regions added by the current IGVM needs to be tracked so that they can be
freed when a new IGVM is loaded.

Reviewed-by: Ani Sinha &lt;anisinha@redhat.com&gt;
Reviewed-by: Alexander Graf &lt;graf@amazon.com&gt;
Signed-off-by: Gerd Hoffmann &lt;kraxel@redhat.com&gt;
Message-ID: &lt;20260817142010.80693-3-anisinha@redhat.com&gt;
Signed-off-by: Gerd Hoffmann &lt;kraxel@redhat.com&gt;
</content>
</entry>
<entry>
<title>igvm: store IgvmCfg pointer in QIgvm</title>
<updated>2026-08-20T14:40:33+00:00</updated>
<author>
<name>Gerd Hoffmann</name>
<email>kraxel@redhat.com</email>
</author>
<published>2026-08-17T14:19:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=acce06adc0651fe5a19596ac5733142031343c60'/>
<id>urn:sha1:acce06adc0651fe5a19596ac5733142031343c60</id>
<content type='text'>
Store a pointer to IgvmCfg instead of only IgvmFile in QIgvm.  Allows to
store additional state in the (persistent) IgvmCfg struct.

Reviewed-by: Ani Sinha &lt;anisinha@redhat.com&gt;
Reviewed-by: Alexander Graf &lt;graf@amazon.com&gt;
Signed-off-by: Gerd Hoffmann &lt;kraxel@redhat.com&gt;
Message-ID: &lt;20260817142010.80693-2-anisinha@redhat.com&gt;
Signed-off-by: Gerd Hoffmann &lt;kraxel@redhat.com&gt;
</content>
</entry>
<entry>
<title>backends/rng: cap request size to avoid oversized allocation</title>
<updated>2026-07-27T19:14:13+00:00</updated>
<author>
<name>Laurent Vivier</name>
<email>lvivier@redhat.com</email>
</author>
<published>2026-07-15T14:13:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=70074cc48f450e6c95881ac534e67013c8773cb2'/>
<id>urn:sha1:70074cc48f450e6c95881ac534e67013c8773cb2</id>
<content type='text'>
rng_backend_request_entropy() uses the requested size to allocate
a buffer with g_malloc(). With virtio-rng, this size comes from
guest-supplied descriptor lengths. A malicious guest can set a very
large descriptor length, causing QEMU to attempt a multi-gigabyte
allocation and abort.

Cap the allocation to 64 KiB. The virtio-rng queue size is
hardcoded to 8 entries, the EGD backend protocol limits requests
to 255 bytes, the Linux kernel hwrng framework requests at most
SMP_CACHE_BYTES per call (64 bytes on x86_64), and the Windows
viorng driver uses a 4 KiB buffer. The worst legitimate case is
8 x 4 KiB = 32 KiB, so 64 KiB is well above any legitimate use.

Fixes: 14417039653d ("virtio-rng: use virtqueue_get_avail_bytes, fix migration")
Cc: qemu-stable@nongnu.org
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/3983
Reported-by: dong ling &lt;dongling226655@outlook.com&gt;
Signed-off-by: Laurent Vivier &lt;lvivier@redhat.com&gt;
Reviewed-by: Thomas Huth &lt;thuth@redhat.com&gt;
Reviewed-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Message-ID: &lt;20260715141300.2295392-1-lvivier@redhat.com&gt;
</content>
</entry>
<entry>
<title>hw/virtio-rng: Fix host use-after-free (CVE-2026-50624)</title>
<updated>2026-07-27T19:14:13+00:00</updated>
<author>
<name>Laurent Vivier</name>
<email>lvivier@redhat.com</email>
</author>
<published>2026-07-24T09:49:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=0be94d8d9c28e6b7235b34133d057090fe93be6c'/>
<id>urn:sha1:0be94d8d9c28e6b7235b34133d057090fe93be6c</id>
<content type='text'>
Fix a heap-use-after-free in the virtio-rng frontend when a delayed
rng-random backend completion arrives after the virtio-rng device has been
hot-unplugged.

Fixes: CVE-2026-50624
Resolves: https://gitlab.com/qemu-project/qemu/-/work_items/3917
Reported-by: Jia Jia &lt;physicalmtea@gmail.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@oss.qualcomm.com&gt;
Signed-off-by: Laurent Vivier &lt;lvivier@redhat.com&gt;
Reviewed-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Message-ID: &lt;20260724094931.3005968-1-lvivier@redhat.com&gt;
</content>
</entry>
</feed>
