]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commit
x86/EPT: split super pages upon mismatching memory types
authorJan Beulich <jbeulich@suse.com>
Thu, 10 Apr 2014 14:05:12 +0000 (16:05 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 10 Apr 2014 14:05:12 +0000 (16:05 +0200)
commit3d90d6e69fe219ce77a3e85b8637cfd62d3a4e0a
tree03af436c78f66b40f320cbce683204a74974378b
parentaa9114edd97b292cd89b3616e3f2089471fd2201
x86/EPT: split super pages upon mismatching memory types

... between constituent pages. To indicate such, the page order is
being passed down to the vMTRR routines, with a negative return value
(possible only on order-non-zero pages) indicating such collisions.

Some code redundancy reduction is being done to ept_set_entry() along
the way, allowing the new handling to be centralized to a single place
there.

In order to keep ept_set_entry() fast and simple, the actual splitting
is being deferred to the EPT_MISCONFIG VM exit handler.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Tim Deegan <tim@xen.org>
Acked-by: Kevin Tian <kevin.tian@intel.com>
xen/arch/x86/hvm/mtrr.c
xen/arch/x86/mm/p2m-ept.c
xen/include/asm-x86/mtrr.h