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] Temporary patch to return dom0 stability

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Temporary patch to return dom0 stability
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 15 Sep 2005 07:48:25 +0000
Delivery-date: Thu, 15 Sep 2005 07:53:47 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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 djm@xxxxxxxxxxxxxxx
# Node ID 0c1f966af47e0c4718b3d2a0376a591dfa2ef7f4
# Parent  b2312c14f144c1767dd3cdb36ecf95e710d68bd6
Temporary patch to return dom0 stability

diff -r b2312c14f144 -r 0c1f966af47e xen/arch/ia64/xen/vcpu.c
--- a/xen/arch/ia64/xen/vcpu.c  Wed Sep  7 16:51:28 2005
+++ b/xen/arch/ia64/xen/vcpu.c  Thu Sep  8 13:24:08 2005
@@ -1,10 +1,16 @@
 /*
  * Virtualized CPU functions
  *
- * Copyright (C) 2004 Hewlett-Packard Co.
+ * Copyright (C) 2004-2005 Hewlett-Packard Co.
  *     Dan Magenheimer (dan.magenheimer@xxxxxx)
  *
  */
+
+#if 1
+// TEMPORARY PATCH for match_dtlb uses this, can be removed later
+// FIXME SMP
+int in_tpa = 0;
+#endif
 
 #include <linux/sched.h>
 #include <public/arch-ia64.h>
@@ -1317,8 +1323,10 @@
        /* check 1-entry TLB */
        if ((trp = match_dtlb(vcpu,address))) {
                dtlb_translate_count++;
-               //*pteval = trp->page_flags;
-               *pteval = vcpu->arch.dtlb_pte;
+               if (vcpu->domain==dom0 && !in_tpa) *pteval = trp->page_flags;
+               else *pteval = vcpu->arch.dtlb_pte;
+               printf("DTLB MATCH... NEW, DOM%s, %s\n", vcpu->domain==dom0?
+                       "0":"U", in_tpa?"vcpu_tpa":"ia64_do_page_fault");
                *itir = trp->itir;
                return IA64_NO_FAULT;
        }
@@ -1369,7 +1377,9 @@
        UINT64 pteval, itir, mask;
        IA64FAULT fault;
 
+       in_tpa = 1;
        fault = vcpu_translate(vcpu, vadr, 1, &pteval, &itir);
+       in_tpa = 0;
        if (fault == IA64_NO_FAULT)
        {
                mask = itir_mask(itir);

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Temporary patch to return dom0 stability, Xen patchbot -unstable <=