]> git.baikalelectronics.ru Git - kernel.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)
committerDavid Vrabel <david.vrabel@citrix.com>
Fri, 23 Oct 2015 13:20:33 +0000 (14:20 +0100)
commit8a3fda262196e8ff5cc541154fd6ce14611bcb38
tree3418ab965863bec947d8abbf56fb2af20f90f558
parent8938c03ceefd1eb20f8340f8e957ef7848a9632b
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>
include/xen/page.h