]> git.baikalelectronics.ru Git - kernel.git/commit
xen/grant-table: Make it running on 64KB granularity
authorJulien Grall <julien.grall@citrix.com>
Tue, 5 May 2015 15:37:49 +0000 (16:37 +0100)
committerDavid Vrabel <david.vrabel@citrix.com>
Fri, 23 Oct 2015 13:20:39 +0000 (14:20 +0100)
commitd980f37dacc9f20e24c6b2f2c21810015f08bae5
treebd75362553a4f57a9d6b38ae3ad73bdeed16856f
parente031a7081925ead3cfba88d43f87ed412d03a733
xen/grant-table: Make it running on 64KB granularity

The Xen interface is using 4KB page granularity. This means that each
grant is 4KB.

The current implementation allocates a Linux page per grant. On Linux
using 64KB page granularity, only the first 4KB of the page will be
used.

We could decrease the memory wasted by sharing the page with multiple
grant. It will require some care with the {Set,Clear}ForeignPage macro.

Note that no changes has been made in the x86 code because both Linux
and Xen will only use 4KB page granularity.

Signed-off-by: Julien Grall <julien.grall@citrix.com>
Reviewed-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
arch/arm/xen/p2m.c
drivers/xen/grant-table.c