]> git.ipfire.org Git - thirdparty/qemu.git/commit
libqos: enforce Device Initialization order
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 23 Oct 2019 10:04:16 +0000 (11:04 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 25 Oct 2019 11:46:22 +0000 (07:46 -0400)
commit56140fbb8f2bb717eb2670aa1056aeaefe8b0246
treed976fd447f5688d0f2cb2b8036364e5bfdbf0285
parentc5bd6d02e6eb6ae868abbcbeb5c3a3be8c5379a5
libqos: enforce Device Initialization order

According to VIRTIO 1.1 "3.1.1 Driver Requirements: Device
Initialization", configuration space and virtqueues cannot be accessed
before features have been negotiated.  Enforce this requirement.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20191023100425.12168-8-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.c
tests/libqos/virtio.h