RE: [PATCH v1 4/4] bus/pci: add VFIO sparse mmap support

2023-05-21 Thread Xia, Chenbo
toly > > Subject: Re: [PATCH v1 4/4] bus/pci: add VFIO sparse mmap support > > On Mon, 15 May 2023 06:47:00 + > Miao Li wrote: > > > + map_addr = pci_map_resource(addr, vfio_dev_fd, > > +

RE: [PATCH v1 4/4] bus/pci: add VFIO sparse mmap support

2023-05-21 Thread Li, Miao
Cao, Yahui ; Burakov, Anatoly > > Subject: Re: [PATCH v1 4/4] bus/pci: add VFIO sparse mmap support > > On Mon, 15 May 2023 06:47:00 + > Miao Li wrote: > > > + map_addr = pci_map_resource(addr, > vfio_dev_fd, > > +

Re: [PATCH v1 4/4] bus/pci: add VFIO sparse mmap support

2023-05-15 Thread Stephen Hemminger
On Mon, 15 May 2023 06:47:00 + Miao Li wrote: > + map_addr = pci_map_resource(addr, vfio_dev_fd, > + bar->offset + sparse->offset, > sparse->size, > + RTE_MAP_FORCE_ADDRESS); > +

[PATCH v1 4/4] bus/pci: add VFIO sparse mmap support

2023-05-14 Thread Miao Li
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