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