]> www.infradead.org Git - users/jedix/linux-maple.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)
committerJoao Martins <joao.m.martins@oracle.com>
Sun, 27 Mar 2016 01:01:12 +0000 (02:01 +0100)
commitd57b26bfb46ed979feeb319a07710a73fd748a6f
tree0cebc4ee74ac60d709a7b27b5da38092db87b73c
parent16b7b9c28e658a2c760d93e63ebe7b94e7648fa9
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>
(cherry picked from commit 5ed5451d997f7a86c62a5557efc00dc3836dc559)
Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
arch/arm/xen/p2m.c
drivers/xen/grant-table.c