summaryrefslogtreecommitdiff
path: root/include/linux/vdpa.h
diff options
context:
space:
mode:
authorZhu Lingshan <lingshan.zhu@intel.com>2020-08-04 13:21:23 +0300
committerMichael S. Tsirkin <mst@redhat.com>2020-08-05 18:08:42 +0300
commit4c05433bc6fb4ae172270f0279be8ba89a3da64f (patch)
treee1cffc9077732263aad0fa30a7a7f64c6b67ef01 /include/linux/vdpa.h
parent46af9adefd2fd44afa9e8a5020c520812151f849 (diff)
downloadlinux-4c05433bc6fb4ae172270f0279be8ba89a3da64f.tar.xz
vDPA: dont change vq irq after DRIVER_OK
IRQ of a vq is not expected to be changed in a DRIVER_OK ~ !DRIVER_OK period for irq offloading purposes. Place this comment at the side of bus ops get_vq_irq than in set_status in vhost_vdpa. Signed-off-by: Zhu Lingshan <lingshan.zhu@intel.com> Link: https://lore.kernel.org/r/20200804102123.69978-1-lingshan.zhu@intel.com Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/linux/vdpa.h')
-rw-r--r--include/linux/vdpa.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/vdpa.h b/include/linux/vdpa.h
index 5c530a64aa06..565298cb45d2 100644
--- a/include/linux/vdpa.h
+++ b/include/linux/vdpa.h
@@ -186,6 +186,7 @@ struct vdpa_config_ops {
u64 (*get_vq_state)(struct vdpa_device *vdev, u16 idx);
struct vdpa_notification_area
(*get_vq_notification)(struct vdpa_device *vdev, u16 idx);
+ /* vq irq is not expected to be changed once DRIVER_OK is set */
int (*get_vq_irq)(struct vdpa_device *vdv, u16 idx);
/* Device ops */