File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,12 @@ struct vdpa_device {
89
89
* @vdev: vdpa device
90
90
* @idx: virtqueue index
91
91
* Returns the notifcation area
92
+ * @get_vq_irq: Get the irq number of a virtqueue (optional,
93
+ * but must implemented if require vq irq offloading)
94
+ * @vdev: vdpa device
95
+ * @idx: virtqueue index
96
+ * Returns int: irq number of a virtqueue,
97
+ * negative number if no irq assigned.
92
98
* @get_vq_align: Get the virtqueue align requirement
93
99
* for the device
94
100
* @vdev: vdpa device
@@ -180,6 +186,7 @@ struct vdpa_config_ops {
180
186
u64 (* get_vq_state )(struct vdpa_device * vdev , u16 idx );
181
187
struct vdpa_notification_area
182
188
(* get_vq_notification )(struct vdpa_device * vdev , u16 idx );
189
+ int (* get_vq_irq )(struct vdpa_device * vdv , u16 idx );
183
190
184
191
/* Device ops */
185
192
u32 (* get_vq_align )(struct vdpa_device * vdev );
You can’t perform that action at this time.
0 commit comments