]> git.ipfire.org Git - thirdparty/qemu.git/commit
virtio: get class_id and pci device id by the virtio id
authorLongpeng <longpeng2@huawei.com>
Thu, 15 Dec 2022 13:49:40 +0000 (21:49 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 21 Dec 2022 11:35:28 +0000 (06:35 -0500)
commit22733245406a3d4e5428032172fdf041a48ac23d
tree9bee81275cc5fd4525ef813599f38e47f2bfc0b5
parentee1c08bd732283aa15e5b6fa840511b7c9c18006
virtio: get class_id and pci device id by the virtio id

Add helpers to get the "Transitional PCI Device ID" and "class_id"
of the device specified by the "Virtio Device ID".

These helpers will be used to build the generic vDPA device later.

Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Longpeng <longpeng2@huawei.com>
Message-Id: <20221215134944.2809-2-longpeng2@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/virtio-pci.c
include/hw/virtio/virtio-pci.h