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] Fixes for correct itir handling in vcpu_translate (broke

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Fixes for correct itir handling in vcpu_translate (broke simulator)
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 12 Oct 2005 08:32:22 +0000
Delivery-date: Wed, 12 Oct 2005 08:36:56 +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 333f722ed6d05d80e341a72f19bad4143c94cd87
# Parent  bb8120b53a96d0dd2d07a7831e2adce33c774cc4
Fixes for correct itir handling in vcpu_translate (broke simulator)

diff -r bb8120b53a96 -r 333f722ed6d0 xen/arch/ia64/xen/vcpu.c
--- a/xen/arch/ia64/xen/vcpu.c  Sun Oct  9 15:04:49 2005
+++ b/xen/arch/ia64/xen/vcpu.c  Tue Oct 11 21:50:21 2005
@@ -1403,9 +1403,11 @@
                return (is_data ? IA64_DATA_TLB_VECTOR : IA64_INST_TLB_VECTOR);
 
        vcpu_thash(vcpu, address, iha);
-       if (__copy_from_user(&pte, (void *)(*iha), sizeof(pte)) != 0)
+       if (__copy_from_user(&pte, (void *)(*iha), sizeof(pte)) != 0) {
 // FIXME?: does itir get set for vhpt faults?
+               *itir = vcpu_get_itir_on_fault(vcpu,*iha);
                return IA64_VHPT_FAULT;
+       }
 
        /*
         * Optimisation: this VHPT walker aborts on not-present pages
@@ -1418,6 +1420,7 @@
                vhpt_translate_count++;
                return IA64_NO_FAULT;
        }
+       *itir = vcpu_get_itir_on_fault(vcpu,address);
        return (is_data ? IA64_DATA_TLB_VECTOR : IA64_INST_TLB_VECTOR);
 }
 

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Fixes for correct itir handling in vcpu_translate (broke simulator), Xen patchbot -unstable <=