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] Check CPL for break 0x80001 case

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [IA64] Check CPL for break 0x80001 case
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 09 Dec 2006 15:44:04 +0000
Delivery-date: Sat, 09 Dec 2006 07:45:56 -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@xxxxxxxxxxx
# Node ID 76d379e3f1d786858e4b8d34175f95e55ab1d8fa
# Parent  49ab12a04d16ec157e0f910f8417e5ed944c4e9d
[IA64] Check CPL for break 0x80001 case

This is a patch which intends for fixing ltrace problem.  When I
execute a command "ltrace ps" on dom0, it makes dom0 hung.  It comes
from "break 0x80001" is shared by ltrace(CPL=3) and hpsim(CPL=2).
To avoid this problem, I just add check CPL in ia64_break_fault code.

Signed-off-by: Atsushi SAKAI <sakaia@xxxxxxxxxxxxxx>
---
 xen/arch/ia64/xen/faults.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)

diff -r 49ab12a04d16 -r 76d379e3f1d7 xen/arch/ia64/xen/faults.c
--- a/xen/arch/ia64/xen/faults.c        Thu Nov 30 15:58:21 2006 -0700
+++ b/xen/arch/ia64/xen/faults.c        Fri Dec 01 11:12:00 2006 -0700
@@ -524,7 +524,9 @@ ia64_handle_break(unsigned long ifa, str
        struct vcpu *v = current;
        IA64FAULT vector;
 
-       if (iim == 0x80001 || iim == 0x80002) { //FIXME: don't hardcode constant
+       /* FIXME: don't hardcode constant */
+       if ((iim == 0x80001 || iim == 0x80002)
+           && ia64_get_cpl(regs->cr_ipsr) == 2) {
                do_ssc(vcpu_get_gr(current, 36), regs);
        }
 #ifdef CRASH_DEBUG

_______________________________________________
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] Check CPL for break 0x80001 case, Xen patchbot-unstable <=