On Thu, Oct 12, 2017 at 02:54:22PM +0100, Andrew Cooper wrote: > There are currently three functions which write L4 pagetables for Xen, but > they all behave subtly differently. sh_install_xen_entries_in_l4() in > particular is catering for two different usecases, which makes the safety of > the linear mappings hard to follow. > > By consolidating the L4 pagetable writing in a single function, the resulting > setup of Xen's virtual layout is easier to understand. > > No practical changes to the resulting L4, although the logic has been > rearranged to avoid rewriting some slots. This changes the zap_ro_mpt > parameter to simply ro_mpt. > > Both {hap,sh}_install_xen_entries_in_l4() get folded into their callers. The > hap side only a single caller, while the shadow side has two. The shadow > split helps highlight the correctness of the linear slots. > > Signed-off-by: Andrew Cooper <andrew.coop...@citrix.com>
Reviewed-by: Wei Liu <wei.l...@citrix.com> _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel