diff --git a/lib/virtio/virtio_user.c b/lib/virtio/virtio_user.c index bdffde5db..8795e0a94 100644 --- a/lib/virtio/virtio_user.c +++ b/lib/virtio/virtio_user.c @@ -47,7 +47,8 @@ #include "spdk_internal/virtio.h" #define VIRTIO_USER_SUPPORTED_PROTOCOL_FEATURES \ - ((1ULL << VHOST_USER_PROTOCOL_F_MQ)) + ((1ULL << VHOST_USER_PROTOCOL_F_MQ) | \ + (1ULL << VHOST_USER_PROTOCOL_F_CONFIG)) static int virtio_user_create_queue(struct virtio_dev *vdev, uint32_t queue_sel) diff --git a/lib/virtio/virtio_user/vhost.h b/lib/virtio/virtio_user/vhost.h index 7a434064a..2503e00f4 100644 --- a/lib/virtio/virtio_user/vhost.h +++ b/lib/virtio/virtio_user/vhost.h @@ -47,6 +47,10 @@ #define VHOST_USER_PROTOCOL_F_MQ 0 #endif +#ifndef VHOST_USER_PROTOCOL_F_CONFIG +#define VHOST_USER_PROTOCOL_F_CONFIG 9 +#endif + enum vhost_user_request { VHOST_USER_NONE = 0, VHOST_USER_GET_FEATURES = 1,