]> git.proxmox.com Git - mirror_qemu.git/commit - tests/virtio-blk-test.c
libqos: drop duplicated virtio_ring.h bit definitions
authorStefan Hajnoczi <stefanha@redhat.com>
Mon, 9 May 2016 12:47:37 +0000 (13:47 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 20 Jun 2016 10:44:12 +0000 (11:44 +0100)
commitee3b850a70613a9e0cedef8c79f76e9ee45cbef3
tree89886d0aab0f638ae133ea35f6478d836348ad9a
parent1373a4c2568282a8f998a778f09d9d628afcd7fd
libqos: drop duplicated virtio_ring.h bit definitions

Note that virtio_ring.h defines feature bits using their bit number:

  #define VIRTIO_RING_F_INDIRECT_DESC     28

On the other hand libqos virtio.h uses the bit mask:

  #define QVIRTIO_F_RING_INDIRECT_DESC    0x10000000

The patch makes the necessary adjustments.

I have used "1u << BITMASK" instead of "1ULL << BITMASK" because the
64-bit feature fields are not implemented in libqos virtio.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 1462798061-30382-5-git-send-email-stefanha@redhat.com
tests/libqos/virtio-mmio.c
tests/libqos/virtio-pci.c
tests/libqos/virtio.c
tests/libqos/virtio.h
tests/virtio-blk-test.c
tests/virtio-net-test.c