OSDN Git Service

hw/rdma: Make distinction between device init and start modes
authorYuval Shaia <yuval.shaia@oracle.com>
Sun, 5 Aug 2018 15:35:06 +0000 (18:35 +0300)
committerMarcel Apfelbaum <marcel.apfelbaum@gmail.com>
Sat, 18 Aug 2018 14:59:23 +0000 (17:59 +0300)
commit751522275a800c0d1c215b386a17f537bc76cd37
treecbfce1b87af6243747e21f21a6625d2df1b94ea7
parent0abaa41d936becd914a16ee1fe2a981d96d19428
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>
hw/rdma/rdma_backend.c
hw/rdma/rdma_backend.h
hw/rdma/rdma_backend_defs.h
hw/rdma/vmw/pvrdma_main.c