[PATCH v3 4/4] bus/pci: add VFIO sparse mmap support
Cao, Yahui
yahui.cao at intel.com
Mon May 29 08:32:36 CEST 2023
On 5/26/2023 12:31 AM, Miao Li wrote:
> 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.li at intel.com>
> Signed-off-by: Chenbo Xia <chenbo.xia at 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: Yahui Cao <yahui.cao at intel.com>
More information about the dev
mailing list