79c4324644
Change-Id: I2d302dda68298877c65c99147f5bf22186a59aac
42 lines
1.7 KiB
Diff
42 lines
1.7 KiB
Diff
From af8377d0e9437401ad30d80a27ab1fcf8252fad1 Mon Sep 17 00:00:00 2001
|
|
From: fangyi <eric.fangyi@huawei.com>
|
|
Date: Thu, 16 Nov 2023 09:54:57 +0800
|
|
Subject: [PATCH] vhost: introduce new VhostOps vhost_set_config_call
|
|
|
|
This patch introduces new VhostOps vhost_set_config_call. This function allows the
|
|
vhost to set the event fd to kernel
|
|
|
|
Signed-off-by: Cindy Lu <lulu@redhat.com>
|
|
Message-Id: <20211104164827.21911-5-lulu@redhat.com>
|
|
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
|
|
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
|
|
Signed-off-by: fangyi <eric.fangyi@huawei.com>
|
|
---
|
|
include/hw/virtio/vhost-backend.h | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
diff --git a/include/hw/virtio/vhost-backend.h b/include/hw/virtio/vhost-backend.h
|
|
index a64708f456..bd1c7dfe4f 100644
|
|
--- a/include/hw/virtio/vhost-backend.h
|
|
+++ b/include/hw/virtio/vhost-backend.h
|
|
@@ -125,6 +125,8 @@ typedef int (*vhost_vq_get_addr_op)(struct vhost_dev *dev,
|
|
typedef int (*vhost_get_device_id_op)(struct vhost_dev *dev, uint32_t *dev_id);
|
|
|
|
typedef bool (*vhost_force_iommu_op)(struct vhost_dev *dev);
|
|
+typedef int (*vhost_set_config_call_op)(struct vhost_dev *dev,
|
|
+ int fd);
|
|
typedef void (*vhost_set_used_memslots_op)(struct vhost_dev *dev);
|
|
typedef unsigned int (*vhost_get_used_memslots_op)(void);
|
|
|
|
@@ -173,6 +175,7 @@ typedef struct VhostOps {
|
|
vhost_vq_get_addr_op vhost_vq_get_addr;
|
|
vhost_get_device_id_op vhost_get_device_id;
|
|
vhost_force_iommu_op vhost_force_iommu;
|
|
+ vhost_set_config_call_op vhost_set_config_call;
|
|
vhost_set_used_memslots_op vhost_set_used_memslots;
|
|
vhost_get_used_memslots_op vhost_get_used_memslots;
|
|
} VhostOps;
|
|
--
|
|
2.27.0
|
|
|