nvmf/vfio-user: correct vfu_setup_log() usage
SPDK was previously incorrectly requesting log levels such as LOG_NOTICE. Update libvfio-user so it is in fact supported, and check that setting up the callback actually worked. Signed-off-by: John Levon <john.levon@nutanix.com> Change-Id: I41c2a8cf683868c3c2e40470f78e1af3dba29de4 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12839 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
This commit is contained in:
parent
554b3b3fe9
commit
022da3d276
@ -4252,7 +4252,13 @@ nvmf_vfio_user_listen(struct spdk_nvmf_transport *transport,
|
|||||||
ret = -1;
|
ret = -1;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
vfu_setup_log(endpoint->vfu_ctx, vfio_user_log, vfio_user_get_log_level());
|
|
||||||
|
ret = vfu_setup_log(endpoint->vfu_ctx, vfio_user_log,
|
||||||
|
vfio_user_get_log_level());
|
||||||
|
if (ret < 0) {
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
ret = vfio_user_dev_info_fill(vu_transport, endpoint);
|
ret = vfio_user_dev_info_fill(vu_transport, endpoint);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit e036ac145acea1a5aa77879e978ac2fff909a657
|
Subproject commit d307dbcab74aef3680ba99d7f836f2bc0b4bc81e
|
Loading…
Reference in New Issue
Block a user