Loading
lib/vfio_user: change the calculation of bar_addr
When calculating the bar_addr which is used to access SPARSE MMAP area, we should use the (offset - region->mmaps[i].offset) as the increment to get the valid access address. Signed-off-by:Jun Zeng <jun1.zeng@intel.com> Change-Id: Ie5d0c63cf572847d15dc92f0995fddecf35f1cdc Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/13021 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Reviewed-by:
Changpeng Liu <changpeng.liu@intel.com> Reviewed-by:
Xiaodong Liu <xiaodong.liu@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com> Reviewed-by:
Dong Yi <dongx.yi@intel.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com>