@@ -133,6 +133,8 @@ typedef int (*vhost_set_config_call_op)(struct vhost_dev *dev,
typedef void (*vhost_reset_status_op)(struct vhost_dev *dev);
+typedef void (*vhost_reset_queue_op)(struct vhost_dev *dev, int idx);
+
typedef struct VhostOps {
VhostBackendType backend_type;
vhost_backend_init vhost_backend_init;
@@ -181,6 +183,7 @@ typedef struct VhostOps {
vhost_force_iommu_op vhost_force_iommu;
vhost_set_config_call_op vhost_set_config_call;
vhost_reset_status_op vhost_reset_status;
+ vhost_reset_queue_op vhost_reset_queue;
} VhostOps;
int vhost_backend_update_device_iotlb(struct vhost_dev *dev,
So different vhost backends can perform custom actions at queue reset. Signed-off-by: Eugenio PĂ©rez <eperezma@redhat.com> --- include/hw/virtio/vhost-backend.h | 3 +++ 1 file changed, 3 insertions(+)