Revision bcbabae8 hw/virtio.h

b/hw/virtio.h
46 46
#define VIRTIO_F_NOTIFY_ON_EMPTY        24
47 47
/* We support indirect buffer descriptors */
48 48
#define VIRTIO_RING_F_INDIRECT_DESC     28
49
/* The Guest publishes the used index for which it expects an interrupt
50
 * at the end of the avail ring. Host should ignore the avail->flags field. */
51
/* The Host publishes the avail index for which it expects a kick
52
 * at the end of the used ring. Guest should ignore the used->flags field. */
53
#define VIRTIO_RING_F_EVENT_IDX         29
49 54
/* A guest should never accept this.  It implies negotiation is broken. */
50 55
#define VIRTIO_F_BAD_FEATURE		30
51 56

  
......
210 215

  
211 216
#define DEFINE_VIRTIO_COMMON_FEATURES(_state, _field) \
212 217
	DEFINE_PROP_BIT("indirect_desc", _state, _field, \
213
			VIRTIO_RING_F_INDIRECT_DESC, true)
218
			VIRTIO_RING_F_INDIRECT_DESC, true), \
219
	DEFINE_PROP_BIT("event_idx", _state, _field, \
220
			VIRTIO_RING_F_EVENT_IDX, true)
214 221

  
215 222
target_phys_addr_t virtio_queue_get_desc_addr(VirtIODevice *vdev, int n);
216 223
target_phys_addr_t virtio_queue_get_avail_addr(VirtIODevice *vdev, int n);

Also available in: Unified diff