Commit 80287ba0 authored by John Levon's avatar John Levon Committed by Tomasz Zawadzki
Browse files

nvmf/vfio-user: log controller changes



Disabling and enabling the controller is notable enough that it's worth
logging, even in release mode.

Signed-off-by: default avatarJohn Levon <john.levon@nutanix.com>
Change-Id: If801d9adc16b5f174702b45ceee8bfe44e26553d
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/22301


Community-CI: Mellanox Build Bot
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarChangpeng Liu <changpeng.liu@intel.com>
Reviewed-by: default avatarThanos Makatos <thanos.makatos@nutanix.com>
Reviewed-by: default avatarJim Harris <jim.harris@samsung.com>
parent d9558219
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -2795,8 +2795,7 @@ memory_region_remove_cb(vfu_ctx_t *vfu_ctx, vfu_dma_info_t *info)
static void
disable_ctrlr(struct nvmf_vfio_user_ctrlr *vu_ctrlr)
{
	SPDK_DEBUGLOG(nvmf_vfio, "%s: disabling controller\n",
		      ctrlr_id(vu_ctrlr));
	SPDK_NOTICELOG("%s: disabling controller\n", ctrlr_id(vu_ctrlr));

	/* Unmap Admin queue. */

@@ -2834,8 +2833,7 @@ enable_ctrlr(struct nvmf_vfio_user_ctrlr *vu_ctrlr)

	assert(vu_ctrlr != NULL);

	SPDK_DEBUGLOG(nvmf_vfio, "%s: enabling controller\n",
		      ctrlr_id(vu_ctrlr));
	SPDK_NOTICELOG("%s: enabling controller\n", ctrlr_id(vu_ctrlr));

	err = acq_setup(vu_ctrlr);
	if (err != 0) {