Home
last modified time | relevance | path

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

12

/openbmc/qemu/hw/net/
H A Dvirtio-net.c761 features |= n->host_features; in virtio_net_get_features()
805 (n->host_features & 1ULL << VIRTIO_NET_F_MTU)) { in virtio_net_get_features()
3431 virtio_add_feature(&host_features, VIRTIO_NET_F_MAC); in virtio_net_set_config_size()
3601 n->host_features |= (1ULL << VIRTIO_NET_F_MTU); in virtio_net_device_realize()
3635 virtio_net_set_config_size(n, n->host_features); in virtio_net_device_realize()
3917 DEFINE_PROP_BIT64("csum", VirtIONet, host_features,
3942 DEFINE_PROP_BIT64("status", VirtIONet, host_features,
3944 DEFINE_PROP_BIT64("ctrl_vq", VirtIONet, host_features,
3946 DEFINE_PROP_BIT64("ctrl_rx", VirtIONet, host_features,
3957 DEFINE_PROP_BIT64("rss", VirtIONet, host_features,
[all …]
/openbmc/qemu/hw/virtio/
H A Dvirtio-balloon.c694 uint64_t features = s->host_features; in virtio_balloon_config_size()
775 f |= dev->host_features; in virtio_balloon_get_features()
871 if (virtio_has_feature(s->host_features, VIRTIO_BALLOON_F_FREE_PAGE_HINT) && in virtio_balloon_device_realize()
882 if (virtio_has_feature(s->host_features, VIRTIO_BALLOON_F_FREE_PAGE_HINT)) { in virtio_balloon_device_realize()
893 if (virtio_has_feature(s->host_features, VIRTIO_BALLOON_F_REPORTING)) { in virtio_balloon_device_realize()
1005 DEFINE_PROP_BIT("deflate-on-oom", VirtIOBalloon, host_features,
1007 DEFINE_PROP_BIT("free-page-hint", VirtIOBalloon, host_features,
1009 DEFINE_PROP_BIT("page-poison", VirtIOBalloon, host_features,
1011 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.c738 status->host_features = qmp_decode_features(vdev->device_id, in qmp_x_query_virtio_status()
739 vdev->host_features); in qmp_x_query_virtio_status()
H A Dvhost-user-scmi.c237 vdev->host_features |= (1ULL << VIRTIO_SCMI_F_P2A_CHANNELS); in vu_scmi_device_realize()
H A Dvirtio-hmp-cmds.c152 hmp_virtio_dump_features(mon, s->host_features); in hmp_virtio_status()
H A Dvirtio-pci.c486 ret = vdev->host_features; in virtio_ioport_read()
1492 val = (vdev->host_features & ~vdc->legacy_features) >> in virtio_pci_common_read()
1944 virtio_add_feature(&vdev->host_features, VIRTIO_F_VERSION_1); in virtio_pci_pre_plugged()
1947 virtio_add_feature(&vdev->host_features, VIRTIO_F_BAD_FEATURE); in virtio_pci_pre_plugged()
1967 !virtio_has_feature(vdev->host_features, VIRTIO_F_VERSION_1)) { in virtio_pci_device_plugged()
/openbmc/qemu/include/hw/virtio/
H A Dvhost-scsi-common.h36 uint64_t host_features; member
H A Dvirtio-balloon.h70 uint32_t host_features; member
H A Dvirtio-blk.h74 uint64_t host_features; member
H A Dvirtio-scsi.h102 uint32_t host_features; member
H A Dvirtio-serial.h189 uint64_t host_features; member
H A Dvirtio.h59 uint64_t host_features);
124 uint64_t host_features; member
455 return virtio_has_feature(vdev->host_features, fbit); in virtio_host_has_feature()
H A Dvirtio-net.h181 uint64_t host_features; member
/openbmc/qemu/hw/block/
H A Dvhost-user-blk.c467 vdev->host_features); in vhost_user_blk_device_realize()
566 DEFINE_PROP_BIT64("config-wce", VHostUserBlk, parent_obj.host_features,
568 DEFINE_PROP_BIT64("discard", VHostUserBlk, parent_obj.host_features,
570 DEFINE_PROP_BIT64("write-zeroes", VHostUserBlk, parent_obj.host_features,
H A Dvirtio-blk.c483 if (!virtio_has_feature(s->host_features, VIRTIO_BLK_F_ZONED)) { in check_zoned_request()
1175 if (virtio_has_feature(s->host_features, VIRTIO_BLK_F_DISCARD)) { in virtio_blk_update_config()
1191 if (virtio_has_feature(s->host_features, VIRTIO_BLK_F_WRITE_ZEROES)) { in virtio_blk_update_config()
1240 features |= s->host_features; in virtio_blk_get_features()
1875 virtio_add_feature(&s->host_features, VIRTIO_BLK_F_ZONED); in virtio_blk_device_realize()
1877 virtio_clear_feature(&s->host_features, VIRTIO_BLK_F_DISCARD); in virtio_blk_device_realize()
1881 if (virtio_has_feature(s->host_features, VIRTIO_BLK_F_DISCARD) && in virtio_blk_device_realize()
1901 s->host_features); in virtio_blk_device_realize()
1993 DEFINE_PROP_BIT64("config-wce", VirtIOBlock, host_features,
2005 DEFINE_PROP_BIT64("discard", VirtIOBlock, host_features,
[all …]
/openbmc/qemu/hw/scsi/
H A Dvhost-user-scsi.c354 DEFINE_PROP_BIT64("hotplug", VHostSCSICommon, host_features,
357 DEFINE_PROP_BIT64("param_change", VHostSCSICommon, host_features,
360 DEFINE_PROP_BIT64("t10_pi", VHostSCSICommon, host_features,
H A Dvhost-scsi-common.c130 features |= vsc->host_features; in vhost_scsi_common_get_features()
H A Dvhost-scsi.c359 DEFINE_PROP_BIT64("t10_pi", VHostSCSICommon, host_features,
H A Dvirtio-scsi.c929 requested_features |= s->host_features; in virtio_scsi_get_features()
1300 DEFINE_PROP_BIT("hotplug", VirtIOSCSI, host_features,
1302 DEFINE_PROP_BIT("param_change", VirtIOSCSI, host_features,
/openbmc/linux/drivers/virt/vboxguest/
H A Dvboxguest_core.h76 unsigned int host_features; member
H A Dvboxguest_linux.c267 return sprintf(buf, "%#x\n", gdev->host_features); in host_features_show()
271 static DEVICE_ATTR_RO(host_features);
/openbmc/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()
1147 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()
/openbmc/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