These patches update a few things related to virtio introspection via.
QMP/HMP commands.
1. Remove 'virtio_list' and instead query the QOM composition tree to
find any active & realized virtio devices.
The 'virtio_list' was duplicating information about virtio devices that
was already available in the QOM composition tree, so there was no need
to keep this list.
2. Add new transport, protocol, and device features as well as support
to introspect vhost-user-gpio devices.
Vhost-user-gpio previously had no support for introspection. Support for
introspecting its vhost-user device is now available in these patches.
New virtio transport feature:
-----------------------------
- VIRTIO_F_RING_RESET
New vhost-user protocol feature:
--------------------------------
- VHOST_USER_PROTOCOL_F_STATUS
New virtio device features:
---------------------------
virtio-blk:
- VIRTIO_BLK_F_SECURE_ERASE
virtio-net:
- VIRTIO_NET_F_NOTF_COAL
- VIRTIO_NET_F_GUEST_USO4
- VIRTIO_NET_F_GUEST_USO6
- VIRTIO_NET_F_HOST_USO
virtio/vhost-user-gpio:
- VIRTIO_GPIO_F_IRQ
- VHOST_F_LOG_ALL
- VHOST_USER_F_PROTOCOL_FEATURES
virtio-bt:
- VIRTIO_BT_F_VND_HCI
- VIRTIO_BT_F_MSFT_EXT
- VIRTIO_BT_F_AOSP_EXT
- VIRTIO_BT_F_CONFIG_V2
virtio-scmi:
- VIRTIO_SCMI_F_P2A_CHANNELS
- VIRTIO_SCMI_F_SHARED_MEMORY
v2: verify virtio devices via. 'TYPE_VIRTIO_DEVICES'
verify path is a virtio device before checking if it's realized
remove 'VIRTIO_BLK_F_ZONED' update (already exists)
add cover letter
Jonah Palmer (2):
qmp: remove virtio_list, search QOM tree instead
qmp: update virtio feature maps, vhost-user-gpio instrospection
hw/virtio/vhost-user-gpio.c | 7 ++
hw/virtio/virtio-qmp.c | 207 +++++++++++++++++++++++++++---------
hw/virtio/virtio-qmp.h | 8 +-
hw/virtio/virtio.c | 6 --
4 files changed, 165 insertions(+), 63 deletions(-)
--
2.39.3