[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v10 04/10] vhost: introduce new VhostOps vhost_set_config_call
From: |
Cindy Lu |
Subject: |
[PATCH v10 04/10] vhost: introduce new VhostOps vhost_set_config_call |
Date: |
Fri, 5 Nov 2021 00:48:21 +0800 |
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>
---
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 81bf3109f8..ff34eb7c8a 100644
--- a/include/hw/virtio/vhost-backend.h
+++ b/include/hw/virtio/vhost-backend.h
@@ -126,6 +126,8 @@ 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 struct VhostOps {
VhostBackendType backend_type;
vhost_backend_init vhost_backend_init;
@@ -171,6 +173,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;
} VhostOps;
int vhost_backend_update_device_iotlb(struct vhost_dev *dev,
--
2.21.3
- [PATCH v10 00/10]vhost-vdpa: add support for configure interrupt, Cindy Lu, 2021/11/04
- [PATCH v10 01/10] virtio: introduce macro IRTIO_CONFIG_IRQ_IDX, Cindy Lu, 2021/11/04
- [PATCH v10 02/10] virtio-pci: decouple notifier from interrupt process, Cindy Lu, 2021/11/04
- [PATCH v10 03/10] virtio-pci: decouple the single vector from the interrupt process, Cindy Lu, 2021/11/04
- [PATCH v10 04/10] vhost: introduce new VhostOps vhost_set_config_call,
Cindy Lu <=
- [PATCH v10 05/10] vhost-vdpa: add support for config interrupt, Cindy Lu, 2021/11/04
- [PATCH v10 06/10] virtio: add support for configure interrupt, Cindy Lu, 2021/11/04
- [PATCH v10 08/10] virtio-net: add support for configure interrupt, Cindy Lu, 2021/11/04
- [PATCH v10 07/10] vhost: add support for configure interrupt, Cindy Lu, 2021/11/04
- [PATCH v10 09/10] virtio-mmio: add support for configure interrupt, Cindy Lu, 2021/11/04
- [PATCH v10 10/10] virtio-pci: add support for configure interrupt, Cindy Lu, 2021/11/04
- Re: [PATCH v10 00/10]vhost-vdpa: add support for configure interrupt, Michael S. Tsirkin, 2021/11/07
- Re: [PATCH v10 00/10]vhost-vdpa: add support for configure interrupt, Stefan Hajnoczi, 2021/11/08