/qemu/hw/virtio/ |
H A D | virtio.c | 210 if (!virtio_vdev_has_feature(vdev, VIRTIO_RING_F_INDIRECT_DESC)) { in virtio_check_indirect_feature() 254 packed = virtio_vdev_has_feature(vq->vdev, VIRTIO_F_RING_PACKED) ? in virtio_init_region_cache() 522 if (virtio_vdev_has_feature(vq->vdev, VIRTIO_RING_F_EVENT_IDX)) { in virtio_queue_split_set_notification() 551 } else if (virtio_vdev_has_feature(vq->vdev, VIRTIO_RING_F_EVENT_IDX)) { in virtio_queue_packed_set_notification() 581 if (virtio_vdev_has_feature(vq->vdev, VIRTIO_F_RING_PACKED)) { in virtio_queue_set_notification() 749 if (virtio_vdev_has_feature(vq->vdev, VIRTIO_F_RING_PACKED)) { in virtio_queue_empty() 791 if (virtio_vdev_has_feature(vq->vdev, VIRTIO_F_RING_PACKED)) { in virtio_queue_poll() 878 if (virtio_vdev_has_feature(vq->vdev, VIRTIO_F_RING_PACKED)) { in virtqueue_unpop() 906 if (virtio_vdev_has_feature(vq->vdev, VIRTIO_F_RING_PACKED)) { in virtqueue_rewind() 1028 if (virtio_vdev_has_feature(vq->vdev, VIRTIO_F_IN_ORDER)) { in virtqueue_fill() [all …]
|
H A D | vhost-shadow-virtqueue.c | 249 if (virtio_vdev_has_feature(svq->vdev, VIRTIO_RING_F_EVENT_IDX)) { in vhost_svq_kick() 407 if (virtio_vdev_has_feature(svq->vdev, VIRTIO_RING_F_EVENT_IDX)) { in vhost_svq_enable_notification() 425 if (!virtio_vdev_has_feature(svq->vdev, VIRTIO_RING_F_EVENT_IDX)) { in vhost_svq_disable_notification()
|
H A D | virtio-balloon.c | 215 return virtio_vdev_has_feature(vdev, VIRTIO_BALLOON_F_STATS_VQ); in balloon_stats_supported() 592 return virtio_vdev_has_feature(vdev, VIRTIO_BALLOON_F_FREE_PAGE_HINT); in virtio_balloon_free_page_support() 761 return virtio_vdev_has_feature(vdev, VIRTIO_BALLOON_F_PAGE_POISON); in virtio_balloon_page_poison_support()
|
H A D | virtio-mmio.c | 413 if (virtio_vdev_has_feature(vdev, VIRTIO_F_NOTIFICATION_DATA)) { in virtio_mmio_write()
|
H A D | virtio-pci.c | 411 if (virtio_vdev_has_feature(vdev, VIRTIO_F_NOTIFICATION_DATA)) { in virtio_ioport_write() 1406 if (virtio_vdev_has_feature(vdev, VIRTIO_F_VERSION_1)) { in virtio_pci_queue_enabled()
|
H A D | virtio-mem.c | 902 !virtio_vdev_has_feature(vdev, VIRTIO_MEM_F_UNPLUGGED_INACCESSIBLE)) { in virtio_mem_validate_features()
|
H A D | virtio-iommu.c | 1294 if (!virtio_vdev_has_feature(vdev, VIRTIO_IOMMU_F_BYPASS_CONFIG)) { in virtio_iommu_set_config()
|
H A D | vhost.c | 1162 if (virtio_vdev_has_feature(vdev, VIRTIO_F_VERSION_1)) { in vhost_needs_vring_endian()
|
/qemu/net/ |
H A D | vhost-vdpa.c | 332 cvq = virtio_vdev_has_feature(vdev, VIRTIO_NET_F_CTRL_VQ) ? in vhost_vdpa_net_log_global_enable() 755 if (virtio_vdev_has_feature(&n->parent_obj, VIRTIO_NET_F_CTRL_MAC_ADDR)) { in vhost_vdpa_net_load_mac() 780 if (!virtio_vdev_has_feature(&n->parent_obj, VIRTIO_NET_F_CTRL_RX) || in vhost_vdpa_net_load_mac() 926 if (!virtio_vdev_has_feature(&n->parent_obj, VIRTIO_NET_F_MQ)) { in vhost_vdpa_net_load_mq() 945 if (virtio_vdev_has_feature(&n->parent_obj, VIRTIO_NET_F_RSS)) { in vhost_vdpa_net_load_mq() 951 } else if (virtio_vdev_has_feature(&n->parent_obj, in vhost_vdpa_net_load_mq() 971 if (!virtio_vdev_has_feature(&n->parent_obj, in vhost_vdpa_net_load_offloads() 1036 if (!virtio_vdev_has_feature(&n->parent_obj, VIRTIO_NET_F_CTRL_RX)) { in vhost_vdpa_net_load_rx() 1091 if (!virtio_vdev_has_feature(&n->parent_obj, VIRTIO_NET_F_CTRL_RX_EXTRA)) { in vhost_vdpa_net_load_rx() 1198 if (!virtio_vdev_has_feature(&n->parent_obj, VIRTIO_NET_F_CTRL_VLAN)) { in vhost_vdpa_net_load_vlan()
|
/qemu/hw/s390x/ |
H A D | s390-hypercall.c | 51 if (virtio_vdev_has_feature(vdev, VIRTIO_F_NOTIFICATION_DATA)) { in handle_virtio_ccw_notify()
|
/qemu/hw/net/ |
H A D | virtio-net.c | 200 if (!virtio_vdev_has_feature(vdev, VIRTIO_NET_F_CTRL_MAC_ADDR) && in virtio_net_set_config() 201 !virtio_vdev_has_feature(vdev, VIRTIO_F_VERSION_1) && in virtio_net_set_config() 257 if (virtio_vdev_has_feature(vdev, VIRTIO_NET_F_GUEST_ANNOUNCE) && in virtio_net_announce() 258 virtio_vdev_has_feature(vdev, VIRTIO_NET_F_CTRL_VQ)) { in virtio_net_announce() 268 int cvq = virtio_vdev_has_feature(vdev, VIRTIO_NET_F_CTRL_VQ) ? in virtio_net_vhost_status() 540 if (!virtio_vdev_has_feature(vdev, VIRTIO_NET_F_CTRL_VLAN)) { in virtio_net_query_rxfilter() 1059 if (!virtio_vdev_has_feature(vdev, VIRTIO_NET_F_CTRL_GUEST_OFFLOADS)) { in virtio_net_handle_offloads() 1399 if (do_rss && !virtio_vdev_has_feature(vdev, VIRTIO_NET_F_RSS)) { in virtio_net_handle_rss() 1403 if (!do_rss && !virtio_vdev_has_feature(vdev, VIRTIO_NET_F_HASH_REPORT)) { in virtio_net_handle_rss() 1520 if (!virtio_vdev_has_feature(vdev, VIRTIO_NET_F_MQ)) { in virtio_net_handle_mq() [all …]
|
/qemu/include/hw/virtio/ |
H A D | virtio.h | 449 static inline bool virtio_vdev_has_feature(const VirtIODevice *vdev, in virtio_vdev_has_feature() function 463 if (!virtio_vdev_has_feature(vdev, VIRTIO_F_VERSION_1)) { in virtio_is_big_endian()
|
H A D | virtio-access.h | 32 if (virtio_vdev_has_feature(vdev, VIRTIO_F_VERSION_1)) { in virtio_access_is_big_endian()
|
/qemu/hw/scsi/ |
H A D | virtio-scsi.c | 205 if (!virtio_vdev_has_feature(vdev, VIRTIO_F_ANY_LAYOUT)) { in virtio_scsi_parse_req() 1114 if (virtio_vdev_has_feature(vdev, VIRTIO_SCSI_F_CHANGE) && in virtio_scsi_change() 1153 if (virtio_vdev_has_feature(vdev, VIRTIO_SCSI_F_HOTPLUG)) { in virtio_scsi_hotplug() 1190 if (virtio_vdev_has_feature(vdev, VIRTIO_SCSI_F_HOTPLUG)) { in virtio_scsi_hotunplug()
|
/qemu/hw/block/ |
H A D | virtio-blk.c | 1300 if (!virtio_vdev_has_feature(vdev, VIRTIO_BLK_F_CONFIG_WCE)) { in virtio_blk_set_status() 1302 virtio_vdev_has_feature(vdev, in virtio_blk_set_status()
|
/qemu/hw/char/ |
H A D | virtio-serial-bus.c | 97 return virtio_vdev_has_feature(vdev, VIRTIO_CONSOLE_F_MULTIPORT); in use_multiport()
|