]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen: Add Xen specific page definition
authorJulien Grall <julien.grall@citrix.com>
Mon, 4 May 2015 14:47:16 +0000 (15:47 +0100)
committerJoao Martins <joao.m.martins@oracle.com>
Sun, 27 Mar 2016 01:01:04 +0000 (02:01 +0100)
commit289becdd70a6d856b1062725e6c6e00da7eb0e24
tree41339dbfb80e1ea7f1142f1f8a10363e630d474b
parent4e07148ead5f9c7ae74e170b206fa64dbe5602c4
xen: Add Xen specific page definition

The Xen hypercall interface is always using 4K page granularity on ARM
and x86 architecture.

With the incoming support of 64K page granularity for ARM64 guest, it
won't be possible to re-use the Linux page definition in Xen drivers.

Introduce Xen page definition helpers based on the Linux page
definition. They have exactly the same name but prefixed with
XEN_/xen_ prefix.

Also modify xen_page_to_gfn to use new Xen page definition.

Signed-off-by: Julien Grall <julien.grall@citrix.com>
Reviewed-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
(cherry picked from commit 1084b1988d22dc165c9dbbc2b0e057f9248ac4db)
Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
include/xen/page.h