]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
virtio: allow driver to disable the configure change notification
authorJason Wang <jasowang@redhat.com>
Wed, 14 Aug 2024 05:22:26 +0000 (13:22 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 16 Aug 2024 02:14:19 +0000 (19:14 -0700)
commit224de6f886f8184fd448700a6d78f216694de948
tree9b5a163d3d48881aa75b30ab8d954f72149608cc
parent0cb70ee4a6ee6b0a4b0e0f70a64a094c6fe05944
virtio: allow driver to disable the configure change notification

Sometime, it would be useful to disable the configure change
notification from the driver. So this patch allows this by introducing
a variable config_change_driver_disabled and only allow the configure
change notification callback to be triggered when it is allowed by
both the virtio core and the driver. It is set to false by default to
hold the current semantic so we don't need to change any drivers.

The first user for this would be virtio-net.

Cc: Venkat Venkatsubra <venkat.x.venkatsubra@oracle.com>
Cc: Gia-Khanh Nguyen <gia-khanh.nguyen@oracle.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Link: https://patch.msgid.link/20240814052228.4654-3-jasowang@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/virtio/virtio.c
include/linux/virtio.h