]> git.ipfire.org Git - thirdparty/qemu.git/commit
tests/virtio-blk-test: read config space after feature negotiation
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 23 Oct 2019 10:04:10 +0000 (11:04 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 25 Oct 2019 11:46:22 +0000 (07:46 -0400)
commitc42bf5f21043c86d50773220998b54ded091f779
tree3e3c6f07ee4c4a52aca51e14f79d350b29a106b7
parent74b3e46630446568aecb0be1c77c4875d7a52f6d
tests/virtio-blk-test: read config space after feature negotiation

The VIRTIO Configuration Space cannot be accessed before device feature
bits have been read because a driver doesn't know the endianness until
it has checked VIRTIO_F_VERSION_1.

Fix this problem in preparation for VIRTIO 1.0 support.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20191023100425.12168-2-stefanha@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
tests/virtio-blk-test.c