mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
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
This commit is contained in:
parent
1373a4c256
commit
ee3b850a70
6 changed files with 27 additions and 33 deletions
|
@ -12,22 +12,8 @@
|
|||
|
||||
#include "libqos/malloc.h"
|
||||
|
||||
#define QVIRTIO_F_RING_INDIRECT_DESC 0x10000000
|
||||
#define QVIRTIO_F_RING_EVENT_IDX 0x20000000
|
||||
#define QVIRTIO_F_BAD_FEATURE 0x40000000
|
||||
|
||||
#define QVRING_DESC_F_NEXT 0x1
|
||||
#define QVRING_DESC_F_WRITE 0x2
|
||||
#define QVRING_DESC_F_INDIRECT 0x4
|
||||
|
||||
#define QVIRTIO_F_RING_INDIRECT_DESC 0x10000000
|
||||
#define QVIRTIO_F_RING_EVENT_IDX 0x20000000
|
||||
#define QVIRTIO_F_BAD_FEATURE 0x40000000
|
||||
|
||||
#define QVRING_AVAIL_F_NO_INTERRUPT 1
|
||||
|
||||
#define QVRING_USED_F_NO_NOTIFY 1
|
||||
|
||||
typedef struct QVirtioDevice {
|
||||
/* Device type */
|
||||
uint16_t device_type;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue