]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfd611265bdf27c2d96619d0f101c176b93064568
tree78b888b8754adfd13fdb1f368b2e04b4dc64cf0d
parent22400422b529b00d1b04459103871eb835309098
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