xen/gntdev: provide find_special_page VMA operation
authorDavid Vrabel <david.vrabel@citrix.com>
Thu, 18 Dec 2014 14:59:07 +0000 (14:59 +0000)
committerDavid Vrabel <david.vrabel@citrix.com>
Wed, 28 Jan 2015 14:04:58 +0000 (14:04 +0000)
commitdab069c61aa386f6a46c620f3a1075a4818f285b
tree8e8797f8605ad66e0e4444b94197ddd1b8300189
parent923b2919e2c318ee1c360a2119a14889fd0fcce4
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>
drivers/xen/gntdev.c