]> xenbits.xensource.com Git - people/royger/xen.git/commit
x86/p2m: use large pages for MMIO mappings
authorJan Beulich <jbeulich@suse.com>
Thu, 11 Feb 2016 15:45:08 +0000 (16:45 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 11 Feb 2016 15:45:08 +0000 (16:45 +0100)
commitc3c756bde3feab4ab1640f2f3aed73b719118349
treec91b3967695cd30c1170d3cb148a2e271dd68c28
parentdab76ffdfa29ac3e50d908649638decb32c14483
x86/p2m: use large pages for MMIO mappings

When mapping large BARs (e.g. the frame buffer of a graphics card) the
overhead of establishing such mappings using only 4k pages has,
particularly after the XSA-125 fix, become unacceptable. Alter the
XEN_DOMCTL_memory_mapping semantics once again, so that there's no
longer a fixed amount of guest frames that represents the upper limit
of what a single invocation can map. Instead bound execution time by
limiting the number of iterations (regardless of page size).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
tools/libxc/xc_domain.c
xen/arch/x86/domain_build.c
xen/arch/x86/hvm/vmx/vmx.c
xen/arch/x86/mm/p2m-ept.c
xen/arch/x86/mm/p2m-pt.c
xen/arch/x86/mm/p2m.c
xen/common/domctl.c
xen/common/memory.c
xen/include/asm-x86/p2m.h
xen/include/public/domctl.h