[virtio-dev] RE: [RFC] virtio-net: support access and control the member devices

Parav Pandit
2023-08-03T11:00:00Z

> From: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
> Sent: Thursday, August 3, 2023 4:22 PM
>
> Do you mean we introduce a new admin queue command
> VIRTIO_ADMIN_CMD_VIRTIO_NET_GET_INFO?
>
> Then we will have too much commands for net, block.....

VIRTIO_ADMIN_CMD_DEV_CTX_GET

One command that gives device context information in TLV (type length value) format.
One of field of the device context is device config space.
Device will return the information depending what device it is, net/blk/console each returns different info.