]> xenbits.xensource.com Git - people/julieng/linux-arm.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)
committerJulien Grall <julien.grall@citrix.com>
Fri, 11 Sep 2015 19:10:31 +0000 (20:10 +0100)
commit292ce04341e5c8b00cd7b07b16a2f7d21d8b66b6
tree378927c7077fb3c468c61c674679a517e4bfe739
parentb53dde4a2b612464c5f8bda8c3fdea817679fb2b
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>
---
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
    Changes in v3:
        - Add Stefano's reviewed-by

    Changes in v2
        - Add David's reviewed-by
arch/arm/xen/p2m.c
drivers/xen/grant-table.c