summaryrefslogtreecommitdiffstats
path: root/hw/rdma/rdma_backend.h
diff options
context:
space:
mode:
authorYuval Shaia2018-08-05 17:35:06 +0200
committerMarcel Apfelbaum2018-08-18 16:59:23 +0200
commit751522275a800c0d1c215b386a17f537bc76cd37 (patch)
treecbfce1b87af6243747e21f21a6625d2df1b94ea7 /hw/rdma/rdma_backend.h
parentMerge remote-tracking branch 'remotes/ehabkost/tags/x86-next-pull-request' in... (diff)
downloadqemu-751522275a800c0d1c215b386a17f537bc76cd37.tar.gz
qemu-751522275a800c0d1c215b386a17f537bc76cd37.tar.xz
qemu-751522275a800c0d1c215b386a17f537bc76cd37.zip
hw/rdma: Make distinction between device init and start modes
There are certain operations that are well considered as part of device configuration while others are needed only when "start" command is triggered by the guest driver. An example of device initialization step is msix_init and example of "device start" stage is the creation of a CQ completion handler thread. Driver expects such distinction - implement it. Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com> Reviewed-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com> Message-Id: <20180805153518.2983-2-yuval.shaia@oracle.com> Signed-off-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
Diffstat (limited to 'hw/rdma/rdma_backend.h')
-rw-r--r--hw/rdma/rdma_backend.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/rdma/rdma_backend.h b/hw/rdma/rdma_backend.h
index 3cd636dd88..3049a73962 100644
--- a/hw/rdma/rdma_backend.h
+++ b/hw/rdma/rdma_backend.h
@@ -52,6 +52,8 @@ int rdma_backend_init(RdmaBackendDev *backend_dev,
uint8_t backend_gid_idx, struct ibv_device_attr *dev_attr,
Error **errp);
void rdma_backend_fini(RdmaBackendDev *backend_dev);
+void rdma_backend_start(RdmaBackendDev *backend_dev);
+void rdma_backend_stop(RdmaBackendDev *backend_dev);
void rdma_backend_register_comp_handler(void (*handler)(int status,
unsigned int vendor_err, void *ctx));
void rdma_backend_unregister_comp_handler(void);