]> git.ipfire.org Git - thirdparty/qemu.git/commit
libqos: add missing virtio-9p feature negotiation
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 23 Oct 2019 10:04:15 +0000 (11:04 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 25 Oct 2019 11:46:22 +0000 (07:46 -0400)
commitc5bd6d02e6eb6ae868abbcbeb5c3a3be8c5379a5
treebee9a761a1a4cddf8a5456d0f6d38a0ff66be3da
parent36d27d2120979db239230bb440c03d41dbe75165
libqos: add missing virtio-9p feature negotiation

VIRTIO Device Initialization requires feature negotiation.  The libqos
virtio-9p driver lacks feature negotiation and is therefore
non-compliant.

libqos tests acknowledge all feature bits advertised by the device,
except VIRTIO_F_BAD_FEATURE (which devices use to detect broken
drivers!) and VIRTIO_RING_F_EVENT_IDX (which is not implemented in
libqos and accepting it would break notifications).

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20191023100425.12168-7-stefanha@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Thomas Huth" <thuth@redhat.com>
tests/libqos/virtio-9p.c