OSDN Git Service

virtio_config: introduce a new .enable_cbs method
authorJason Wang <jasowang@redhat.com>
Tue, 19 Oct 2021 07:01:45 +0000 (15:01 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 1 Nov 2021 09:26:48 +0000 (05:26 -0400)
commitd50497eb4e554e1f0351e1836ee7241c059592e6
tree78b888b8754adfd13fdb1f368b2e04b4dc64cf0d
parent28962ec595d701ec9d39369f9774895dfa408273
virtio_config: introduce a new .enable_cbs method

This patch introduces a new method to enable the callbacks for config
and virtqueues. This will be used for making sure the virtqueue
callbacks are only enabled after virtio_device_ready() if transport
implements this method.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Link: https://lore.kernel.org/r/20211019070152.8236-4-jasowang@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
include/linux/virtio_config.h