Home
last modified time | relevance | path

Searched refs:virtio_has_feature (Results 1 – 12 of 12) sorted by relevance

/qemu/hw/virtio/
H A Dvhost-user.c438 bool shmfd = virtio_has_feature(dev->protocol_features, in vhost_user_set_log_base()
1009 bool reply_supported = virtio_has_feature(dev->protocol_features, in vhost_user_set_mem_table()
1012 virtio_has_feature(dev->protocol_features, in vhost_user_set_mem_table()
1061 bool cross_endian = virtio_has_feature(dev->protocol_features, in vhost_user_set_vring_endian()
1132 bool reply_supported = virtio_has_feature(dev->protocol_features, in vhost_user_write_sync()
1237 if (!virtio_has_feature(dev->features, VHOST_USER_F_PROTOCOL_FEATURES)) { in vhost_user_set_vring_enable()
1455 if (virtio_has_feature(dev->protocol_features, in vhost_user_set_features()
1510 if (!virtio_has_feature(dev->protocol_features, in vhost_user_reset_device()
1568 if (!virtio_has_feature(dev->protocol_features, in vhost_user_backend_handle_vring_host_notifier()
1881 bool reply_supported = virtio_has_feature(dev->protocol_features, in vhost_setup_backend_channel()
[all …]
H A Dvirtio-balloon.c713 if (virtio_has_feature(features, VIRTIO_BALLOON_F_PAGE_POISON)) { in virtio_balloon_config_size()
716 if (virtio_has_feature(features, VIRTIO_BALLOON_F_FREE_PAGE_HINT)) { in virtio_balloon_config_size()
885 if (virtio_has_feature(s->host_features, VIRTIO_BALLOON_F_FREE_PAGE_HINT) && in virtio_balloon_device_realize()
896 if (virtio_has_feature(s->host_features, VIRTIO_BALLOON_F_FREE_PAGE_HINT)) { in virtio_balloon_device_realize()
907 if (virtio_has_feature(s->host_features, VIRTIO_BALLOON_F_REPORTING)) { in virtio_balloon_device_realize()
H A Dvhost-vsock-common.c41 !virtio_has_feature(features, VIRTIO_VSOCK_F_SEQPACKET)) { in vhost_vsock_common_get_features()
H A Dvdpa-dev.c230 if (!virtio_has_feature(features, VIRTIO_F_IOMMU_PLATFORM)) { in vhost_vdpa_device_get_features()
H A Dvhost.c1998 !virtio_has_feature(hdev->backend_features, in vhost_dev_set_vring_enable()
H A Dvirtio-pci.c1975 !virtio_has_feature(vdev->host_features, VIRTIO_F_VERSION_1)) { in virtio_pci_device_plugged()
/qemu/hw/net/
H A Dvirtio-net.c300 if (virtio_has_feature(vdev->guest_features, VIRTIO_NET_F_MTU)) { in virtio_net_vhost_status()
821 if (!virtio_has_feature(vdev->backend_features, VIRTIO_NET_F_CTRL_VQ)) { in virtio_net_get_features()
958 !virtio_has_feature(vdev->backend_features, VIRTIO_NET_F_MTU)) { in virtio_net_set_features()
963 virtio_has_feature(features, VIRTIO_NET_F_RSS) || in virtio_net_set_features()
964 virtio_has_feature(features, VIRTIO_NET_F_MQ)); in virtio_net_set_features()
967 virtio_has_feature(features, in virtio_net_set_features()
969 virtio_has_feature(features, in virtio_net_set_features()
971 virtio_has_feature(features, in virtio_net_set_features()
974 n->rsc4_enabled = virtio_has_feature(features, VIRTIO_NET_F_RSC_EXT) && in virtio_net_set_features()
975 virtio_has_feature(features, VIRTIO_NET_F_GUEST_TSO4); in virtio_net_set_features()
[all …]
/qemu/hw/display/
H A Dvhost-user-gpu.c634 if (virtio_has_feature(g->vhost->dev.features, VIRTIO_GPU_F_VIRGL)) { in vhost_user_gpu_device_realize()
637 if (virtio_has_feature(g->vhost->dev.features, VIRTIO_GPU_F_EDID)) { in vhost_user_gpu_device_realize()
643 if (virtio_has_feature(g->vhost->dev.features, in vhost_user_gpu_device_realize()
647 if (virtio_has_feature(g->vhost->dev.features, in vhost_user_gpu_device_realize()
/qemu/include/hw/virtio/
H A Dvirtio.h443 static inline bool virtio_has_feature(uint64_t features, unsigned int fbit) in virtio_has_feature() function
452 return virtio_has_feature(vdev->guest_features, fbit); in virtio_vdev_has_feature()
458 return virtio_has_feature(vdev->host_features, fbit); in virtio_host_has_feature()
/qemu/hw/block/
H A Dvirtio-blk.c479 if (!virtio_has_feature(s->host_features, VIRTIO_BLK_F_ZONED)) { in check_zoned_request()
1181 if (virtio_has_feature(s->host_features, VIRTIO_BLK_F_DISCARD)) { in virtio_blk_update_config()
1197 if (virtio_has_feature(s->host_features, VIRTIO_BLK_F_WRITE_ZEROES)) { in virtio_blk_update_config()
1252 if (!virtio_has_feature(features, VIRTIO_F_VERSION_1)) { in virtio_blk_get_features()
1260 virtio_has_feature(features, VIRTIO_BLK_F_CONFIG_WCE))) { in virtio_blk_get_features()
1752 if (virtio_has_feature(s->host_features, VIRTIO_BLK_F_DISCARD) && in virtio_blk_device_realize()
1761 if (virtio_has_feature(s->host_features, VIRTIO_BLK_F_WRITE_ZEROES) && in virtio_blk_device_realize()
/qemu/hw/char/
H A Dvirtio-serial-bus.c590 if (!virtio_has_feature(vser->host_features, in set_config()
1043 if (!virtio_has_feature(vser->host_features, in virtio_serial_device_realize()
/qemu/hw/s390x/
H A Dvirtio-ccw.c1161 if (!virtio_has_feature(vdev->host_features, VIRTIO_F_VERSION_1)) { in virtio_ccw_device_plugged()