Files
qemu/ui
Arun Menon fc6ff3198e ui/vdagent: Use VMSTATE_GBYTEARRAY to safely migrate outbuf
Migrating a GLib GByteArray is now possible directly using the newly
introduced VMSTATE_GBYTEARRAY. It uses the standard GLib API calls to
create the array, or resize it.

This is safer than implementing a C struct and manually updating the
data and len fields. This commit uses the VMSTATE_GBYTEARRAY in vdagent
to store the outbuf variable.

Signed-off-by: Arun Menon <armenon@redhat.com>
Suggested-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Link: https://lore.kernel.org/qemu-devel/20260423105733.113046-3-armenon@redhat.com
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
2026-06-01 19:32:49 +00:00
..
2026-05-25 02:01:34 +04:00
2026-05-25 02:01:34 +04:00
2021-12-21 10:50:22 +04:00
2021-12-21 10:50:22 +04:00
2026-05-25 01:00:54 +04:00
2026-05-25 02:01:35 +04:00
2026-05-25 02:01:35 +04:00
2026-05-25 02:01:35 +04:00
2026-05-25 02:01:35 +04:00
2026-04-22 12:51:23 +04:00
2022-11-08 10:23:06 +01:00
2023-08-31 19:47:43 +02:00
2026-05-25 02:01:35 +04:00
2026-05-25 01:00:53 +04:00
2026-05-25 01:00:53 +04:00
2026-05-25 02:01:34 +04:00
2026-05-25 02:01:34 +04:00