[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v6 03/11] libvhost-user: add PROTOCOL_F_CONFIG if {s
From: |
Marc-André Lureau |
Subject: |
[Qemu-devel] [PATCH v6 03/11] libvhost-user: add PROTOCOL_F_CONFIG if {set, get}_config |
Date: |
Tue, 23 Apr 2019 15:19:56 +0200 |
Add the config protocol feature bit if the set_config & get_config
callbacks are implemented.
Signed-off-by: Marc-André Lureau <address@hidden>
---
contrib/libvhost-user/libvhost-user.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/contrib/libvhost-user/libvhost-user.c
b/contrib/libvhost-user/libvhost-user.c
index e08d6c7b97..e738f6ce88 100644
--- a/contrib/libvhost-user/libvhost-user.c
+++ b/contrib/libvhost-user/libvhost-user.c
@@ -1157,6 +1157,10 @@ vu_get_protocol_features_exec(VuDev *dev, VhostUserMsg
*vmsg)
features |= 1ULL << VHOST_USER_PROTOCOL_F_PAGEFAULT;
}
+ if (dev->iface->get_config && dev->iface->set_config) {
+ features |= 1ULL << VHOST_USER_PROTOCOL_F_CONFIG;
+ }
+
if (dev->iface->get_protocol_features) {
features |= dev->iface->get_protocol_features(dev);
}
--
2.21.0.313.ge35b8cb8e2
- [Qemu-devel] [PATCH v6 00/11] vhost-user for input & GPU, Marc-André Lureau, 2019/04/23
- [Qemu-devel] [PATCH v6 01/11] Add vhost-user-backend, Marc-André Lureau, 2019/04/23
- [Qemu-devel] [PATCH v6 02/11] Add vhost-user-input-pci, Marc-André Lureau, 2019/04/23
- [Qemu-devel] [PATCH v6 03/11] libvhost-user: add PROTOCOL_F_CONFIG if {set, get}_config,
Marc-André Lureau <=
- [Qemu-devel] [PATCH v6 04/11] contrib: add vhost-user-input, Marc-André Lureau, 2019/04/23
- [Qemu-devel] [PATCH v6 07/11] util: compile drm.o on Linux, Marc-André Lureau, 2019/04/23
- [Qemu-devel] [PATCH v6 06/11] virtio: add virtio-gpu bswap helpers header, Marc-André Lureau, 2019/04/23
- [Qemu-devel] [PATCH v6 05/11] vhost-user: add vhost_user_gpu_set_socket(), Marc-André Lureau, 2019/04/23