x86/dom0: remove is_pv_domain leftovers from the PV domain builder
authorRoger Pau Monné <roger.pau@citrix.com>
Wed, 20 Dec 2017 09:00:16 +0000 (10:00 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 20 Dec 2017 09:00:16 +0000 (10:00 +0100)
Those where added when PVHv1 was sharing the domain builder with PV.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/pv/dom0_build.c

index 6a5fc326f7abaf97a85320009c6ba96914d10b9f..09c765a06fe5f67ce06c53a6fec245e55a4fb805 100644 (file)
@@ -671,8 +671,7 @@ int __init dom0_construct_pv(struct domain *d,
     }
 
     /* Pages that are part of page tables must be read only. */
-    if  ( is_pv_domain(d) )
-        mark_pv_pt_pages_rdonly(d, l4start, vpt_start, nr_pt_pages);
+    mark_pv_pt_pages_rdonly(d, l4start, vpt_start, nr_pt_pages);
 
     /* Mask all upcalls... */
     for ( i = 0; i < XEN_LEGACY_MAX_VCPUS; i++ )
@@ -751,7 +750,7 @@ int __init dom0_construct_pv(struct domain *d,
     count = d->tot_pages;
 
     /* Set up the phys->machine table if not part of the initial mapping. */
-    if ( is_pv_domain(d) && parms.p2m_base != UNSET_ADDR )
+    if ( parms.p2m_base != UNSET_ADDR )
     {
         pfn = pagetable_get_pfn(v->arch.guest_table);
         setup_pv_physmap(d, pfn, v_start, v_end, vphysmap_start, vphysmap_end,