vhost-user: Fix protocol feature bit conflict
PATCH 1/1 vhost-user: Fix protocol feature bit conflict
The VHOST_USER_PROTOCOL_F_XEN_MMAP feature bit was defined in f21e95ee97d, which has been part of qemu's 8.1.0 release. However, it seems it was never added to qemu's code, but it is well possible that it is already used by different front-ends outside of qemu (i.e., Xen).
VHOST_USER_PROTOCOL_F_SHARED_OBJECT in contrast was added to qemu's code in 16094766627, but never defined in the vhost-user specification. As a consequence, both bits were defined to be 17, which cannot work.
Regardless of whether actual code or the specification should take precedence, F_XEN_MMAP is already part of a qemu release, while F_SHARED_OBJECT is not. Therefore, bump the latter to take number 18 instead of 17, and add this to the specification.
Take the opportunity to add at least a little note on the VhostUserShared structure to the specification. This structure is referenced by the new commands introduced in 16094766627, but was not defined.
("vhost-user: add shared_object msg")
--- docs/interop/vhost-user.rst | 11 +++++++++++ include/hw/virtio/vhost-user.h | 3 ++- subprojects/libvhost-user/libvhost-user.h | 3 ++- 3 files changed, 15 insertions(+), 2 deletions(-)
docs/interop/vhost-user.rst +11 -0
@@ -275,6 +275,16 @@ Inflight description :queue size: a 16-bit size of virtqueues +VhostUserShared +^^^^^^^^^^^^^^^ + ++------+ +| UUID | ++------+ + +:UUID: 16 bytes UUID, whose first three components (a 32-bit value, then + two 16-bit values) are stored in big endian. + C structure -----------
@@ -885,6 +895,7 @@ Protocol features #define VHOST_USER_PROTOCOL_F_CONFIGURE_MEM_SLOTS 15 #define VHOST_USER_PROTOCOL_F_STATUS 16 #define VHOST_USER_PROTOCOL_F_XEN_MMAP 17 + #define VHOST_USER_PROTOCOL_F_SHARED_OBJECT 18 Front-end message types -----------------------
include/hw/virtio/vhost-user.h +2 -1
@@ -29,7 +29,8 @@ enum VhostUserProtocolFeature {VHOST_USER_PROTOCOL_F_INBAND_NOTIFICATIONS =14 ,VHOST_USER_PROTOCOL_F_CONFIGURE_MEM_SLOTS =15 ,VHOST_USER_PROTOCOL_F_STATUS =16 , -VHOST_USER_PROTOCOL_F_SHARED_OBJECT =17 , +/* Feature 17 reserved for VHOST_USER_PROTOCOL_F_XEN_MMAP. */ +VHOST_USER_PROTOCOL_F_SHARED_OBJECT =18 , VHOST_USER_PROTOCOL_F_MAX };
subprojects/libvhost-user/libvhost-user.h +2 -1
@@ -65,7 +65,8 @@ enum VhostUserProtocolFeature {VHOST_USER_PROTOCOL_F_INBAND_NOTIFICATIONS =14 ,VHOST_USER_PROTOCOL_F_CONFIGURE_MEM_SLOTS =15 ,/* Feature 16 is reserved for VHOST_USER_PROTOCOL_F_STATUS. */ -VHOST_USER_PROTOCOL_F_SHARED_OBJECT =17 , +/* Feature 17 reserved for VHOST_USER_PROTOCOL_F_XEN_MMAP. */ +VHOST_USER_PROTOCOL_F_SHARED_OBJECT =18 , VHOST_USER_PROTOCOL_F_MAX };
Signature · 1 line
2.41.0
include/hw/virtio/vhost-user.h enum VhostUserProtocolFeature { · line 35
Quoted 13 lines · Hanna Czenczek
include/hw/virtio/vhost-user.h +2
-1@@ -29,7 +29,8 @@ enum VhostUserProtocolFeature {VHOST_USER_PROTOCOL_F_INBAND_NOTIFICATIONS =14 ,VHOST_USER_PROTOCOL_F_CONFIGURE_MEM_SLOTS =15 ,VHOST_USER_PROTOCOL_F_STATUS =16 , -VHOST_USER_PROTOCOL_F_SHARED_OBJECT =17 , +/* Feature 17 reserved for VHOST_USER_PROTOCOL_F_XEN_MMAP. */ +VHOST_USER_PROTOCOL_F_SHARED_OBJECT =18 , VHOST_USER_PROTOCOL_F_MAX };
May I ask, why not define VHOST_USER_PROTOCOL_F_XEN_MMAP as well instead of a comment mention?
Otherwise:
Viresh Kumar
Reviewed-byQuoted 10 lines · Manos Pitsidianakis
Quoted 9 lines · Hanna Czenczek
include/hw/virtio/vhost-user.h +0
-0@@ -29,7 +29,8 @@ enum VhostUserProtocolFeature {VHOST_USER_PROTOCOL_F_INBAND_NOTIFICATIONS =14 ,VHOST_USER_PROTOCOL_F_CONFIGURE_MEM_SLOTS =15 , VHOST_USER_PROTOCOL_F_STATUS = 16,
Quoted 8 lines
include/hw/virtio/vhost-user.h enum VhostUserProtocolFeature { · line 35
Quoted 5 lines
include/hw/virtio/vhost-user.h +2
-1-VHOST_USER_PROTOCOL_F_SHARED_OBJECT =17 , +/* Feature 17 reserved for VHOST_USER_PROTOCOL_F_XEN_MMAP. */ +VHOST_USER_PROTOCOL_F_SHARED_OBJECT =18 , VHOST_USER_PROTOCOL_F_MAX };May I ask, why not define
VHOST_USER_PROTOCOL_F_XEN_MMAPas well instead of a comment mention?
Perhaps because we will never use it from Qemu code ?
Anyway:
Signature · 1 line
viresh
Quoted 20 lines · Viresh Kumar
Quoted 10 lines · Manos Pitsidianakis
Quoted 9 lines · Hanna Czenczek
include/hw/virtio/vhost-user.h +0
-0@@ -29,7 +29,8 @@ enum VhostUserProtocolFeature {VHOST_USER_PROTOCOL_F_INBAND_NOTIFICATIONS =14 ,VHOST_USER_PROTOCOL_F_CONFIGURE_MEM_SLOTS =15 , VHOST_USER_PROTOCOL_F_STATUS = 16,Quoted 8 lines
include/hw/virtio/vhost-user.h enum VhostUserProtocolFeature { · line 35
Quoted 5 lines
include/hw/virtio/vhost-user.h +2
-1-VHOST_USER_PROTOCOL_F_SHARED_OBJECT =17 , +/* Feature 17 reserved for VHOST_USER_PROTOCOL_F_XEN_MMAP. */ +VHOST_USER_PROTOCOL_F_SHARED_OBJECT =18 , VHOST_USER_PROTOCOL_F_MAX };May I ask, why not define
VHOST_USER_PROTOCOL_F_XEN_MMAPas well instead of a comment mention?
Quoted 1 line
Perhaps because we will never use it from Qemu code ?
Vikram's work on enabling xenpvh support will mean enabling grant support and while I suspect most VirtIO backends will be within QEMU itself if it ever want to off-load something to a vhost-user backend it will need to ensure this flag is set.
Quoted 4 lines
Anyway:
Reviewed-by Viresh Kumar <[email protected]>
Signature · 2 lines
Alex Bennée Virtualisation Tech Lead @ Linaro
Quoted 23 lines · Alex Bennée
Quoted 20 lines · Viresh Kumar
Quoted 18 lines · Manos Pitsidianakis
Quoted 6 lines · Hanna Czenczek
include/hw/virtio/vhost-user.h +0
-0include/hw/virtio/vhost-user.h enum VhostUserProtocolFeature { · line 35
Quoted 8 lines
include/hw/virtio/vhost-user.h +2
-1@@ -29,7 +29,8 @@ enum VhostUserProtocolFeature {VHOST_USER_PROTOCOL_F_INBAND_NOTIFICATIONS =14 ,VHOST_USER_PROTOCOL_F_CONFIGURE_MEM_SLOTS =15 ,VHOST_USER_PROTOCOL_F_STATUS =16 , -VHOST_USER_PROTOCOL_F_SHARED_OBJECT =17 , +/* Feature 17 reserved for VHOST_USER_PROTOCOL_F_XEN_MMAP. */ +VHOST_USER_PROTOCOL_F_SHARED_OBJECT =18 , VHOST_USER_PROTOCOL_F_MAX };May I ask, why not define
VHOST_USER_PROTOCOL_F_XEN_MMAPas well instead of a comment mention?
Quoted 6 lines
Quoted 1 line
Perhaps because we will never use it from Qemu code ?
Vikram's work on enabling xenpvh support will mean enabling grant support and while I suspect most VirtIO backends will be within QEMU itself if it ever want to off-load something to a vhost-user backend it will need to ensure this flag is set.
Hanna,
It would be good to define it then in the current commit itself.
Signature · 1 line
viresh
Quoted 21 lines · Viresh Kumar
Quoted 20 lines · Alex Bennée
Quoted 18 lines · Viresh Kumar
Quoted 17 lines · Manos Pitsidianakis
Quoted 6 lines · Hanna Czenczek
include/hw/virtio/vhost-user.h +0
-0include/hw/virtio/vhost-user.h enum VhostUserProtocolFeature { · line 35
Quoted 8 lines
include/hw/virtio/vhost-user.h +2
-1@@ -29,7 +29,8 @@ enum VhostUserProtocolFeature {VHOST_USER_PROTOCOL_F_INBAND_NOTIFICATIONS =14 ,VHOST_USER_PROTOCOL_F_CONFIGURE_MEM_SLOTS =15 ,VHOST_USER_PROTOCOL_F_STATUS =16 , -VHOST_USER_PROTOCOL_F_SHARED_OBJECT =17 , +/* Feature 17 reserved for VHOST_USER_PROTOCOL_F_XEN_MMAP. */ +VHOST_USER_PROTOCOL_F_SHARED_OBJECT =18 , VHOST_USER_PROTOCOL_F_MAX };May I ask, why not define
VHOST_USER_PROTOCOL_F_XEN_MMAPas well instead of a comment mention?
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
Perhaps because we will never use it from Qemu code ?
Vikram's work on enabling xenpvh support will mean enabling grant support and while I suspect most VirtIO backends will be within QEMU itself if it ever want to off-load something to a vhost-user backend it will need to ensure this flag is set.
Hanna,
It would be good to define it then in the current commit itself.
Not that I’m really opposed to that, but I don’t see the problem with just doing that in the same work that makes qemu actually use this flag, exactly because it’s just a -1/+1 change.
I can send a v2, but should I do the same for libvhost-user and define the flag there? Do I have to add a patch to do the same for F_STATUS, which so far only got a placeholder comment?
Hanna
Quoted 7 lines · Hanna Czenczek
Not that I’m really opposed to that, but I don’t see the problem with just doing that in the same work that makes qemu actually use this flag, exactly because it’s just a -1/+1 change.
I can send a v2, but should I do the same for libvhost-user and define the flag there? Do I have to add a patch to do the same for
F_STATUS, which so far only got a placeholder comment?
Sure, that's fine too.
Signature · 1 line
viresh
Quoted 9 lines · Viresh Kumar
Quoted 7 lines · Hanna Czenczek
Not that I’m really opposed to that, but I don’t see the problem with just doing that in the same work that makes qemu actually use this flag, exactly because it’s just a -1/+1 change.
I can send a v2, but should I do the same for libvhost-user and define the flag there? Do I have to add a patch to do the same for
F_STATUS, which so far only got a placeholder comment?Sure, that's fine too.
I would rather not, though, and don’t see a tangible benefit in doing so.
Quoted 5 lines · Hanna Czenczek
Quoted 4 lines · Viresh Kumar
Quoted 3 lines · Hanna Czenczek
Not that I’m really opposed to that, but I don’t see the problem with just doing that in the same work that makes qemu actually use this flag, exactly because it’s just a -1/+1 change.
I should have replied here :)
Quoted 7 lines
Quoted 5 lines
Quoted 4 lines
I can send a v2, but should I do the same for libvhost-user and define the flag there? Do I have to add a patch to do the same for
F_STATUS, which so far only got a placeholder comment?Sure, that's fine too.
I would rather not, though, and don’t see a tangible benefit in doing so.
Sorry for the miscommunication, I meant we can leave it as is for now and let it be handled by the commit that uses it.
Signature · 1 line
viresh
Hi!
Thanks for the patch, and sorry for not noticing the flag had already been assigned. The patch looks good to me!
BR,
Albert
Quoted 19 lines · Viresh Kumar
Quoted 1 line · Hanna Czenczek
Not that I’m really opposed to that, but I don’t see the problem with
just
Quoted 1 line
doing that in the same work that makes qemu actually use this flag,
exactly
Quoted 3 lines
because it’s just a -1/+1 change.
I can send a v2, but should I do the same for libvhost-user and define
the
Quoted 1 line
flag there? Do I have to add a patch to do the same for
F_STATUS, whichso
Quoted 1 line
far only got a placeholder comment?
Sure, that's fine too.
--
viresh
Quoted 4 lines · Albert Esteve
Hi!
Thanks for the patch, and sorry for not noticing the flag had already been assigned. The patch looks good to me!
Hi Albert,
I looked at the shared object code for the first time:
- There are memory leaks in virtio_add_dmabuf() and virtio_add_vhost_device() when the UUID was added previously.
- The hash table is global and there is no spoofing protection, so vhost-user devices can hijack known UUIDs. Is it possible to associate a vhost_dev owner with each shared object and only allow the owner to remove it?
- Is there cleanup code that removes shared objects from the hash table when a vhost_dev is destroyed? Otherwise TYPE_VHOST_DEV shared objects are leaked and their stale vhost_dev pointers could be dereferenced.
- virtio-dmabuf.h API naming suggests this is a core VirtIODevice API:virtio_free_resources(), virtio_add_vhost_device(), etc rather than an API for VirtioSharedObject. Can the names be made more specific:
virtio_dmabuf_*() or virtio_shobj_*() so it's clear these APIs are related to the dmabufs/shared objects?
Thanks,
Stefan
Quoted 4 lines · Stefan Hajnoczi
Quoted 3 lines · Albert Esteve
Hi!
Quoted 8 lines
Quoted 1 line
Thanks for the patch, and sorry for not noticing the flag had already
been assigned. The patch looks good to me!
Hi Albert,
I looked at the shared object code for the first time:
- There are memory leaks invirtio_add_dmabuf()andvirtio_add_vhost_device()when the UUID was added previously.
There is a patch already for fixing the leak:
https://patchew.org/QEMU/c61c13f9a0c67dec473bdbfc8789c29ef26c900b.1696624734.git.quic._5Fmathbern@quicinc.com/
Quoted 5 lines
- The hash table is global and there is no spoofing protection, so vhost-user devices can hijack known UUIDs. Is it possible to associate a
vhost_devowner with each shared object and only allow the owner to remove it?
True, it is unprotected from another backend to remove an entry without ownership.
It sounds like a nice addition, I will post a patch. Thanks!
Quoted 5 lines
- Is there cleanup code that removes shared objects from the hash table when a
vhost_devis destroyed? OtherwiseTYPE_VHOST_DEVshared objects are leaked and their stalevhost_devpointers could be dereferenced.
There is not. In a first thought, I assumed that the backends will be in charge
of cleaning their entries from the shared hash table when they are destroyed (prematurely or no). I will look into occurrences of vhost_dev getting destroyed
that may need explicit handling of the leftover entries.
Quoted 6 lines
-
virtio-dmabuf.hAPI naming suggests this is a core VirtIODevice API:virtio_free_resources(),virtio_add_vhost_device(), etc rather than an API for VirtioSharedObject. Can the names be made more specific:
virtio_dmabuf_*() or virtio_shobj_*() so it's clear these APIs are related to the dmabufs/shared objects?
Improving the names with what you suggested sounds good to me. I guess I'll go with virtio_dmabuf_*, for consistency with the file name. But shobj would be ok too.
Quoted 5 lines
Thanks,
Stefan
Quoted 3 lines · Albert Esteve
Quoted 2 lines · Stefan Hajnoczi
On Tue, 17 Oct 2023 at 04:26, Albert Esteve <[email protected]> wrote:
Thanks for considering my feedback!
Quoted 4 lines
There is not. In a first thought, I assumed that the backends will be in charge of cleaning their entries from the shared hash table when they are destroyed (prematurely or no). I will look into occurrences of
vhost_devgetting destroyed that may need explicit handling of the leftover entries.
QEMU supports hot (un)plug of vhost-user devices. vhost-user backends may also crash.
QEMU cannot rely solely on the backend to take any cleanup action because a backend may be buggy or misbehave.
Stefan
Quoted 1 line · Viresh Kumar
Perhaps because we will never use it from Qemu code ?
It'd be nice if downstream users of the vhost-user protocol can fetch and use the header verbatim. For example, for automatically generating bindings.
Quoted 16 lines · Manos Pitsidianakis
Quoted 11 lines · Hanna Czenczek
include/hw/virtio/vhost-user.h +2
-1@@ -29,7 +29,8 @@ enum VhostUserProtocolFeature { VHOST_USER_PROTOCOL_F_INBAND_NOTIFICATIONS = 14, VHOST_USER_PROTOCOL_F_CONFIGURE_MEM_SLOTS = 15, VHOST_USER_PROTOCOL_F_STATUS = 16, - VHOST_USER_PROTOCOL_F_SHARED_OBJECT = 17, + /* Feature 17 reserved for VHOST_USER_PROTOCOL_F_XEN_MMAP. */ + VHOST_USER_PROTOCOL_F_SHARED_OBJECT = 18,Quoted 2 lines
VHOST_USER_PROTOCOL_F_MAX
};May I ask, why not define
VHOST_USER_PROTOCOL_F_XEN_MMAPas well instead of a comment mention?
No particular reason, it’s just what I had planned to do for a while in other series that would introduce feature bits (e.g. https://lists.nongnu.org/archive/html/qemu-devel/2023-07/msg02452.html). I think I took that from libvhost-user, which does this for VHOST_USER_PROTOCOL_F_STATUS.
Quoted 3 lines
Otherwise:
Reviewed-by Emmanouil Pitsidianakis <[email protected]>
Thanks!
Hanna
Quoted 4 lines · Hanna Czenczek
The
VHOST_USER_PROTOCOL_F_XEN_MMAPfeature bit was defined inf21e95ee97d, which has been part of qemu's 8.1.0 release. However, it seems it was never added to qemu's code, but it is well possible that it is already used by different front-ends outside of qemu (i.e., Xen).
Yep, and also some backends (e.g. we released rust-vmm/vhost v0.8.0 with F_XEN_MMAP = 17 defined).
Quoted 15 lines
VHOST_USER_PROTOCOL_F_SHARED_OBJECTin contrast was added to qemu's code in 16094766627, but never defined in the vhost-user specification. As a consequence, both bits were defined to be 17, which cannot work.Regardless of whether actual code or the specification should take precedence,
F_XEN_MMAPis already part of a qemu release, whileF_SHARED_OBJECTis not. Therefore, bump the latter to take number 18 instead of 17, and add this to the specification.Take the opportunity to add at least a little note on the VhostUserShared structure to the specification. This structure is referenced by the new commands introduced in 16094766627, but was not defined.
Quoted 8 lines
Fixes 160947666276c5b7f6bca4d746bcac2966635d79("vhost-user: add
shared_objectmsg")Signed-off-by Hanna Czenczek <[email protected]>---
docs/interop/vhost-user.rst | 11 +++++++++++ include/hw/virtio/vhost-user.h | 3 ++- subprojects/libvhost-user/libvhost-user.h | 3 ++- 3 files changed, 15 insertions(+), 2 deletions(-)
Thanks for fixinig this!
Quoted 62 lines
docs/interop/vhost-user.rst +0
-0@@ -275,6 +275,16 @@ Inflight description:queue size: a 16-bit size of virtqueues
docs/interop/vhost-user.rst +10
-0+VhostUserShared +^^^^^^^^^^^^^^^ + ++------+ +| UUID | ++------+ + +:UUID: 16 bytes UUID, whose first three components (a 32-bit value, then + two 16-bit values) are stored in big endian. +C structure
-----------docs/interop/vhost-user.rst +1
-0@@ -885,6 +895,7 @@ Protocol features #define VHOST_USER_PROTOCOL_F_CONFIGURE_MEM_SLOTS 15 #define VHOST_USER_PROTOCOL_F_STATUS 16 #define VHOST_USER_PROTOCOL_F_XEN_MMAP 17 + #define VHOST_USER_PROTOCOL_F_SHARED_OBJECT 18Front-end message types
-----------------------include/hw/virtio/vhost-user.h +2
-1@@ -29,7 +29,8 @@ enum VhostUserProtocolFeature {VHOST_USER_PROTOCOL_F_INBAND_NOTIFICATIONS =14 ,VHOST_USER_PROTOCOL_F_CONFIGURE_MEM_SLOTS =15 ,VHOST_USER_PROTOCOL_F_STATUS =16 , -VHOST_USER_PROTOCOL_F_SHARED_OBJECT =17 , +/* Feature 17 reserved for VHOST_USER_PROTOCOL_F_XEN_MMAP. */ +VHOST_USER_PROTOCOL_F_SHARED_OBJECT =18 , VHOST_USER_PROTOCOL_F_MAX };subprojects/libvhost-user/libvhost-user.h +2
-1@@ -65,7 +65,8 @@ enum VhostUserProtocolFeature {VHOST_USER_PROTOCOL_F_INBAND_NOTIFICATIONS =14 ,VHOST_USER_PROTOCOL_F_CONFIGURE_MEM_SLOTS =15 ,/* Feature 16 is reserved for VHOST_USER_PROTOCOL_F_STATUS. */ -VHOST_USER_PROTOCOL_F_SHARED_OBJECT =17 , +/* Feature 17 reserved for VHOST_USER_PROTOCOL_F_XEN_MMAP. */ +VHOST_USER_PROTOCOL_F_SHARED_OBJECT =18 , VHOST_USER_PROTOCOL_F_MAX };Signature · 1 line
2.41.0
Quoted 90 lines · Hanna Czenczek
The
VHOST_USER_PROTOCOL_F_XEN_MMAPfeature bit was defined inf21e95ee97d, which has been part of qemu's 8.1.0 release. However, it seems it was never added to qemu's code, but it is well possible that it is already used by different front-ends outside of qemu (i.e., Xen).
VHOST_USER_PROTOCOL_F_SHARED_OBJECTin contrast was added to qemu's code in 16094766627, but never defined in the vhost-user specification. As a consequence, both bits were defined to be 17, which cannot work.Regardless of whether actual code or the specification should take precedence,
F_XEN_MMAPis already part of a qemu release, whileF_SHARED_OBJECTis not. Therefore, bump the latter to take number 18 instead of 17, and add this to the specification.Take the opportunity to add at least a little note on the VhostUserShared structure to the specification. This structure is referenced by the new commands introduced in 16094766627, but was not defined.
Fixes 160947666276c5b7f6bca4d746bcac2966635d79("vhost-user: add
shared_objectmsg")Signed-off-by Hanna Czenczek <[email protected]>--- docs/interop/vhost-user.rst | 11 +++++++++++ include/hw/virtio/vhost-user.h | 3 ++- subprojects/libvhost-user/libvhost-user.h | 3 ++- 3 files changed, 15 insertions(+), 2 deletions(-)docs/interop/vhost-user.rst +11
-0@@ -275,6 +275,16 @@ Inflight description :queue size: a 16-bit size of virtqueues +VhostUserShared +^^^^^^^^^^^^^^^ + ++------+ +| UUID | ++------+ + +:UUID: 16 bytes UUID, whose first three components (a 32-bit value, then + two 16-bit values) are stored in big endian. + C structure -----------@@ -885,6 +895,7 @@ Protocol features #define VHOST_USER_PROTOCOL_F_CONFIGURE_MEM_SLOTS 15 #define VHOST_USER_PROTOCOL_F_STATUS 16 #define VHOST_USER_PROTOCOL_F_XEN_MMAP 17 + #define VHOST_USER_PROTOCOL_F_SHARED_OBJECT 18 Front-end message types -----------------------include/hw/virtio/vhost-user.h +2
-1@@ -29,7 +29,8 @@ enum VhostUserProtocolFeature {VHOST_USER_PROTOCOL_F_INBAND_NOTIFICATIONS =14 ,VHOST_USER_PROTOCOL_F_CONFIGURE_MEM_SLOTS =15 ,VHOST_USER_PROTOCOL_F_STATUS =16 , -VHOST_USER_PROTOCOL_F_SHARED_OBJECT =17 , +/* Feature 17 reserved for VHOST_USER_PROTOCOL_F_XEN_MMAP. */ +VHOST_USER_PROTOCOL_F_SHARED_OBJECT =18 , VHOST_USER_PROTOCOL_F_MAX };subprojects/libvhost-user/libvhost-user.h +2
-2@@ -65,7 +65,8 @@ enum VhostUserProtocolFeature {VHOST_USER_PROTOCOL_F_INBAND_NOTIFICATIONS =14 ,VHOST_USER_PROTOCOL_F_CONFIGURE_MEM_SLOTS =15 ,/* Feature 16 is reserved for VHOST_USER_PROTOCOL_F_STATUS. */ -VHOST_USER_PROTOCOL_F_SHARED_OBJECT =17 , +/* Feature 17 reserved for VHOST_USER_PROTOCOL_F_XEN_MMAP. */ +VHOST_USER_PROTOCOL_F_SHARED_OBJECT =18 , VHOST_USER_PROTOCOL_F_MAX }; --2.41.0