xen/privcmd: Add support for Linux 64KB page granularity
authorJulien Grall <julien.grall@citrix.com>
Tue, 5 May 2015 15:54:12 +0000 (16:54 +0100)
committerDavid Vrabel <david.vrabel@citrix.com>
Fri, 23 Oct 2015 13:20:42 +0000 (14:20 +0100)
commit5995a68a6272e4e8f4fe4de82cdc877e650fe8be
tree2699b77a0e00a61dfb0a1d3eb65b4645a67274a8
parentd0089e8a0e4c9723d85b01713671358e3d6960df
xen/privcmd: Add support for Linux 64KB page granularity

The hypercall interface (as well as the toolstack) is always using 4KB
page granularity. When the toolstack is asking for mapping a series of
guest PFN in a batch, it expects to have the page map contiguously in
its virtual memory.

When Linux is using 64KB page granularity, the privcmd driver will have
to map multiple Xen PFN in a single Linux page.

Note that this solution works on page granularity which is a multiple of
4KB.

Signed-off-by: Julien Grall <julien.grall@citrix.com>
Reviewed-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
drivers/xen/privcmd.c
drivers/xen/xlate_mmu.c