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-ia64-devel

[Xen-ia64-devel] [patch 10/15] ia64: kexec: identity mapping of EFI memo

To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-ia64-devel] [patch 10/15] ia64: kexec: identity mapping of EFI memory to itlb_miss
From: Simon Horman <horms@xxxxxxxxxxxx>
Date: Tue, 04 Mar 2008 12:28:06 +0900
Cc: Aron Griffis <aron@xxxxxx>, Isaku Yamahata <yamahata@xxxxxxxxxxxxx>, Alex Williamson <alex.williamson@xxxxxx>
Delivery-date: Mon, 03 Mar 2008 19:52:16 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20080304032756.143441228@xxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: quilt/0.46-1
Cc: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Cc: Tristan Gingold <tgingold@xxxxxxx>
Signed-off-by: Simon Horman <horms@xxxxxxxxxxxx>

--- 

Thu, 06 Dec 2007 16:15:27 +0900
* region register index needs to be bit shifted 61 bits to the left
* Use EFI region detection logic similar to other patches

Fri, 25 Jan 2008 13:41:22 +0900
* Check rr7 not rr6, as the rr changes don't really take
  full affect until rr7 is switched - and checking on rr6 doesn't work
  in alt_dtlb_miss

Index: xen-unstable.hg/xen/arch/ia64/xen/ivt.S
===================================================================
--- xen-unstable.hg.orig/xen/arch/ia64/xen/ivt.S        2008-02-05 
16:18:55.000000000 +0900
+++ xen-unstable.hg/xen/arch/ia64/xen/ivt.S     2008-02-05 16:18:55.000000000 
+0900
@@ -121,8 +121,24 @@ ENTRY(itlb_miss)
        /* If address belongs to VMM, go to alt tlb handler */
        cmp.eq p6,p0=0x1e,r17
 (p6)   br.cond.spnt    late_alt_itlb_miss
-       br.cond.sptk fast_tlb_miss_reflect
+       // If it is an EFI address then must have XEN_EFI_RID set
+       // And if that is true, go to alt tlb handler
+       // ((r17 == 0x18 || r17 == 0x1c) && rr7 == XEN_EFI_RID)
+       // Note: rr7 == XEN_EFI_RID implies rr6 == XEN_EFI_RID
+       movl r23=7 << 61
+       ;;
+       cmp.eq p8,p0=0x18,r17           // 0xc...
+       mov r23=rr[r23]
+       ;;
+       cmp.eq.or p8,p0=0x1c,r17        // 0xe...
+       mov r25=XEN_EFI_RID
        ;;
+       cmp.eq.and p8,p0=r25,r23        // rr7 == XEN_EFI_RID
+       ;;
+(p8)   br.cond.spnt late_alt_itlb_miss
+       ;;
+
+       br.cond.spnt fast_tlb_miss_reflect
 END(itlb_miss)
 
        .org ia64_ivt+0x0800

-- 

-- 
Horms


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

<Prev in Thread] Current Thread [Next in Thread>