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

[PATCH] Check CPL for break 0x80001 case. Re: [Xen-ia64-devel] [Q]ltrace

To: Atsushi SAKAI <sakaia@xxxxxxxxxxxxxx>, Alex Williamson <alex.williamson@xxxxxx>
Subject: [PATCH] Check CPL for break 0x80001 case. Re: [Xen-ia64-devel] [Q]ltrace and do_ssc
From: Atsushi SAKAI <sakaia@xxxxxxxxxxxxxx>
Date: Wed, 29 Nov 2006 20:07:36 +0900
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 29 Nov 2006 03:08:49 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: (Your message of "Wed, 29 Nov 2006 17:24:04 +0900") <200611290824.kAT8Oxak030928@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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: <200611290228.kAT2SbQ9017165@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <1164768928.5657.2.camel@lappy> <200611290824.kAT8Oxak030928@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi, All

 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.

References
Yamahata mail
http://lists.xensource.com/archives/html/xen-ia64-devel/2006-11/msg00319.html
Alex mail
http://lists.xensource.com/archives/html/xen-ia64-devel/2006-11/msg00318.html

Signed-off-by: Atsushi SAKAI <sakaia@xxxxxxxxxxxxxx>


Thanks
Atsushi SAKAI




>Hi, Alex
>
>Thank you for your comments
>With this following fixes it seems running.
>
>
>Thanks
>Atsushi SAKAI
>
>>On Wed, 2006-11-29 at 11:27 +0900, Atsushi SAKAI wrote:
>>> Hi, Alex
>>>
>>>   I am trying "ltrace ps" on IA64.
>>> It makes dom0 hung.
>>>
>>> >From the serial console messages,
>>> (XEN) ia64_handle_break: bad ssc code 400000000001c480, 
>>> iip=0x4000000000002140,
>>> b0=0x4000000000002380... spinning
>>>
>>> It seems come from following system call.
>>>
>>> ia64_ssc@xxxxxxxxxxxxxxxxxxx/arch/ia64/hp/sim/hpsim.S
>>>
>>>
>>> Do you have any idea to solve this problem?
>>
>>   I'd guess you happened to hit a break value that overlaps with the
>>ones chosen for trapping into ski.  You might try getting rid of the
>>first test in handle_break() that calls do_ssc().
>>
>>      Alex
>>
>>--
>>Alex Williamson                             HP Open Source & Linux Org.
>>
>>
>
>
>
>
>

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






Attachment: ltrace-fix-take1.patch
Description: Binary data

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