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-changelog

[Xen-changelog] [xen-unstable] [IA64] Use machine vector for global tlb

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [IA64] Use machine vector for global tlb purge
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 18 Jan 2007 21:10:20 -0800
Delivery-date: Thu, 18 Jan 2007 21:11:24 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User awilliam@xxxxxxxxxxxx
# Date 1166205573 25200
# Node ID 1e042dde1a5f2a56ed6517e00ac83d44f324a652
# Parent  5a68672cee38a3ee15e34fcd3a5f91224a81bea2
[IA64] Use machine vector for global tlb purge

Switch to using the platform vector for global tlb purges. In fact
nothing should be calling ia64_global_tlb_purge() directly.

Signed-off-by: Jes Sorensen <jes@xxxxxxx>
---
 xen/arch/ia64/linux-xen/sn/kernel/sn2_smp.c |    2 +-
 xen/arch/ia64/xen/vhpt.c                    |    8 +++-----
 2 files changed, 4 insertions(+), 6 deletions(-)

diff -r 5a68672cee38 -r 1e042dde1a5f xen/arch/ia64/linux-xen/sn/kernel/sn2_smp.c
--- a/xen/arch/ia64/linux-xen/sn/kernel/sn2_smp.c       Thu Dec 14 13:29:17 
2006 -0700
+++ b/xen/arch/ia64/linux-xen/sn/kernel/sn2_smp.c       Fri Dec 15 10:59:33 
2006 -0700
@@ -173,7 +173,7 @@ sn2_global_tlb_purge(unsigned long start
        int mymm = (mm == current->active_mm && mm == current->mm);
 #else
        // struct mm_struct *mm;
-       int mymm = 1;
+       int mymm = 0;
 #endif
        int use_cpu_ptcga;
        volatile unsigned long *ptc0, *ptc1;
diff -r 5a68672cee38 -r 1e042dde1a5f xen/arch/ia64/xen/vhpt.c
--- a/xen/arch/ia64/xen/vhpt.c  Thu Dec 14 13:29:17 2006 -0700
+++ b/xen/arch/ia64/xen/vhpt.c  Fri Dec 15 10:59:33 2006 -0700
@@ -20,9 +20,6 @@
 #include <asm/vcpu.h>
 #include <asm/vcpumask.h>
 #include <asm/vmmu.h>
-
-/* Defined in tlb.c  */
-extern void ia64_global_tlb_purge(u64 start, u64 end, u64 nbits);
 
 extern long running_on_sim;
 
@@ -364,7 +361,7 @@ void domain_flush_vtlb_range (struct dom
        // ptc.ga has release semantics.
 
        /* ptc.ga  */
-       ia64_global_tlb_purge(vadr,vadr+addr_range,PAGE_SHIFT);
+       platform_global_tlb_purge(vadr, vadr + addr_range, PAGE_SHIFT);
        perfc_incrc(domain_flush_vtlb_range);
 }
 
@@ -442,7 +439,8 @@ __domain_flush_vtlb_track_entry(struct d
                perfc_incrc(domain_flush_vtlb_local);
        } else {
                /* ptc.ga has release semantics. */
-               ia64_global_tlb_purge(vaddr, vaddr + PAGE_SIZE, PAGE_SHIFT);
+               platform_global_tlb_purge(vaddr, vaddr + PAGE_SIZE,
+                                         PAGE_SHIFT);
                perfc_incrc(domain_flush_vtlb_global);
        }
 

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [IA64] Use machine vector for global tlb purge, Xen patchbot-unstable <=