x86/dom0: Use init_xen_pae_l2_slots() rather than opencoding it
PATCH 1/1 x86/dom0: Use init_xen_pae_l2_slots() rather than opencoding it
No functional change.
Signed-off-by Andrew Cooper <[email protected]>
---
CC: Jan Beulich <[email protected]>
CC: Wei Liu <[email protected]>
--- xen/arch/x86/pv/dom0_build.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
xen/arch/x86/pv/dom0_build.c +2 -5
@@ -684,11 +684,8 @@ int __init dom0_construct_pv(struct domain *d,if ( i ==3 )l3e_get_page (*l3tab)->u.inuse.type_info |= PGT_pae_xen_l2; } -/* Install read-only guest visible MPT mapping. */ - l2tab =l3e_to_l2e (l3start[3 ]); -memcpy (&l2tab[COMPAT_L2_PAGETABLE_FIRST_XEN_SLOT (d)], - &compat_idle_pg_table_l2[l2_table_offset (HIRO_COMPAT_MPT_VIRT_START )], -COMPAT_L2_PAGETABLE_XEN_SLOTS (d) *sizeof (*l2tab)); + +init_xen_pae_l2_slots (l3e_to_l2e (l3start[3 ]), d); }/* Pages that are part of page tables must be read only. */
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 3 lines · Andrew Cooper
No functional change.
Signed-off-by Andrew Cooper <[email protected]>
Reviewed-by Wei Liu <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Jan Beulich
Acked-byQuoted 8 lines
Quoted 1 line
Quoted 1 line · On 08.11.18 at 18:59, <[email protected]> wrote:
Quoted 3 lines · Andrew Cooper
No functional change.
Signed-off-by Andrew Cooper <[email protected]>Reviewed-by Wei Liu <[email protected]>
Acked-by Jan Beulich <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel