Skip to content

Commit 68513bc

Browse files
lulu-github-namemstsirkin
authored andcommitted
vhost: introduce new VhostOps vhost_dev_start
This patch introduces new VhostOps vhost_dev_start callback which allows the vhost_net set the start/stop status to backend Signed-off-by: Cindy Lu <[email protected]> Message-Id: <[email protected]> Reviewed-by: Michael S. Tsirkin <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]> Acked-by: Jason Wang <[email protected]>
1 parent 3f63b4c commit 68513bc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/hw/virtio/vhost-backend.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ typedef int (*vhost_get_inflight_fd_op)(struct vhost_dev *dev,
112112
typedef int (*vhost_set_inflight_fd_op)(struct vhost_dev *dev,
113113
struct vhost_inflight *inflight);
114114

115+
typedef int (*vhost_dev_start_op)(struct vhost_dev *dev, bool started);
115116
typedef struct VhostOps {
116117
VhostBackendType backend_type;
117118
vhost_backend_init vhost_backend_init;
@@ -152,6 +153,7 @@ typedef struct VhostOps {
152153
vhost_backend_mem_section_filter_op vhost_backend_mem_section_filter;
153154
vhost_get_inflight_fd_op vhost_get_inflight_fd;
154155
vhost_set_inflight_fd_op vhost_set_inflight_fd;
156+
vhost_dev_start_op vhost_dev_start;
155157
} VhostOps;
156158

157159
extern const VhostOps user_ops;

0 commit comments

Comments
 (0)