summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Guittot <vincent.guittot@linaro.org>2021-12-10 10:26:14 +0100
committerVincent Guittot <vincent.guittot@linaro.org>2022-06-24 14:55:40 +0200
commit40f6b79cbb6fda678017336a7945ed4bbf698f65 (patch)
tree38a5868019800afc95e643b9173a38dfe3b4f5af
parentdf127d1ffd6110fd126ad4029ce4cc04b6461d21 (diff)
virtio/vhost-user: disable indirect desc and event idx
Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
-rw-r--r--include/hw/virtio/virtio.h4
-rw-r--r--subprojects/libvhost-user/libvhost-user.c4
2 files changed, 2 insertions, 6 deletions
diff --git a/include/hw/virtio/virtio.h b/include/hw/virtio/virtio.h
index b31c4507f5..d0a6489204 100644
--- a/include/hw/virtio/virtio.h
+++ b/include/hw/virtio/virtio.h
@@ -277,10 +277,6 @@ typedef struct VirtIOSCSIConf VirtIOSCSIConf;
typedef struct VirtIORNGConf VirtIORNGConf;
#define DEFINE_VIRTIO_COMMON_FEATURES(_state, _field) \
- DEFINE_PROP_BIT64("indirect_desc", _state, _field, \
- VIRTIO_RING_F_INDIRECT_DESC, true), \
- DEFINE_PROP_BIT64("event_idx", _state, _field, \
- VIRTIO_RING_F_EVENT_IDX, true), \
DEFINE_PROP_BIT64("notify_on_empty", _state, _field, \
VIRTIO_F_NOTIFY_ON_EMPTY, true), \
DEFINE_PROP_BIT64("any_layout", _state, _field, \
diff --git a/subprojects/libvhost-user/libvhost-user.c b/subprojects/libvhost-user/libvhost-user.c
index 47d2efc60f..332c71fe92 100644
--- a/subprojects/libvhost-user/libvhost-user.c
+++ b/subprojects/libvhost-user/libvhost-user.c
@@ -503,8 +503,8 @@ vu_get_features_exec(VuDev *dev, VhostUserMsg *vmsg)
* implementation:
*/
1ULL << VIRTIO_F_NOTIFY_ON_EMPTY |
- 1ULL << VIRTIO_RING_F_INDIRECT_DESC |
- 1ULL << VIRTIO_RING_F_EVENT_IDX |
+// 1ULL << VIRTIO_RING_F_INDIRECT_DESC |
+// 1ULL << VIRTIO_RING_F_EVENT_IDX |
1ULL << VIRTIO_F_VERSION_1 |
/* vhost-user feature bits */