search for: desc_area

Displaying 20 results from an estimated 98 matches for "desc_area".

2023 May 08
1
[PATCH V2 1/5] vDPA/ifcvf: virt queue ops take immediate actions
...;cfg->queue_used_lo, - &cfg->queue_used_hi); - vp_iowrite16(hw->vring[i].size, &cfg->queue_size); - ifcvf_set_vq_state(hw, i, hw->vring[i].last_avail_idx); - vp_iowrite16(1, &cfg->queue_enable); - } +int ifcvf_set_vq_address(struct ifcvf_hw *hw, u16 qid, u64 desc_area, + u64 driver_area, u64 device_area) +{ + struct virtio_pci_common_cfg __iomem *cfg = hw->common_cfg; + + vp_iowrite16(qid, &cfg->queue_select); + vp_iowrite64_twopart(desc_area, &cfg->queue_desc_lo, + &cfg->queue_desc_hi); + vp_iowrite64_twopart(driver_area, &...
2023 Mar 31
1
[PATCH 1/5] virt queue ops take immediate actions
...;cfg->queue_used_lo, - &cfg->queue_used_hi); - vp_iowrite16(hw->vring[i].size, &cfg->queue_size); - ifcvf_set_vq_state(hw, i, hw->vring[i].last_avail_idx); - vp_iowrite16(1, &cfg->queue_enable); - } +int ifcvf_set_vq_address(struct ifcvf_hw *hw, u16 qid, u64 desc_area, + u64 driver_area, u64 device_area) +{ + struct virtio_pci_common_cfg __iomem *cfg = hw->common_cfg; + + vp_iowrite16(qid, &cfg->queue_select); + vp_iowrite64_twopart(desc_area, &cfg->queue_desc_lo, + &cfg->queue_desc_hi); + vp_iowrite64_twopart(driver_area, &...
2019 Sep 25
3
[PATCH V2 6/8] mdev: introduce virtio device and its device ops
...> +/** > + * 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 size of virtqueue > + * @mdev: mediated device > + * @idx: virtqueue index &g...
2019 Sep 25
3
[PATCH V2 6/8] mdev: introduce virtio device and its device ops
...> +/** > + * 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 size of virtqueue > + * @mdev: mediated device > + * @idx: virtqueue index &g...
2023 Mar 31
7
[PATCH 0/5] vDPA/ifcvf: implement immediate initialization mechanism
Formerly, ifcvf driver has implemented a lazy-initialization mechanism for the virtqueues and other config space contents, it would store all configurations that passed down from the userspace, then load them to the device config space upon DRIVER_OK. This can not serve live migration, so this series implement an immediate initialization mechanism, which means rather than the former store-load
2023 May 08
6
[PATCH V2 0/5] vDPA/ifcvf: implement immediate initialization mechanism
Formerly, ifcvf driver has implemented a lazy-initialization mechanism for the virtqueues and other config space contents, it would store all configurations that passed down from the userspace, then load them to the device config space upon DRIVER_OK. This can not serve live migration, so this series implement an immediate initialization mechanism, which means rather than the former store-load
2019 Sep 25
2
[PATCH V2 6/8] mdev: introduce virtio device and its device ops
...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 size of virtqueue > > > + * @mdev: me...
2019 Sep 25
2
[PATCH V2 6/8] mdev: introduce virtio device and its device ops
...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 size of virtqueue > > > + * @mdev: me...
2019 Sep 24
3
[PATCH V2 6/8] mdev: introduce virtio device and its device ops
...> +/** > + * 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 size of virtqueue > + * @mdev: mediated device > + * @idx: virtqueue index &g...
2019 Oct 18
2
[PATCH V4 4/6] mdev: introduce virtio device and its device ops
...> +/** > + * 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) Probably dumb question (have not read the next patches yet): Is this agnostic regarding split or packed queues? > +...
2019 Oct 18
2
[PATCH V4 4/6] mdev: introduce virtio device and its device ops
...> +/** > + * 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) Probably dumb question (have not read the next patches yet): Is this agnostic regarding split or packed queues? > +...
2019 Oct 23
2
[PATCH V5 4/6] mdev: introduce virtio device and its device ops
...dy. 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 (< 0) > + * @set_vq_num: Set the size of virtqueue > + * @mdev: mediated device > + * @idx: virtqueue index &...
2019 Oct 23
2
[PATCH V5 4/6] mdev: introduce virtio device and its device ops
...dy. 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 (< 0) > + * @set_vq_num: Set the size of virtqueue > + * @mdev: mediated device > + * @idx: virtqueue index &...
2019 Oct 18
1
[PATCH V4 4/6] mdev: introduce virtio device and its device ops
...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, u16 idx, > + struct virtio_mdev_callback *cb); > + void (...
2019 Sep 24
0
[PATCH V2 6/8] mdev: introduce virtio device and its device ops
...ack)(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 size of virtqueue + * @mdev: mediated device + * @idx: virtqueue index + * @num: the size of virtque...
2019 Oct 11
0
[PATCH V3 5/7] mdev: introduce virtio device and its device ops
...ack)(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 size of virtqueue + * @mdev: mediated device + * @idx: virtqueue index + * @num: the size of virtque...
2019 Sep 26
0
[PATCH V2 6/8] mdev: introduce virtio device and its device ops
...ered 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 size of virtqueue >>>> + *...
2019 Sep 25
0
[PATCH V2 6/8] mdev: introduce virtio device and its device ops
...ct 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 size of virtqueue >> + * @mdev: mediated device >> + *...
2019 Nov 04
2
[PATCH V7 4/6] mdev: introduce virtio device and its device ops
...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 (< 0) > + * @set_vq_num: Set the size of virtqueue > + * @mdev: mediated device > + * @idx: virtqueue index &...
2019 Nov 04
2
[PATCH V7 4/6] mdev: introduce virtio device and its device ops
...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 (< 0) > + * @set_vq_num: Set the size of virtqueue > + * @mdev: mediated device > + * @idx: virtqueue index &...