[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 1/7] tests/libqos: mask out VIRTIO_F_RING_PACKED for now
From: |
Stefan Hajnoczi |
Subject: |
[PATCH v2 1/7] tests/libqos: mask out VIRTIO_F_RING_PACKED for now |
Date: |
Tue, 9 Jun 2020 18:02:12 +0100 |
The libqos VIRTIO code does not implement the packed virtqueue layout
yet. Mask out the feature bit for now because tests have a habit of
enabling all device feature bits and we don't want packed virtqueues to
be enabled.
Later patches will enable VIRTIO_F_RING_PACKED so prepare libqos now.
Acked-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
---
tests/qtest/libqos/virtio.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/qtest/libqos/virtio.c b/tests/qtest/libqos/virtio.c
index 9aa360620c..1c3f4a0c8b 100644
--- a/tests/qtest/libqos/virtio.c
+++ b/tests/qtest/libqos/virtio.c
@@ -96,7 +96,8 @@ uint64_t qvirtio_config_readq(QVirtioDevice *d, uint64_t addr)
uint64_t qvirtio_get_features(QVirtioDevice *d)
{
- return d->bus->get_features(d);
+ /* qvirtio does not support packed virtqueues yet */
+ return d->bus->get_features(d) & ~(1ull << VIRTIO_F_RING_PACKED);
}
void qvirtio_set_features(QVirtioDevice *d, uint64_t features)
--
2.26.2
- [PATCH v2 0/7] virtio: enable VIRTIO_F_RING_PACKED for all devices, Stefan Hajnoczi, 2020/06/09
- [PATCH v2 1/7] tests/libqos: mask out VIRTIO_F_RING_PACKED for now,
Stefan Hajnoczi <=
- [PATCH v2 2/7] libvhost-user: advertise vring features, Stefan Hajnoczi, 2020/06/09
- [PATCH v2 3/7] docs: document non-net VHOST_USER_GET_FEATURES behavior, Stefan Hajnoczi, 2020/06/09
- [PATCH v2 4/7] vhost: involve device backends in feature negotiation, Stefan Hajnoczi, 2020/06/09
- Re: [PATCH v2 4/7] vhost: involve device backends in feature negotiation, Michael S. Tsirkin, 2020/06/09
- Re: [PATCH v2 4/7] vhost: involve device backends in feature negotiation, Jason Wang, 2020/06/09
- Re: [PATCH v2 4/7] vhost: involve device backends in feature negotiation, Michael S. Tsirkin, 2020/06/10
- Re: [PATCH v2 4/7] vhost: involve device backends in feature negotiation, Jason Wang, 2020/06/10
- Re: [PATCH v2 4/7] vhost: involve device backends in feature negotiation, Michael S. Tsirkin, 2020/06/10
- Re: [PATCH v2 4/7] vhost: involve device backends in feature negotiation, Jason Wang, 2020/06/10