All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v13 04/10] vhost: introduce new VhostOps vhost_set_config_call
@ 2022-07-20 13:11 ` Cindy Lu
  0 siblings, 0 replies; 2+ messages in thread
From: Cindy Lu @ 2022-07-20 13:11 UTC (permalink / raw)
  To: lulu, qemu-devel
  Cc: Jason Wang, virtio-fs, Stefan Hajnoczi, Dr. David Alan Gilbert,
	Michael S. Tsirkin, Gonglei (Arei),
	Gerd Hoffmann, Marc-André Lureau

This patch introduces new VhostOps vhost_set_config_call.
This function allows the qemu to set the config
event fd to kernel driver.

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.34.3



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Virtio-fs] [PATCH v13 04/10] vhost: introduce new VhostOps vhost_set_config_call
@ 2022-07-20 13:11 ` Cindy Lu
  0 siblings, 0 replies; 2+ messages in thread
From: Cindy Lu @ 2022-07-20 13:11 UTC (permalink / raw)
  To: lulu, qemu-devel
  Cc: Jason Wang, virtio-fs, Stefan Hajnoczi, Dr. David Alan Gilbert,
	Michael S. Tsirkin, Gonglei (Arei),
	Gerd Hoffmann, Marc-André Lureau

This patch introduces new VhostOps vhost_set_config_call.
This function allows the qemu to set the config
event fd to kernel driver.

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.34.3


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-07-20 13:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-20 13:11 [PATCH v13 04/10] vhost: introduce new VhostOps vhost_set_config_call Cindy Lu
2022-07-20 13:11 ` [Virtio-fs] " Cindy Lu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.