[Devel] [PATCH hci-8.1 v2 0/2] mm: allow MADV_DOEXEC on VFIO BAR mappings

Konstantin Khorenko khorenko at virtuozzo.com
Wed Nov 4 22:21:52 MSK 2026


On Fri, 16 Oct 2026 23:35:38 +0200, Konstantin Khorenko wrote:
> mm: allow MADV_DOEXEC on VFIO BAR mappings
> 
> VSTOR-103860: keep the VFIO BAR mappings of a QEMU process across a
> live-update exec, so the device keeps its MMIO mappings without a
> re-mmap. Applies on top of "mm, exec: fix the MADV_DOEXEC code we carry
> from Oracle" and needs patch 1 of "mm, binfmt_elf: two fixes also posted
> to mainline" (the copy_huge_pmd() recheck), because every live-update
> exec now copies the BAR's huge PMDs. The latter is posted as
> http://lore.virtuozzo.com/20261014-b4-prep-khorenko-vstor-149847-1-upstream-fixes-v1-0-7fde9ffbebe9@virtuozzo.com
> 
> [...]

Applied to branch-rh10-6.12.0-211.52.1.22.x.vz10-ovz, will be released in rh10-6.12.0-211.52.1.22.18.vz10, thanks!

[1/2] mm: allow MADV_DOEXEC on shared PFN mappings of device memory
      https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/ba11691580f3
[2/2] selftests/mm: check MADV_DOEXEC on VFIO BARs and other PFN mappings
      https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/31ad25004a57

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team




More information about the Devel mailing list