qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

libvhost-user: add PROTOCOL_F_CONFIG if {set, get}_config

Add the config protocol feature bit if the set_config & get_config
callbacks are implemented.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-id: 20190503130034.24916-3-marcandre.lureau@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>

authored by

Marc-André Lureau and committed by
Gerd Hoffmann
78067fde d288eef3

+4
+4
contrib/libvhost-user/libvhost-user.c
··· 1157 1157 features |= 1ULL << VHOST_USER_PROTOCOL_F_PAGEFAULT; 1158 1158 } 1159 1159 1160 + if (dev->iface->get_config && dev->iface->set_config) { 1161 + features |= 1ULL << VHOST_USER_PROTOCOL_F_CONFIG; 1162 + } 1163 + 1160 1164 if (dev->iface->get_protocol_features) { 1161 1165 features |= dev->iface->get_protocol_features(dev); 1162 1166 }