virtio-pci: implement queue_enabled method
commitf19bcdfedd53ee93412d535a842a89fa27cae7f2
authorJason Wang <jasowang@redhat.com>
Wed, 1 Jul 2020 14:55:28 +0000 (1 22:55 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 3 Jul 2020 11:57:04 +0000 (3 07:57 -0400)
treebaae0a0266790436eec086d18d91cca1b196e3b4
parentb2a5f62a2284a8933f6f6cda48797b7263b96970
virtio-pci: implement queue_enabled method

With version 1, we can detect whether a queue is enabled via
queue_enabled.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Cindy Lu <lulu@redhat.com>
Message-Id: <20200701145538.22333-5-lulu@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
hw/virtio/virtio-pci.c