[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 2/8] libvhost-user: add PROTOCOL_F_CONFIG if {set, ge
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PULL 2/8] libvhost-user: add PROTOCOL_F_CONFIG if {set, get}_config |
Date: |
Fri, 10 May 2019 16:00:57 +0200 |
From: Marc-André Lureau <address@hidden>
Add the config protocol feature bit if the set_config & get_config
callbacks are implemented.
Signed-off-by: Marc-André Lureau <address@hidden>
Message-id: address@hidden
Signed-off-by: Gerd Hoffmann <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 dcf4a969f238..74d42177c5c8 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.18.1
- [Qemu-devel] [PULL 0/8] Input 20190510 patches, Gerd Hoffmann, 2019/05/10
- [Qemu-devel] [PULL 1/8] libvhost-user: fix -Waddress-of-packed-member, Gerd Hoffmann, 2019/05/10
- [Qemu-devel] [PULL 7/8] virtio-input-host-pci: cleanup types, Gerd Hoffmann, 2019/05/10
- [Qemu-devel] [PULL 3/8] Add vhost-user-backend, Gerd Hoffmann, 2019/05/10
- [Qemu-devel] [PULL 2/8] libvhost-user: add PROTOCOL_F_CONFIG if {set, get}_config,
Gerd Hoffmann <=
- [Qemu-devel] [PULL 8/8] virtio-input: fix Kconfig dependency and Makefile, Gerd Hoffmann, 2019/05/10
- [Qemu-devel] [PULL 5/8] util: simplify unix_listen(), Gerd Hoffmann, 2019/05/10
- [Qemu-devel] [PULL 4/8] Add vhost-user-input-pci, Gerd Hoffmann, 2019/05/10
- [Qemu-devel] [PULL 6/8] contrib: add vhost-user-input, Gerd Hoffmann, 2019/05/10
- Re: [Qemu-devel] [PULL 0/8] Input 20190510 patches, Peter Maydell, 2019/05/10