Skip to content

RFC Linux: possible ixes for mapping high MMIO regions

David Vrabel xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2x86/xen: set regions above the end of RAM as 1:1arch/x86/xen/p2m.c arch/x86/xen/setup.c+11 -13 replies
2/2x86/xen: make mfn_to_pfn() work with MFNs that are 1:1 in the p2march/x86/include/asm/pgtable_types.h arch/x86/include/asm/xen/page.h arch/x86/mm/init_32.c +4 more+28 -682 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH RFC 0/2] Linux: possible ixes for mapping high MMIO regions

This a possible fix for the problems with mapping high MMIO regions in certain cases (e.g., the RDMA drivers) as not all mappers were specifing the _PAGE_IOMAP which meant no valid MFN could be found and the resulting PTE would be marked as not present, causing subsequent faults.

It assumes that anything that isn't RAM (whether ballooned out or not) is an I/O region and thus should be 1:1 in the p2m. Ballooned frames are still marked as missing in the p2m as before.

As a follow on, mfn_to_pfn() is (hopefully) extended to do the right thing with such an MFN. This means the Xen-specific _PAGE_IOMAP PTE flag can be removed,

This series is posted as an early RFC in the hope that is an acceptable approach. It has only seen the bare minimum of smoke testing (my test dom0 didn't explode). In particular, I've not actually tested it with a device with a high MMIO.

David