Lines Matching refs:features
121 vhost_kernel_get_features(struct virtio_user_dev *dev, uint64_t *features) in vhost_kernel_get_features() argument
127 ret = vhost_kernel_ioctl(data->vhostfds[0], VHOST_GET_FEATURES, features); in vhost_kernel_get_features()
144 *features |= VHOST_KERNEL_GUEST_OFFLOADS_MASK; in vhost_kernel_get_features()
145 *features |= VHOST_KERNEL_HOST_OFFLOADS_MASK; in vhost_kernel_get_features()
152 *features |= (1ull << VIRTIO_NET_F_MQ); in vhost_kernel_get_features()
158 vhost_kernel_set_features(struct virtio_user_dev *dev, uint64_t features) in vhost_kernel_set_features() argument
165 features &= ~(1ULL << VIRTIO_F_IOMMU_PLATFORM); in vhost_kernel_set_features()
167 features &= ~VHOST_KERNEL_GUEST_OFFLOADS_MASK; in vhost_kernel_set_features()
168 features &= ~VHOST_KERNEL_HOST_OFFLOADS_MASK; in vhost_kernel_set_features()
169 features &= ~(1ULL << VIRTIO_NET_F_MQ); in vhost_kernel_set_features()
175 ret = vhost_kernel_ioctl(data->vhostfds[i], VHOST_SET_FEATURES, &features); in vhost_kernel_set_features()
552 if ((dev->features & (1ULL << VIRTIO_NET_F_MRG_RXBUF)) || in vhost_kernel_enable_queue_pair()
553 (dev->features & (1ULL << VIRTIO_F_VERSION_1))) in vhost_kernel_enable_queue_pair()
563 if (vhost_kernel_tap_setup(tapfd, hdr_size, dev->features) < 0) { in vhost_kernel_enable_queue_pair()
578 vhost_kernel_get_backend_features(uint64_t *features) in vhost_kernel_get_backend_features() argument
580 *features = 0; in vhost_kernel_get_backend_features()