search for: set_vq_address

Displaying 20 results from an estimated 133 matches for "set_vq_address".

2020 Sep 15
0
[RFC PATCH 00/22] Enhance VHOST to enable SoC-to-SoC communication
...tation). > Okay, I just tried to compare the 'struct vdpa_config_ops' and 'struct > vhost_config_ops' ( introduced in [RFC PATCH 03/22] vhost: Add ops for > the VHOST driver to configure VHOST device). > > struct vdpa_config_ops { > /* Virtqueue ops */ > int (*set_vq_address)(struct vdpa_device *vdev, > u16 idx, u64 desc_area, u64 driver_area, > u64 device_area); > void (*set_vq_num)(struct vdpa_device *vdev, u16 idx, u32 num); > void (*kick_vq)(struct vdpa_device *vdev, u16 idx); > void (*set_vq_cb)(struct vdpa_device *vdev, u16 idx...
2020 Sep 18
0
[RFC PATCH 00/22] Enhance VHOST to enable SoC-to-SoC communication
...gt;>> vhost_config_ops' ( introduced in [RFC PATCH 03/22] vhost: Add ops for >>>>> the VHOST driver to configure VHOST device). >>>>> >>>>> struct vdpa_config_ops { >>>>> ?????/* Virtqueue ops */ >>>>> ?????int (*set_vq_address)(struct vdpa_device *vdev, >>>>> ?????????????????? u16 idx, u64 desc_area, u64 driver_area, >>>>> ?????????????????? u64 device_area); >>>>> ?????void (*set_vq_num)(struct vdpa_device *vdev, u16 idx, u32 num); >>>>> ?????void (*kick_v...
2020 Sep 16
0
[RFC PATCH 00/22] Enhance VHOST to enable SoC-to-SoC communication
...uct vdpa_config_ops' and 'struct >>> vhost_config_ops' ( introduced in [RFC PATCH 03/22] vhost: Add ops for >>> the VHOST driver to configure VHOST device). >>> >>> struct vdpa_config_ops { >>> ????/* Virtqueue ops */ >>> ????int (*set_vq_address)(struct vdpa_device *vdev, >>> ????????????????? u16 idx, u64 desc_area, u64 driver_area, >>> ????????????????? u64 device_area); >>> ????void (*set_vq_num)(struct vdpa_device *vdev, u16 idx, u32 num); >>> ????void (*kick_vq)(struct vdpa_device *vdev, u16 idx...
2019 Sep 25
3
[PATCH V2 6/8] mdev: introduce virtio device and its device ops
...t? > + > +struct virtio_mdev_callback { > + irqreturn_t (*callback)(void *data); > + void *private; > +}; > + > +/** > + * struct vfio_mdev_device_ops - Structure to be registered for each > + * mdev device to register the device to virtio-mdev module. > + * > + * @set_vq_address: Set the address of virtqueue > + * @mdev: mediated device > + * @idx: virtqueue index > + * @desc_area: address of desc area > + * @driver_area: address of driver area > + * @device_area: address of device area > + * Returns integer: success (0) or error (<...
2019 Sep 25
3
[PATCH V2 6/8] mdev: introduce virtio device and its device ops
...t? > + > +struct virtio_mdev_callback { > + irqreturn_t (*callback)(void *data); > + void *private; > +}; > + > +/** > + * struct vfio_mdev_device_ops - Structure to be registered for each > + * mdev device to register the device to virtio-mdev module. > + * > + * @set_vq_address: Set the address of virtqueue > + * @mdev: mediated device > + * @idx: virtqueue index > + * @desc_area: address of desc area > + * @driver_area: address of driver area > + * @device_area: address of device area > + * Returns integer: success (0) or error (<...
2019 Sep 25
2
[PATCH V2 6/8] mdev: introduce virtio device and its device ops
...id *data); > > > + void *private; > > > +}; > > > + > > > +/** > > > + * struct vfio_mdev_device_ops - Structure to be registered for each > > > + * mdev device to register the device to virtio-mdev module. > > > + * > > > + * @set_vq_address: Set the address of virtqueue > > > + * @mdev: mediated device > > > + * @idx: virtqueue index > > > + * @desc_area: address of desc area > > > + * @driver_area: address of driver area > > > + * @device_area: address of device area > &...
2019 Sep 25
2
[PATCH V2 6/8] mdev: introduce virtio device and its device ops
...id *data); > > > + void *private; > > > +}; > > > + > > > +/** > > > + * struct vfio_mdev_device_ops - Structure to be registered for each > > > + * mdev device to register the device to virtio-mdev module. > > > + * > > > + * @set_vq_address: Set the address of virtqueue > > > + * @mdev: mediated device > > > + * @idx: virtqueue index > > > + * @desc_area: address of desc area > > > + * @driver_area: address of driver area > > > + * @device_area: address of device area > &...
2019 Sep 24
3
[PATCH V2 6/8] mdev: introduce virtio device and its device ops
...0x1 > + > +struct virtio_mdev_callback { > + irqreturn_t (*callback)(void *data); > + void *private; > +}; > + > +/** > + * struct vfio_mdev_device_ops - Structure to be registered for each > + * mdev device to register the device to virtio-mdev module. > + * > + * @set_vq_address: Set the address of virtqueue > + * @mdev: mediated device > + * @idx: virtqueue index > + * @desc_area: address of desc area > + * @driver_area: address of driver area > + * @device_area: address of device area > + * Returns integer: success (0) or error (<...
2023 May 02
1
[PATCH] vdpa/snet: implement the resume vDPA callback
...t = snet_resume_dev(snet); + if (ret) + SNET_ERR(snet->pdev, "SNET[%u] resume failed, err: %d\n", snet->sid, ret); + else + SNET_DBG(snet->pdev, "Resume SNET[%u] device\n", snet->sid); + + return ret; +} + static const struct vdpa_config_ops snet_config_ops = { .set_vq_address = snet_set_vq_address, .set_vq_num = snet_set_vq_num, @@ -536,6 +550,7 @@ static const struct vdpa_config_ops snet_config_ops = { .get_config = snet_get_config, .set_config = snet_set_config, .suspend = snet_suspend, + .resume = snet_resume, }...
2019 Oct 18
2
[PATCH V4 4/6] mdev: introduce virtio device and its device ops
...0x1 > + > +struct virtio_mdev_callback { > + irqreturn_t (*callback)(void *data); > + void *private; > +}; > + > +/** > + * struct vfio_mdev_device_ops - Structure to be registered for each > + * mdev device to register the device to virtio-mdev module. > + * > + * @set_vq_address: Set the address of virtqueue > + * @mdev: mediated device > + * @idx: virtqueue index > + * @desc_area: address of desc area > + * @driver_area: address of driver area > + * @device_area: address of device area > + * Returns integer: success (0) or error (<...
2019 Oct 18
2
[PATCH V4 4/6] mdev: introduce virtio device and its device ops
...0x1 > + > +struct virtio_mdev_callback { > + irqreturn_t (*callback)(void *data); > + void *private; > +}; > + > +/** > + * struct vfio_mdev_device_ops - Structure to be registered for each > + * mdev device to register the device to virtio-mdev module. > + * > + * @set_vq_address: Set the address of virtqueue > + * @mdev: mediated device > + * @idx: virtqueue index > + * @desc_area: address of desc area > + * @driver_area: address of driver area > + * @device_area: address of device area > + * Returns integer: success (0) or error (<...
2019 Oct 23
2
[PATCH V5 4/6] mdev: introduce virtio device and its device ops
...to me versus the class id. The fact that the parent driver defines the device as MDEV_CLASS_ID_VIRTIO should tell us this already. If it was incremented, we'd need an MDEV_CLASS_ID_VIRTIOv2, which the virtio-mdev bus driver could add to its id table and handle differently. > + * > + * @set_vq_address: Set the address of virtqueue > + * @mdev: mediated device > + * @idx: virtqueue index > + * @desc_area: address of desc area > + * @driver_area: address of driver area > + * @device_area: address of device area > + * Returns integer: success (0) or error (<...
2019 Oct 23
2
[PATCH V5 4/6] mdev: introduce virtio device and its device ops
...to me versus the class id. The fact that the parent driver defines the device as MDEV_CLASS_ID_VIRTIO should tell us this already. If it was incremented, we'd need an MDEV_CLASS_ID_VIRTIOv2, which the virtio-mdev bus driver could add to its id table and handle differently. > + * > + * @set_vq_address: Set the address of virtqueue > + * @mdev: mediated device > + * @idx: virtqueue index > + * @desc_area: address of desc area > + * @driver_area: address of driver area > + * @device_area: address of device area > + * Returns integer: success (0) or error (<...
2019 Oct 18
1
[PATCH V4 4/6] mdev: introduce virtio device and its device ops
...device > + * Returns the mdev features (API) support by > + * the device. > + * @get_generation: Get device generaton > + * @mdev: mediated device > + * Returns u32: device generation > + */ > +struct virtio_mdev_device_ops { > + /* Virtqueue ops */ > + int (*set_vq_address)(struct mdev_device *mdev, > + u16 idx, u64 desc_area, u64 driver_area, > + u64 device_area); > + void (*set_vq_num)(struct mdev_device *mdev, u16 idx, u32 num); > + void (*kick_vq)(struct mdev_device *mdev, u16 idx); > + void (*set_vq_cb)(struct mdev_device *mdev, u1...
2019 Sep 24
0
[PATCH V2 6/8] mdev: introduce virtio device and its device ops
..."virtio-mdev" +#define VIRTIO_MDEV_VERSION 0x1 + +struct virtio_mdev_callback { + irqreturn_t (*callback)(void *data); + void *private; +}; + +/** + * struct vfio_mdev_device_ops - Structure to be registered for each + * mdev device to register the device to virtio-mdev module. + * + * @set_vq_address: Set the address of virtqueue + * @mdev: mediated device + * @idx: virtqueue index + * @desc_area: address of desc area + * @driver_area: address of driver area + * @device_area: address of device area + * Returns integer: success (0) or error (< 0) + * @set_vq_num: Set the s...
2019 Oct 11
0
[PATCH V3 5/7] mdev: introduce virtio device and its device ops
...uot;virtio-mdev" +#define VIRTIO_MDEV_F_VERSION_1 0x1 + +struct virtio_mdev_callback { + irqreturn_t (*callback)(void *data); + void *private; +}; + +/** + * struct vfio_mdev_device_ops - Structure to be registered for each + * mdev device to register the device to virtio-mdev module. + * + * @set_vq_address: Set the address of virtqueue + * @mdev: mediated device + * @idx: virtqueue index + * @desc_area: address of desc area + * @driver_area: address of driver area + * @device_area: address of device area + * Returns integer: success (0) or error (< 0) + * @set_vq_num: Set the s...
2019 Sep 26
0
[PATCH V2 6/8] mdev: introduce virtio device and its device ops
...gt;>> + void *private; >>>> +}; >>>> + >>>> +/** >>>> + * struct vfio_mdev_device_ops - Structure to be registered for each >>>> + * mdev device to register the device to virtio-mdev module. >>>> + * >>>> + * @set_vq_address: Set the address of virtqueue >>>> + * @mdev: mediated device >>>> + * @idx: virtqueue index >>>> + * @desc_area: address of desc area >>>> + * @driver_area: address of driver area >>>> + * @device_area: address of device a...
2019 Sep 25
0
[PATCH V2 6/8] mdev: introduce virtio device and its device ops
...callback { >> + irqreturn_t (*callback)(void *data); >> + void *private; >> +}; >> + >> +/** >> + * struct vfio_mdev_device_ops - Structure to be registered for each >> + * mdev device to register the device to virtio-mdev module. >> + * >> + * @set_vq_address: Set the address of virtqueue >> + * @mdev: mediated device >> + * @idx: virtqueue index >> + * @desc_area: address of desc area >> + * @driver_area: address of driver area >> + * @device_area: address of device area >> + * Returns integer: suc...
2019 Nov 04
2
[PATCH V7 4/6] mdev: introduce virtio device and its device ops
...v); This is starting to look like a grab bag of callbacks, what sort of mdev features would the driver have the ability to set on a device? Note that this is not listed as optional, but the sample driver doesn't implement it :-\ Thanks, Alex > + * is accepted by the device. > + * @set_vq_address: Set the address of virtqueue > + * @mdev: mediated device > + * @idx: virtqueue index > + * @desc_area: address of desc area > + * @driver_area: address of driver area > + * @device_area: address of device area > + * Returns integer: success (0) or error (<...
2019 Nov 04
2
[PATCH V7 4/6] mdev: introduce virtio device and its device ops
...v); This is starting to look like a grab bag of callbacks, what sort of mdev features would the driver have the ability to set on a device? Note that this is not listed as optional, but the sample driver doesn't implement it :-\ Thanks, Alex > + * is accepted by the device. > + * @set_vq_address: Set the address of virtqueue > + * @mdev: mediated device > + * @idx: virtqueue index > + * @desc_area: address of desc area > + * @driver_area: address of driver area > + * @device_area: address of device area > + * Returns integer: success (0) or error (<...