Diff for /qemu/hw/virtio.h between versions 1.1.1.8 and 1.1.1.9

version 1.1.1.8, 2018/04/24 18:47:45 version 1.1.1.9, 2018/04/24 19:01:45
Line 46 Line 46
 #define VIRTIO_F_NOTIFY_ON_EMPTY        24  #define VIRTIO_F_NOTIFY_ON_EMPTY        24
 /* We support indirect buffer descriptors */  /* We support indirect buffer descriptors */
 #define VIRTIO_RING_F_INDIRECT_DESC     28  #define VIRTIO_RING_F_INDIRECT_DESC     28
   /* The Guest publishes the used index for which it expects an interrupt
    * at the end of the avail ring. Host should ignore the avail->flags field. */
   /* The Host publishes the avail index for which it expects a kick
    * at the end of the used ring. Guest should ignore the used->flags field. */
   #define VIRTIO_RING_F_EVENT_IDX         29
 /* A guest should never accept this.  It implies negotiation is broken. */  /* A guest should never accept this.  It implies negotiation is broken. */
 #define VIRTIO_F_BAD_FEATURE            30  #define VIRTIO_F_BAD_FEATURE            30
   
Line 192  void virtio_bind_device(VirtIODevice *vd Line 197  void virtio_bind_device(VirtIODevice *vd
                         void *opaque);                          void *opaque);
   
 /* Base devices.  */  /* Base devices.  */
 VirtIODevice *virtio_blk_init(DeviceState *dev, BlockConf *conf);  VirtIODevice *virtio_blk_init(DeviceState *dev, BlockConf *conf,
                                 char **serial);
 struct virtio_net_conf;  struct virtio_net_conf;
 VirtIODevice *virtio_net_init(DeviceState *dev, NICConf *conf,  VirtIODevice *virtio_net_init(DeviceState *dev, NICConf *conf,
                               struct virtio_net_conf *net);                                struct virtio_net_conf *net);
 VirtIODevice *virtio_serial_init(DeviceState *dev, uint32_t max_nr_ports);  typedef struct virtio_serial_conf virtio_serial_conf;
   VirtIODevice *virtio_serial_init(DeviceState *dev, virtio_serial_conf *serial);
 VirtIODevice *virtio_balloon_init(DeviceState *dev);  VirtIODevice *virtio_balloon_init(DeviceState *dev);
 #ifdef CONFIG_LINUX  #ifdef CONFIG_LINUX
 VirtIODevice *virtio_9p_init(DeviceState *dev, V9fsConf *conf);  VirtIODevice *virtio_9p_init(DeviceState *dev, V9fsConf *conf);
Line 206  VirtIODevice *virtio_9p_init(DeviceState Line 213  VirtIODevice *virtio_9p_init(DeviceState
 void virtio_net_exit(VirtIODevice *vdev);  void virtio_net_exit(VirtIODevice *vdev);
 void virtio_blk_exit(VirtIODevice *vdev);  void virtio_blk_exit(VirtIODevice *vdev);
 void virtio_serial_exit(VirtIODevice *vdev);  void virtio_serial_exit(VirtIODevice *vdev);
   void virtio_balloon_exit(VirtIODevice *vdev);
   
 #define DEFINE_VIRTIO_COMMON_FEATURES(_state, _field) \  #define DEFINE_VIRTIO_COMMON_FEATURES(_state, _field) \
         DEFINE_PROP_BIT("indirect_desc", _state, _field, \          DEFINE_PROP_BIT("indirect_desc", _state, _field, \
                         VIRTIO_RING_F_INDIRECT_DESC, true)                          VIRTIO_RING_F_INDIRECT_DESC, true), \
           DEFINE_PROP_BIT("event_idx", _state, _field, \
                           VIRTIO_RING_F_EVENT_IDX, true)
   
 target_phys_addr_t virtio_queue_get_desc_addr(VirtIODevice *vdev, int n);  target_phys_addr_t virtio_queue_get_desc_addr(VirtIODevice *vdev, int n);
 target_phys_addr_t virtio_queue_get_avail_addr(VirtIODevice *vdev, int n);  target_phys_addr_t virtio_queue_get_avail_addr(VirtIODevice *vdev, int n);

Removed from v.1.1.1.8  
changed lines
  Added in v.1.1.1.9


unix.superglobalmegacorp.com