]> git.baikalelectronics.ru Git - kernel.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)
committerDavid Vrabel <david.vrabel@citrix.com>
Fri, 23 Oct 2015 13:20:42 +0000 (14:20 +0100)
commit54f0fbf8bd70cdde539b9489a7958432b5fc9d2e
tree2699b77a0e00a61dfb0a1d3eb65b4645a67274a8
parent98c87a7a107e6d4defad7ac200e30ede46c11336
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