On 10/12/2017 02:54 PM, 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>
Acked-by: George Dunlap <george.dun...@citrix.com> _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel