> -----Original Message----- > From: Miao Li <miao...@intel.com> > Sent: Thursday, May 25, 2023 10:01 PM > To: dev@dpdk.org > Cc: Sunil Kumar Kori <sk...@marvell.com>; tho...@monjalon.net; > david.march...@redhat.com; ferruh.yi...@amd.com; > chenbo....@intel.com; yahui....@intel.com; Anatoly Burakov > <anatoly.bura...@intel.com> > Subject: [EXT] [PATCH v3 4/4] bus/pci: add VFIO sparse mmap support > > External Email > > ---------------------------------------------------------------------- > This patch adds sparse mmap support in PCI bus. Sparse mmap is a capability > defined in VFIO which allows multiple mmap areas in one VFIO region. > > In this patch, the sparse mmap regions are mapped to one continuous virtual > address region that follows device-specific BAR layout. So, driver can still > access all mapped sparse mmap regions by using 'bar_base_address + > bar_offset'. > > Signed-off-by: Miao Li <miao...@intel.com> > Signed-off-by: Chenbo Xia <chenbo....@intel.com> > --- > drivers/bus/pci/linux/pci_vfio.c | 104 +++++++++++++++++++++++++++---- > drivers/bus/pci/private.h | 2 + > 2 files changed, 94 insertions(+), 12 deletions(-) >
Acked-by: Sunil Kumar Kori <sk...@marvell.com> ... [snipped] ... > 2.25.1