[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/6] libvhost-user: add PROTOCOL_F_CONFIG if {set, g
From: |
Marc-André Lureau |
Subject: |
[Qemu-devel] [PATCH 2/6] libvhost-user: add PROTOCOL_F_CONFIG if {set, get}_config |
Date: |
Fri, 26 Apr 2019 12:24:33 +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 dcf4a969f2..74d42177c5 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 0/6] Add vhost-user-input, Marc-André Lureau, 2019/04/26
- [Qemu-devel] [PATCH 1/6] libvhost-user: fix -Waddress-of-packed-member, Marc-André Lureau, 2019/04/26
- [Qemu-devel] [PATCH 2/6] libvhost-user: add PROTOCOL_F_CONFIG if {set, get}_config,
Marc-André Lureau <=
- [Qemu-devel] [PATCH 3/6] Add vhost-user-backend, Marc-André Lureau, 2019/04/26
- [Qemu-devel] [PATCH 5/6] util: simplify unix_listen(), Marc-André Lureau, 2019/04/26
- [Qemu-devel] [PATCH 4/6] Add vhost-user-input-pci, Marc-André Lureau, 2019/04/26
- [Qemu-devel] [PATCH 6/6] contrib: add vhost-user-input, Marc-André Lureau, 2019/04/26