[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v8 3/9] vhost: add new call back function for config interrup

From: Jason Wang
Subject: Re: [PATCH v8 3/9] vhost: add new call back function for config interrupt
Date: Fri, 9 Jul 2021 13:23:41 +0800
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

在 2021/7/6 下午3:20, Cindy Lu 写道:
To support configure interrupt, we need to
add a new call back function for config interrupt.

Signed-off-by: Cindy Lu <lulu@redhat.com>

Acked-by: Jason Wang <jasowang@redhat.com>

  include/hw/virtio/vhost-backend.h | 3 +++
  1 file changed, 3 insertions(+)

diff --git a/include/hw/virtio/vhost-backend.h 
index 8a6f8e2a7a..8ade8e0bd2 100644
--- a/include/hw/virtio/vhost-backend.h
+++ b/include/hw/virtio/vhost-backend.h
@@ -125,6 +125,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;
@@ -170,6 +172,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;
extern const VhostOps user_ops;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]