0095e2b994
This function needs to check for SGEs that straddle a 2MB page boundary, and ensure it does not return a length that will cross that boundary. This cannot happen in practice currently with SPDK since all buffers are allocated using rte_malloc(), but an upcoming vhost-scsi target may produce SGEs from a guest VM's physical memory that span a 2MB boundary. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: I8b83c7c39c4cf33815abb22ff2ebc90941b21e28