Home
last modified time | relevance | path

Searched refs:host_features (Results 1 – 25 of 27) sorted by relevance

12

/qemu/hw/virtio/
H A Dvhost-user-snd.c39 parent_obj.host_features, VIRTIO_SND_F_CTLS, false),
51 vdev->host_features); in vu_snd_base_realize()
H A Dvirtio-balloon.c708 uint64_t features = s->host_features; in virtio_balloon_config_size()
789 f |= dev->host_features; in virtio_balloon_get_features()
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()
1044 DEFINE_PROP_BIT("deflate-on-oom", VirtIOBalloon, host_features,
1046 DEFINE_PROP_BIT("free-page-hint", VirtIOBalloon, host_features,
1048 DEFINE_PROP_BIT("page-poison", VirtIOBalloon, host_features,
1050 DEFINE_PROP_BIT("free-page-reporting", VirtIOBalloon, host_features,
H A Dvirtio-bus.c66 vdev->host_features = vdc->get_features(vdev, vdev->host_features, in virtio_bus_device_plugged()
89 virtio_add_feature(&vdev->host_features, VIRTIO_F_IOMMU_PLATFORM); in virtio_bus_device_plugged()
H A Dvirtio-mmio.c166 return vdev->host_features; in virtio_mmio_read()
170 return (vdev->host_features & ~vdc->legacy_features) in virtio_mmio_read()
748 virtio_add_feature(&vdev->host_features, VIRTIO_F_VERSION_1); in virtio_mmio_pre_plugged()
H A Dvirtio-qmp.c747 status->host_features = qmp_decode_features(vdev->device_id, in qmp_x_query_virtio_status()
748 vdev->host_features); in qmp_x_query_virtio_status()
H A Dvhost-user-scmi.c242 vdev->host_features |= (1ULL << VIRTIO_SCMI_F_P2A_CHANNELS); in vu_scmi_device_realize()
H A Dvirtio-pci.c484 ret = vdev->host_features; in virtio_ioport_read()
1499 val = (vdev->host_features & ~vdc->legacy_features) >> in virtio_pci_common_read()
1951 virtio_add_feature(&vdev->host_features, VIRTIO_F_VERSION_1); in virtio_pci_pre_plugged()
1954 virtio_add_feature(&vdev->host_features, VIRTIO_F_BAD_FEATURE); in virtio_pci_pre_plugged()
1975 !virtio_has_feature(vdev->host_features, VIRTIO_F_VERSION_1)) { in virtio_pci_device_plugged()
2125 virtio_add_feature(&vdev->host_features, VIRTIO_F_SR_IOV); in virtio_pci_device_plugged()
H A Dvirtio-hmp-cmds.c152 hmp_virtio_dump_features(mon, s->host_features); in hmp_virtio_status()
H A Dvirtio.c2720 return (vdev->host_features >> 32) != 0; in virtio_64bit_features_needed()
3065 bool bad = (val & ~(vdev->host_features)) != 0; in virtio_set_features_nocheck()
3067 val &= vdev->host_features; in virtio_set_features_nocheck()
3202 uint64_t host_features) in virtio_get_config_size() argument
3209 if (host_features & feature_sizes[i].flags) { in virtio_get_config_size()
3346 features64, vdev->host_features); in virtio_load()
3353 features, vdev->host_features); in virtio_load()
4033 DEFINE_VIRTIO_COMMON_FEATURES(VirtIODevice, host_features),
/qemu/hw/net/
H A Dvirtio-net.c762 features |= n->host_features; in virtio_net_get_features()
806 (n->host_features & 1ULL << VIRTIO_NET_F_MTU)) { in virtio_net_get_features()
3585 static void virtio_net_set_config_size(VirtIONet *n, uint64_t host_features) in virtio_net_set_config_size() argument
3587 virtio_add_feature(&host_features, VIRTIO_NET_F_MAC); in virtio_net_set_config_size()
3589 n->config_size = virtio_get_config_size(&cfg_size_params, host_features); in virtio_net_set_config_size()
3757 n->host_features |= (1ULL << VIRTIO_NET_F_MTU); in virtio_net_device_realize()
3769 n->host_features |= (1ULL << VIRTIO_NET_F_SPEED_DUPLEX); in virtio_net_device_realize()
3779 n->host_features |= (1ULL << VIRTIO_NET_F_SPEED_DUPLEX); in virtio_net_device_realize()
3788 n->host_features |= (1ULL << VIRTIO_NET_F_STANDBY); in virtio_net_device_realize()
3791 virtio_net_set_config_size(n, n->host_features); in virtio_net_device_realize()
[all …]
/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()
1246 features |= s->host_features; in virtio_blk_get_features()
1746 virtio_add_feature(&s->host_features, VIRTIO_BLK_F_ZONED); in virtio_blk_device_realize()
1748 virtio_clear_feature(&s->host_features, VIRTIO_BLK_F_DISCARD); in virtio_blk_device_realize()
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()
1772 s->host_features); in virtio_blk_device_realize()
1864 DEFINE_PROP_BIT64("config-wce", VirtIOBlock, host_features,
[all …]
H A Dvhost-user-blk.c482 vdev->host_features); in vhost_user_blk_device_realize()
581 DEFINE_PROP_BIT64("config-wce", VHostUserBlk, parent_obj.host_features,
583 DEFINE_PROP_BIT64("discard", VHostUserBlk, parent_obj.host_features,
585 DEFINE_PROP_BIT64("write-zeroes", VHostUserBlk, parent_obj.host_features,
/qemu/include/hw/virtio/
H A Dvhost-scsi-common.h36 uint64_t host_features; member
H A Dvirtio-balloon.h71 uint32_t host_features; member
H A Dvirtio-scsi.h100 uint32_t host_features; member
H A Dvirtio-blk.h74 uint64_t host_features; member
H A Dvirtio.h59 uint64_t host_features);
124 uint64_t host_features; member
458 return virtio_has_feature(vdev->host_features, fbit); in virtio_host_has_feature()
H A Dvirtio-serial.h189 uint64_t host_features; member
H A Dvirtio-net.h181 uint64_t host_features; member
/qemu/hw/scsi/
H A Dvhost-user-scsi.c358 DEFINE_PROP_BIT64("hotplug", VHostSCSICommon, host_features,
361 DEFINE_PROP_BIT64("param_change", VHostSCSICommon, host_features,
364 DEFINE_PROP_BIT64("t10_pi", VHostSCSICommon, host_features,
H A Dvhost-scsi.c359 DEFINE_PROP_BIT64("t10_pi", VHostSCSICommon, host_features,
362 DEFINE_PROP_BIT64("hotplug", VHostSCSICommon, host_features,
H A Dvhost-scsi-common.c131 features |= vsc->host_features; in vhost_scsi_common_get_features()
/qemu/hw/s390x/
H A Dvirtio-ccw.c389 (vdev->host_features & ~vdc->legacy_features); in virtio_ccw_cb()
391 features.features = (uint32_t)vdev->host_features; in virtio_ccw_cb()
398 features.features = (uint32_t)(vdev->host_features >> 32); in virtio_ccw_cb()
1148 virtio_add_feature(&vdev->host_features, VIRTIO_F_VERSION_1); in virtio_ccw_pre_plugged()
1161 if (!virtio_has_feature(vdev->host_features, VIRTIO_F_VERSION_1)) { in virtio_ccw_device_plugged()
/qemu/hw/vmapple/
H A Dvirtio-blk.c152 virtio_add_feature(&dev->vdev.parent_obj.host_features, VIRTIO_BLK_F_ZONED); in vmapple_virtio_blk_pci_realize()
/qemu/hw/char/
H A Dvirtio-serial-bus.c560 features |= vser->host_features; in get_features()
590 if (!virtio_has_feature(vser->host_features, in set_config()
1043 if (!virtio_has_feature(vser->host_features, in virtio_serial_device_realize()
1159 DEFINE_PROP_BIT64("emergency-write", VirtIOSerial, host_features,

12