numam-spdk/lib/nvmf
John Levon 2089c410ca nvmf/vfio-user: support interrupt mode
To fully support interrupt mode for the vfio-user transport, we need to
arrange to wake up in one of two conditions:

 - we receive a vfio-user message on the socket

 - a client writes to one of our BARs

In response, we can process any pending vfio-user messages, as well as
poll the actual queue pairs.

As there is no way for a client-mapped BAR write to cause us to wake up,
interrupt mode can only work when mappable BAR0 is disabled. In that
case, each BAR write becomes a vfio-user message, and can thus be
handled by registering the libvfio-user socket fd with SPDK.

For the poll group poller, we enable interrupt mode for it during the
vfio-user ->poll_group_create() callback; this only works in the case
that no other transports without interrupt mode support are sharing that
poll group.

Signed-off-by: John Levon <john.levon@nutanix.com>
Change-Id: Ic784d01078b2006edb27892fc0613f934eca930b
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10722
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Community-CI: Mellanox Build Bot
2022-03-02 08:34:23 +00:00
..
ctrlr_bdev.c nvmf: make zcopy_end void 2022-01-06 18:53:42 +00:00
ctrlr_discovery.c nvmf: add discovery subsystem entries to discovery log page 2022-02-28 11:06:16 +00:00
ctrlr.c thread: add spdk_thread_exec_msg() 2022-02-23 10:06:49 +00:00
fc_ls.c spelling: lib 2021-12-03 08:12:55 +00:00
fc.c nvmf/fc: call free() to the object allocated by calloc() 2022-02-28 11:08:16 +00:00
Makefile so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
nvmf_fc.h spelling: lib 2021-12-03 08:12:55 +00:00
nvmf_internal.h nvmf: fix discovery log change notice execution 2022-02-09 18:05:51 +00:00
nvmf_rpc.c nvmf: remove deprecated max_qpairs_per_ctrlr parameter 2022-02-15 14:38:37 +00:00
nvmf.c nvmf: pass poll group to transport during create 2022-02-23 10:05:15 +00:00
rdma.c nvmf: pass poll group to transport during create 2022-02-23 10:05:15 +00:00
spdk_nvmf.map lib/nvmf : Added support for ZCOPY 2021-07-23 08:34:43 +00:00
subsystem.c nvmf: deprecate automatic discovery listener 2022-02-28 11:06:16 +00:00
tcp.c nvmf: pass poll group to transport during create 2022-02-23 10:05:15 +00:00
transport.c nvmf: pass poll group to transport during create 2022-02-23 10:05:15 +00:00
transport.h nvmf: pass poll group to transport during create 2022-02-23 10:05:15 +00:00
vfio_user.c nvmf/vfio-user: support interrupt mode 2022-03-02 08:34:23 +00:00