]> git.baikalelectronics.ru Git - kernel.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)
committerDavid Vrabel <david.vrabel@citrix.com>
Fri, 23 Oct 2015 13:20:46 +0000 (14:20 +0100)
commit19e9ed56076865e555fa29d8cb5c0b9163818f88
tree723535d3e14456d2c36d75ebfb97774f74998407
parent8cc54684cb8db385cc013092d9994728a20a5a06
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>
drivers/xen/grant-table.c
include/xen/grant_table.h