Displaying 3 results from an estimated 3 matches for "vhost_mdev_device_op".
Did you mean:
vhost_mdev_device_ops
2019 Sep 02
2
[RFC v3] vhost: introduce mdev based hardware vhost backend
...+#include <linux/mdev.h>
> +#include <linux/vhost_mdev.h>
> +
> +#include "vhost.h"
> +
> +struct vhost_mdev {
> + struct vhost_dev dev;
> + bool opened;
> + int nvqs;
> + u64 state;
> + u64 acked_features;
> + u64 features;
> + const struct vhost_mdev_device_ops *ops;
> + struct mdev_device *mdev;
> + void *private;
> + struct vhost_virtqueue vqs[];
> +};
> +
> +static void handle_vq_kick(struct vhost_work *work)
> +{
> + struct vhost_virtqueue *vq = container_of(work, struct vhost_virtqueue,
> + poll.work);
> + struct...
2019 Sep 02
2
[RFC v3] vhost: introduce mdev based hardware vhost backend
...+#include <linux/mdev.h>
> +#include <linux/vhost_mdev.h>
> +
> +#include "vhost.h"
> +
> +struct vhost_mdev {
> + struct vhost_dev dev;
> + bool opened;
> + int nvqs;
> + u64 state;
> + u64 acked_features;
> + u64 features;
> + const struct vhost_mdev_device_ops *ops;
> + struct mdev_device *mdev;
> + void *private;
> + struct vhost_virtqueue vqs[];
> +};
> +
> +static void handle_vq_kick(struct vhost_work *work)
> +{
> + struct vhost_virtqueue *vq = container_of(work, struct vhost_virtqueue,
> + poll.work);
> + struct...
2019 Sep 03
0
[RFC v3] vhost: introduce mdev based hardware vhost backend
...t; > +typedef u64 (*vhost_mdev_get_notify_addr_t)(struct vhost_mdev *vdpa, int queue_id);
> > +typedef u16 (*vhost_mdev_get_vring_base_t)(struct vhost_mdev *vdpa, int queue_id);
> > +typedef void (*vhost_mdev_features_changed_t)(struct vhost_mdev *vdpa);
> > +
> > +struct vhost_mdev_device_ops {
> > + vhost_mdev_start_device_t start;
> > + vhost_mdev_stop_device_t stop;
> > + vhost_mdev_notify_device_t notify;
> > + vhost_mdev_get_notify_addr_t get_notify_addr;
> > + vhost_mdev_get_vring_base_t get_vring_base;
> > + vhost_mdev_features_changed_t featu...