search for: vhost_mev_set_st

Displaying 7 results from an estimated 7 matches for "vhost_mev_set_st".

2019 Sep 27
5
[PATCH] vhost: introduce mdev based hardware backend
...break; > > + case VHOST_SET_FEATURES: > > + r = vhost_set_features(m, argp); > > + break; > > + case VHOST_GET_VRING_BASE: > > + r = vhost_get_vring_base(m, argp); > > + break; > > > Does it mean the SET_VRING_BASE may only take affect after > VHOST_MEV_SET_STATE? Yeah, in this version, SET_VRING_BASE won't set the base to the device directly. But I plan to not delay this anymore in the next version to support the SET_STATUS. > > > > + default: > > + r = vhost_dev_ioctl(&m->dev, cmd, argp); > > + if (r == -ENOIOCT...
2019 Sep 27
5
[PATCH] vhost: introduce mdev based hardware backend
...break; > > + case VHOST_SET_FEATURES: > > + r = vhost_set_features(m, argp); > > + break; > > + case VHOST_GET_VRING_BASE: > > + r = vhost_get_vring_base(m, argp); > > + break; > > > Does it mean the SET_VRING_BASE may only take affect after > VHOST_MEV_SET_STATE? Yeah, in this version, SET_VRING_BASE won't set the base to the device directly. But I plan to not delay this anymore in the next version to support the SET_STATUS. > > > > + default: > > + r = vhost_dev_ioctl(&m->dev, cmd, argp); > > + if (r == -ENOIOCT...
2019 Sep 27
1
[PATCH] vhost: introduce mdev based hardware backend
...t; > + r = vhost_set_features(m, argp); > > > > + break; > > > > + case VHOST_GET_VRING_BASE: > > > > + r = vhost_get_vring_base(m, argp); > > > > + break; > > > Does it mean the SET_VRING_BASE may only take affect after > > > VHOST_MEV_SET_STATE? > > Yeah, in this version, SET_VRING_BASE won't set the base to the > > device directly. But I plan to not delay this anymore in the next > > version to support the SET_STATUS. > > > > > > + default: > > > > + r = vhost_dev_ioctl(&m->...
2019 Sep 27
0
[PATCH] vhost: introduce mdev based hardware backend
...gt;> + case VHOST_SET_FEATURES: >>> + r = vhost_set_features(m, argp); >>> + break; >>> + case VHOST_GET_VRING_BASE: >>> + r = vhost_get_vring_base(m, argp); >>> + break; >> Does it mean the SET_VRING_BASE may only take affect after >> VHOST_MEV_SET_STATE? > Yeah, in this version, SET_VRING_BASE won't set the base to the > device directly. But I plan to not delay this anymore in the next > version to support the SET_STATUS. > >>> + default: >>> + r = vhost_dev_ioctl(&m->dev, cmd, argp); >>> + if...
2019 Sep 27
0
[PATCH] vhost: introduce mdev based hardware backend
...: > + r = vhost_get_features(m, argp); > + break; > + case VHOST_SET_FEATURES: > + r = vhost_set_features(m, argp); > + break; > + case VHOST_GET_VRING_BASE: > + r = vhost_get_vring_base(m, argp); > + break; Does it mean the SET_VRING_BASE may only take affect after VHOST_MEV_SET_STATE? > + default: > + r = vhost_dev_ioctl(&m->dev, cmd, argp); > + if (r == -ENOIOCTLCMD) > + r = vhost_vring_ioctl(&m->dev, cmd, argp); > + } > + > + mutex_unlock(&m->mutex); > + return r; > +} > + > +static const struct vfio_device_ops vf...
2019 Sep 26
6
[PATCH] vhost: introduce mdev based hardware backend
This patch introduces a mdev based hardware vhost backend. This backend is built on top of the same abstraction used in virtio-mdev and provides a generic vhost interface for userspace to accelerate the virtio devices in guest. This backend is implemented as a mdev device driver on top of the same mdev device ops used in virtio-mdev but using a different mdev class id, and it will register the
2019 Sep 26
6
[PATCH] vhost: introduce mdev based hardware backend
This patch introduces a mdev based hardware vhost backend. This backend is built on top of the same abstraction used in virtio-mdev and provides a generic vhost interface for userspace to accelerate the virtio devices in guest. This backend is implemented as a mdev device driver on top of the same mdev device ops used in virtio-mdev but using a different mdev class id, and it will register the