Spdk/test/unit/lib/nvmf/vfio_user.c
Changpeng Liu 870a606960 nvme: map PRP and SGL lists RO
There is no need to map the PRP/SGL list RW since this memory is never written
to. In fact, SeaBIOS might submit a request where the PRP list resides on
read-only memory, so attempting to map it RW can break things.

Change-Id: I7e4e90b1fa7e33e81b8d5cd8dcb9568c038938ec
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7288
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Community-CI: Mellanox Build Bot
2021-07-13 16:53:42 +00:00
..
.gitignore UT/nvmf/vfio-user: restore nvme_cmd_map UT in nvmf/vfio-user 2021-07-13 16:53:42 +00:00
Makefile UT/nvmf/vfio-user: restore nvme_cmd_map UT in nvmf/vfio-user 2021-07-13 16:53:42 +00:00
vfio_user_ut.c nvme: map PRP and SGL lists RO 2021-07-13 16:53:42 +00:00