Skip to content

mm: infrastructure for correctly handling foreign pages on Xen

David Vrabel linux-mm lkml xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mm: allow for an alternate set of pages for userspace mappingsinclude/linux/mm_types.h mm/memory.c mm/mmap.c+21 -14 replies
1/2mm: allow for an alternate set of pages for userspace mappingsinclude/linux/mm_types.h mm/memory.c mm/mmap.c+21 -10 replies
2/2mm: add 'foreign' alias for the 'pinned' page flaginclude/linux/page-flags.h+2 -00 replies
2/2mm: add 'foreign' alias for the 'pinned' page flaginclude/linux/page-flags.h+2 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCHv1 0/2] mm: infrastructure for correctly handling foreign pages on Xen

These two patches are the common parts of a larger Xen series[1] fixing several long-standing bugs the handling of foreign[2] pages in Xen guests.

The first patch is required to fix get_user_pages[_fast]() with userspace space mappings of such foreign pages. Basically, pte_page() doesn't work so an alternate mechanism is needed to get the page from a VMA and address. By requiring mappings needing this method are 'special' this should not have an impact on the common use cases.

The second patch isn't essential but helps with readability of the resulting user of the page flag.

For further background reading see:

http://xenbits.xen.org/people/dvrabel/grant-improvements-C.pdf

David

[1] http://lists.xen.org/archives/html/xen-devel/2015-01/msg00326.html

[2] Another guest's page temporarily granted to this guest.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>