]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
virtio: Define feature bit for administration virtqueue
authorFeng Liu <feliu@nvidia.com>
Tue, 19 Dec 2023 09:32:39 +0000 (11:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2024 13:11:30 +0000 (15:11 +0200)
[ Upstream commit 838bebb4c926a573839ff1bfe1b654a6ed0f9779 ]

Introduce VIRTIO_F_ADMIN_VQ which is used for administration virtqueue
support.

Signed-off-by: Feng Liu <feliu@nvidia.com>
Reviewed-by: Parav Pandit <parav@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
Link: https://lore.kernel.org/r/20231219093247.170936-2-yishaih@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Stable-dep-of: 310227f42882 ("virtio: reenable config if freezing device failed")
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/uapi/linux/virtio_config.h

index 8881aea60f6f11be1aa2fd20f813883546c8e74a..2445f365bce74b4e926c6929322b269252ab6830 100644 (file)
@@ -52,7 +52,7 @@
  * rest are per-device feature bits.
  */
 #define VIRTIO_TRANSPORT_F_START       28
-#define VIRTIO_TRANSPORT_F_END         41
+#define VIRTIO_TRANSPORT_F_END         42
 
 #ifndef VIRTIO_CONFIG_NO_LEGACY
 /* Do we get callbacks when the ring is completely used, even if we've
  * This feature indicates that the driver can reset a queue individually.
  */
 #define VIRTIO_F_RING_RESET            40
+
+/*
+ * This feature indicates that the device support administration virtqueues.
+ */
+#define VIRTIO_F_ADMIN_VQ              41
+
 #endif /* _UAPI_LINUX_VIRTIO_CONFIG_H */