Lines Matching refs:features
829 static int vhost_vsock_set_features(struct vhost_vsock *vsock, u64 features) in vhost_vsock_set_features() argument
834 if (features & ~VHOST_VSOCK_FEATURES) in vhost_vsock_set_features()
838 if ((features & (1 << VHOST_F_LOG_ALL)) && in vhost_vsock_set_features()
843 if ((features & (1ULL << VIRTIO_F_ACCESS_PLATFORM))) { in vhost_vsock_set_features()
848 if (features & (1ULL << VIRTIO_VSOCK_F_SEQPACKET)) in vhost_vsock_set_features()
854 vq->acked_features = features; in vhost_vsock_set_features()
871 u64 features; in vhost_vsock_dev_ioctl() local
888 features = VHOST_VSOCK_FEATURES; in vhost_vsock_dev_ioctl()
889 if (copy_to_user(argp, &features, sizeof(features))) in vhost_vsock_dev_ioctl()
893 if (copy_from_user(&features, argp, sizeof(features))) in vhost_vsock_dev_ioctl()
895 return vhost_vsock_set_features(vsock, features); in vhost_vsock_dev_ioctl()
897 features = VHOST_VSOCK_BACKEND_FEATURES; in vhost_vsock_dev_ioctl()
898 if (copy_to_user(argp, &features, sizeof(features))) in vhost_vsock_dev_ioctl()
902 if (copy_from_user(&features, argp, sizeof(features))) in vhost_vsock_dev_ioctl()
904 if (features & ~VHOST_VSOCK_BACKEND_FEATURES) in vhost_vsock_dev_ioctl()
906 vhost_set_backend_features(&vsock->dev, features); in vhost_vsock_dev_ioctl()