search for: parent_features

Displaying 3 results from an estimated 3 matches for "parent_features".

2023 Jul 03
0
[PATCH] vdpa: reject F_ENABLE_AFTER_DRIVER_OK if backend does not support it
...> { > struct vhost_vdpa *v = filep->private_data; > struct vhost_dev *d = &v->vdev; > + const struct vdpa_config_ops *ops = v->vdpa->config; > void __user *argp = (void __user *)arg; > u64 __user *featurep = argp; > - u64 features; > + u64 features, parent_features = 0; > long r = 0; > > if (cmd == VHOST_SET_BACKEND_FEATURES) { > if (copy_from_user(&features, featurep, sizeof(features))) > return -EFAULT; > + if (ops->get_backend_features) > + parent_features = ops->get_backend_features(v->vdpa); > if (f...
2023 Jul 04
1
[PATCH] vdpa: reject F_ENABLE_AFTER_DRIVER_OK if backend does not support it
...struct vhost_dev *d = &v->vdev; > > > + const struct vdpa_config_ops *ops = v->vdpa->config; > > > void __user *argp = (void __user *)arg; > > > u64 __user *featurep = argp; > > > - u64 features; > > > + u64 features, parent_features = 0; > > > long r = 0; > > > > > > if (cmd == VHOST_SET_BACKEND_FEATURES) { > > > if (copy_from_user(&features, featurep, sizeof(features))) > > > return -EFAULT; > > > + if (ops-&g...
2023 Jul 04
1
[PATCH] vdpa: reject F_ENABLE_AFTER_DRIVER_OK if backend does not support it
...gt; > > + const struct vdpa_config_ops *ops = v->vdpa->config; > > > > > void __user *argp = (void __user *)arg; > > > > > u64 __user *featurep = argp; > > > > > - u64 features; > > > > > + u64 features, parent_features = 0; > > > > > long r = 0; > > > > > > > > > > if (cmd == VHOST_SET_BACKEND_FEATURES) { > > > > > if (copy_from_user(&features, featurep, sizeof(features))) > > > > > retur...