+109
−44
Loading
While we are quiesced, we're not allowed to access guest memory via the SGL APIs. Refuse to process any commands unless we're in RUNNING state. We need to synchronize with each poll group via a message before we can call vfu_device_quiesced(), otherwise we could still be processing commands via nvmf_vfio_user_sq_poll(). For interrupt mode, we then might miss processing commands in a corresponding interrupt callback, so make sure we process them when we return to RUNNING state. Signed-off-by:John Levon <john.levon@nutanix.com> Change-Id: Ieae5a9ae8d9de722e0bdf4bb8d61e7e678159f1f Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12912 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:
Changpeng Liu <changpeng.liu@intel.com>