Files
qemu-reims-vgpu/qapi
Vladimir Sementsov-OgievskiyandNikolay Kuratov 8e4906087e qapi/monitor: Handle missing vhost-user protocol features
Commit f9a8f58126 moved protocol_features to the vhost-user backend.
As a result, VhostStatus.protocol_features is only populated for
vhost-user devices.

For an active kernel vhost device, HMP info virtio-status and QMP
x-query-virtio-status crashes now because of unset protocol-features.

Make protocol-features optional in VhostStatus and skip dumping a
missing object in HMP.

This is a compatibility break.  Okay, since VhostStatus is only used
by x-query-virtio-status, which is unstable.

Fixes: f9a8f58126 ("vhost: move protocol_features to vhost_user")
Co-authored-by: Nikolay Kuratov <kniv@yandex-team.ru>
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-ID: <20260922213210.1429435-4-vsementsov@yandex-team.ru>
2026-10-29 14:27:25 -04:00
..
2026-09-30 07:51:00 +02:00