]> xenbits.xensource.com Git - people/aperard/linux.git/commit
xen/gntdev: provide find_special_page VMA operation grant-mapping-fix-backport-3.16
authorDavid Vrabel <david.vrabel@citrix.com>
Thu, 18 Dec 2014 14:59:07 +0000 (14:59 +0000)
committerAnthony PERARD <anthony.perard@citrix.com>
Thu, 7 May 2015 17:06:41 +0000 (18:06 +0100)
commita5e893584e71031cf97c2a8e980f72b6f1c97fcf
tree2e43926da7c583eaeb0a364a08fcbadb22c5851a
parentb84f0b7ac32d8f4232ec75f67c25668b0b73ec7a
xen/gntdev: provide find_special_page VMA operation

For a PV guest, use the find_special_page op to find the right page.
To handle VMAs being split, remember the start of the original VMA so
the correct index in the pages array can be calculated.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
(cherry picked from commit dab069c61aa386f6a46c620f3a1075a4818f285b)
drivers/xen/gntdev.c