x86/dom0: cleanups for the Dom0 builder
cover x86/dom0: cleanups for the Dom0 builder
The following patches remove two leftovers.
Thanks, Roger.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
PATCH 1/2 x86/dom0: remove autotranslate leftovers
---
Cc: Jan Beulich <[email protected]>
Cc: Andrew Cooper <[email protected]>
--- xen/arch/x86/pv/dom0_build.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-)
xen/arch/x86/pv/dom0_build.c +5 -8
@@ -642,13 +642,10 @@ int __init dom0_construct_pv(struct domain *d, L1_PROT : COMPAT_L1_PROT)); l1tab++; -if ( !paging_mode_translate (d) ) - { - page =mfn_to_page (mfn); -if ( !page->u.inuse.type_info && - !get_page_and_type (page, d, PGT_writable_page) ) -BUG (); - } + page =mfn_to_page (mfn); +if ( !page->u.inuse.type_info && + !get_page_and_type (page, d, PGT_writable_page) ) +BUG (); }if (is_pv_32bit_domain (d) )
@@ -790,7 +787,7 @@ int __init dom0_construct_pv(struct domain *d,if (get_gpfn_from_mfn (mfn) >= count ) {BUG_ON (is_pv_32bit_domain (d)); -if ( !paging_mode_translate (d) && !page->u.inuse.type_info && +if ( !page->u.inuse.type_info && !get_page_and_type (page, d, PGT_writable_page) )BUG ();
Signature · 7 lines
2.14.3 (Apple Git-98) _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [PATCH 1/2] x86/dom0: remove autotranslate leftovers
Quoted 1 line · Roger Pau Monne
Signed-off-by Roger Pau Monné <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [PATCH 1/2] x86/dom0: remove autotranslate leftovers
In reply to Roger Pau MonneQuoted 2 lines
Quoted 1 line
Quoted 1 line · On 19.12.17 at 15:20, <[email protected]> wrote:
Signed-off-by Roger Pau Monné <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
PATCH 2/2 x86/dom0: remove is_pv_domain leftovers from the PV domain builder
In reply to Roger Pau MonneThose where added when PVHv1 was sharing the domain builder with PV.
---
Cc: Jan Beulich <[email protected]>
Cc: Andrew Cooper <[email protected]>
--- xen/arch/x86/pv/dom0_build.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
xen/arch/x86/pv/dom0_build.c +2 -3
@@ -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,
Signature · 7 lines
2.14.3 (Apple Git-98) _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [PATCH 2/2] x86/dom0: remove is_pv_domain leftovers from the PV domain builder
Quoted 4 lines
Quoted 1 line
Quoted 1 line · On 19.12.17 at 15:20, <[email protected]> wrote:
Those where added when PVHv1 was sharing the domain builder with PV.
Signed-off-by Roger Pau Monné <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [PATCH 2/2] x86/dom0: remove is_pv_domain leftovers from the PV domain builder
In reply to Roger Pau MonneQuoted 3 lines · Roger Pau Monne
Those where added when PVHv1 was sharing the domain builder with PV.
Signed-off-by Roger Pau Monné <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel