Re: [PATCH 2/2] vfio/helpers: Align mmaps

2024-10-23 Thread Alex Williamson
On Wed, 23 Oct 2024 14:44:19 +0200 Cédric Le Goater wrote: > On 10/22/24 22:08, Alex Williamson wrote: > > Thanks to work by Peter Xu, support is introduced in Linux v6.12 to > > allow pfnmap insertions at PMD and PUD levels of the page table. This > > means that provided a properly aligned mmap

Re: [PATCH 2/2] vfio/helpers: Align mmaps

2024-10-23 Thread Cédric Le Goater
On 10/22/24 22:08, Alex Williamson wrote: Thanks to work by Peter Xu, support is introduced in Linux v6.12 to allow pfnmap insertions at PMD and PUD levels of the page table. This means that provided a properly aligned mmap, the vfio driver is able to map MMIO at significantly larger intervals t

Re: [PATCH 2/2] vfio/helpers: Align mmaps

2024-10-22 Thread Peter Xu
On Tue, Oct 22, 2024 at 02:08:29PM -0600, Alex Williamson wrote: > Thanks to work by Peter Xu, support is introduced in Linux v6.12 to > allow pfnmap insertions at PMD and PUD levels of the page table. This > means that provided a properly aligned mmap, the vfio driver is able > to map MMIO at sig

[PATCH 2/2] vfio/helpers: Align mmaps

2024-10-22 Thread Alex Williamson
Thanks to work by Peter Xu, support is introduced in Linux v6.12 to allow pfnmap insertions at PMD and PUD levels of the page table. This means that provided a properly aligned mmap, the vfio driver is able to map MMIO at significantly larger intervals than PAGE_SIZE. For example on x86_64 (the o