WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ppc-devel

[XenPPC] [linux-ppc-2.6] [LINUX][XEN][POWERPC] Use Domain Foreign Map

To: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Subject: [XenPPC] [linux-ppc-2.6] [LINUX][XEN][POWERPC] Use Domain Foreign Map
From: Xen patchbot-linux-ppc-2.6 <patchbot-linux-ppc-2.6@xxxxxxxxxxxxxxxxxxx>
Date: Sun, 08 Oct 2006 18:03:30 +0000
Delivery-date: Sun, 08 Oct 2006 11:32:07 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
# Node ID 28adc79fe774f9811e7f98f225327d777664be6a
# Parent  c2f25eb27f246a16df21367fad993ee91732f680
[LINUX][XEN][POWERPC] Use Domain Foreign Map

This patch allows for the SLB logic to recognize the Domain Foreign
Map and insert SLBs for it.  The base is currently hard-coded in but
the logic is disabled by default and only turned on when needed by
replacing a branch with a NOP.

Signed-off-by: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
---
 arch/powerpc/mm/slb_low.S |   17 +++++++++++++++++
 1 files changed, 17 insertions(+)

diff -r c2f25eb27f24 -r 28adc79fe774 arch/powerpc/mm/slb_low.S
--- a/arch/powerpc/mm/slb_low.S Sat Oct 07 17:57:56 2006 -0400
+++ b/arch/powerpc/mm/slb_low.S Sun Oct 08 12:21:35 2006 -0400
@@ -52,6 +52,23 @@ _GLOBAL(slb_allocate_realmode)
        */
        bne     cr7,1f
 
+#ifdef CONFIG_PPC_XEN
+_GLOBAL(slb_miss_kernel_load_xen_nop)
+       b 3f
+       /* Need to check if it is in the part of our XEN Foreign Map */
+       rldicl  r9,r3,30,63             /* get Xen region */
+       cmpldi  cr7,r9,1                /* cmp this bit set to 1 */
+       bne     cr7,3f
+       /* Xen Linear mapping encoding bits, the "li" instruction below
+        * could be patched below (like the other pages of the linear map)
+        * if we ever wish to map anything other that 4K pages in 
+        * this region, right now it is fine as zero.
+        */
+_GLOBAL(slb_miss_kernel_load_xen_linear)
+       li      r11,0
+       b       slb_finish_load
+3:
+#endif
        /* Linear mapping encoding bits, the "li" instruction below will
         * be patched by the kernel at boot
         */

_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [XenPPC] [linux-ppc-2.6] [LINUX][XEN][POWERPC] Use Domain Foreign Map, Xen patchbot-linux-ppc-2 . 6 <=