[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v3 08/11] xen: arm: rewrite start of day page table and cpu bring up



On Fri, 2013-09-27 at 15:38 +0100, Ian Campbell wrote:
> @@ -535,6 +572,10 @@ int init_secondary_pagetables(int cpu)
>      per_cpu(xen_pgtable, cpu) = first;
>      per_cpu(xen_dommap, cpu) = domheap;
>  
> +    /* Set init_ttbr for this CPU coming up */
> +    init_ttbr = (uintptr_t) THIS_CPU_PGTABLE + phys_offset;
> +    flush_xen_dcache(init_ttbr);
> +
>      return 0;
>  }
>  #endif 

/me puts on his donkey ears.

We don't really want to run all 32-bit CPUs on CPU0's pagetables, do we
now...

diff --git a/xen/arch/arm/mm.c b/xen/arch/arm/mm.c
index 18fa979..99857ea 100644
--- a/xen/arch/arm/mm.c
+++ b/xen/arch/arm/mm.c
@@ -572,7 +572,7 @@ int init_secondary_pagetables(int cpu)
     per_cpu(xen_dommap, cpu) = domheap;
 
     /* Set init_ttbr for this CPU coming up */
-    init_ttbr = (uintptr_t) THIS_CPU_PGTABLE + phys_offset;
+    init_ttbr = __pa(first);
     flush_xen_dcache(init_ttbr);
 
     return 0;

Now, where did I put my brown paper bag.

Ian.



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.