]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/grant-table: Add an helper to iterate over a specific number of grants
authorJulien Grall <julien.grall@citrix.com>
Tue, 13 Oct 2015 16:50:12 +0000 (17:50 +0100)
committerJoao Martins <joao.m.martins@oracle.com>
Sun, 27 Mar 2016 01:01:22 +0000 (02:01 +0100)
commit241bb850e57b9e49c107706353f3bcb53f87440e
tree9e74075c709742309824efaa4256e15896fca5dc
parentf6271e8c5624c40d828bf72cf086c42fbb352cad
xen/grant-table: Add an helper to iterate over a specific number of grants

With the 64KB page granularity support on ARM64, a Linux page may be
split accross multiple grant.

Currently we have the helper gnttab_foreach_grant_in_grant to break a
Linux page based on an offset and a len, but it doesn't fit when we only
have a number of grants in hand.

Introduce a new helper which take an array of Linux page and a number of
grant and will figure out the address of each grant.

Signed-off-by: Julien Grall <julien.grall@citrix.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
(cherry picked from commit f73314b28148f9ee9f89a0ae961c8fb36e3269fa)
Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
drivers/xen/grant-table.c
include/xen/grant_table.h