All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCHv3 0/2] mm: infrastructure for correctly handling foreign pages on Xen
@ 2015-01-19 15:47 ` David Vrabel
  0 siblings, 0 replies; 10+ messages in thread
From: David Vrabel @ 2015-01-19 15:47 UTC (permalink / raw)
  To: Andrew Morton, linux-kernel; +Cc: David Vrabel, linux-mm

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.

Andrew, these are best merged via the Xen tree.  Can I have an acked-by?

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

Changes in v3:

- find_page renamed to find_special_page.
- added documentation.

Changes in v2:

- Add a find_page VMA op instead of the pages field so: a) the size of
  struct vm_area_struct does not increase; and b) the common code need
  not handling splitting the pages area.

David

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

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-01-23  0:06 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-19 15:47 [PATCHv3 0/2] mm: infrastructure for correctly handling foreign pages on Xen David Vrabel
2015-01-19 15:47 ` David Vrabel
2015-01-19 15:47 ` [PATCH 1/2] mm: provide a find_special_page vma operation David Vrabel
2015-01-19 15:47   ` David Vrabel
2015-01-23  0:06   ` Andrew Morton
2015-01-23  0:06     ` Andrew Morton
2015-01-19 15:47 ` [PATCH 2/2] mm: add 'foreign' alias for the 'pinned' page flag David Vrabel
2015-01-19 15:47   ` David Vrabel
2015-01-23  0:06   ` Andrew Morton
2015-01-23  0:06     ` Andrew Morton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.