]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerJoao Martins <joao.m.martins@oracle.com>
Sun, 27 Mar 2016 01:01:15 +0000 (02:01 +0100)
commit91962131725ed6eec2e75679b116fc77338ff340
tree9c80fee8dc815a0cb9b8f275e674be4b5833db4a
parentccde706f0db01c4014b938851858924344d2a634
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>
(cherry picked from commit 5995a68a6272e4e8f4fe4de82cdc877e650fe8be)
Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
drivers/xen/privcmd.c
drivers/xen/xlate_mmu.c