virtio-bus: introduce queue_enabled method
commitb2a5f62a2284a8933f6f6cda48797b7263b96970
authorJason Wang <jasowang@redhat.com>
Wed, 1 Jul 2020 14:55:27 +0000 (1 22:55 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 3 Jul 2020 11:57:04 +0000 (3 07:57 -0400)
tree91f7c200775f4c44672db6d9d1a184910bfe7722
parent92fbc3e07eb924bd5e03d22764e637b2e02e46bd
virtio-bus: introduce queue_enabled method

This patch introduces queue_enabled() method which allows the
transport to implement its own way to report whether or not a queue is
enabled.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Cindy Lu <lulu@redhat.com>
Message-Id: <20200701145538.22333-4-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.c
include/hw/virtio/virtio-bus.h