nvmf/vfio-user: use stack variable for sparse mmap
libvfio-user will save a copy inside the library. Change-Id: If7bb052b03fb92e46abe50fa945b812d149ef01d Signed-off-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10363 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: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
d1522dd5bc
commit
084db9898a
@ -1866,7 +1866,7 @@ vfio_user_dev_info_fill(struct nvmf_vfio_user_transport *vu_transport,
|
||||
.mpba = {.pbir = 0x5, .pbao = 0x0}
|
||||
};
|
||||
|
||||
static struct iovec sparse_mmap[] = {
|
||||
struct iovec sparse_mmap[] = {
|
||||
{
|
||||
.iov_base = (void *)NVMF_VFIO_USER_DOORBELLS_OFFSET,
|
||||
.iov_len = NVMF_VFIO_USER_DOORBELLS_SIZE,
|
||||
|
Loading…
Reference in New Issue
Block a user