]> Git Repo - linux.git/commit - drivers/xen/grant-table.c
xen/grant: Introduce helpers to split a page into grant
authorJulien Grall <[email protected]>
Fri, 19 Jun 2015 16:49:03 +0000 (17:49 +0100)
committerDavid Vrabel <[email protected]>
Fri, 23 Oct 2015 13:20:33 +0000 (14:20 +0100)
commit008c320a96d218712043f8db0111d5472697785c
treead1140a3a51567e5bb14b71fe002ba40db3bf681
parent1084b1988d22dc165c9dbbc2b0e057f9248ac4db
xen/grant: Introduce helpers to split a page into grant

Currently, a grant is always based on the Xen page granularity (i.e
4KB). When Linux is using a different page granularity, a single page
will be split between multiple grants.

The new helpers will be in charge of splitting the Linux page into grants
and call a function given by the caller on each grant.

Also provide an helper to count the number of grants within a given
contiguous region.

Note that the x86/include/asm/xen/page.h is now including
xen/interface/grant_table.h rather than xen/grant_table.h. It's
necessary because xen/grant_table.h depends on asm/xen/page.h and will
break the compilation. Furthermore, only definition in
interface/grant_table.h is required.

Signed-off-by: Julien Grall <[email protected]>
Reviewed-by: David Vrabel <[email protected]>
Reviewed-by: Stefano Stabellini <[email protected]>
Signed-off-by: David Vrabel <[email protected]>
arch/x86/include/asm/xen/page.h
drivers/xen/grant-table.c
include/xen/grant_table.h
This page took 0.048223 seconds and 4 git commands to generate.