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

2006-12-01 Thread Alex Williamson
On Wed, 2006-11-29 at 20:07 +0900, Atsushi SAKAI wrote:
 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.

   Applied, thanks,

Alex

-- 
Alex Williamson HP Open Source  Linux Org.


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


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

2006-11-30 Thread Alex Williamson
On Wed, 2006-11-29 at 23:54 +0900, Isaku Yamahata wrote:
 This patch is incomplete.
 If the guest kernel issues break 0x80001 or 0x80002 with
 an unknown SSC command, xen shouldn't fall in infinit loop.
 It should panic domain (not xen) or return error.

Hi Isaku,

   I assume you objection to this patch is satisfied with the additional
do_ssc() patch you submitted, correct?  Thanks,

Alex

 On Wed, Nov 29, 2006 at 08:07:36PM +0900, Atsushi SAKAI wrote:
  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
  

-- 
Alex Williamson HP Open Source  Linux Org.


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


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

2006-11-30 Thread Isaku Yamahata
On Thu, Nov 30, 2006 at 04:49:48PM -0700, Alex Williamson wrote:
I assume you objection to this patch is satisfied with the additional
 do_ssc() patch you submitted, correct?  Thanks,

Right. Please apply this patch too.

-- 
yamahata

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


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

2006-11-29 Thread Isaku Yamahata
This patch is incomplete.
If the guest kernel issues break 0x80001 or 0x80002 with
an unknown SSC command, xen shouldn't fall in infinit loop.
It should panic domain (not xen) or return error.

On Wed, Nov 29, 2006 at 08:07:36PM +0900, Atsushi SAKAI wrote:
 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 [EMAIL PROTECTED]
 
 
 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 4001c480, 
  iip=0x40002140,
  b0=0x40002380... spinning
 
  It seems come from following system call.
 
  [EMAIL PROTECTED]/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@lists.xensource.com
 http://lists.xensource.com/xen-ia64-devel
 
 
 
 
 
 


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

-- 
yamahata

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


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

2006-11-29 Thread Atsushi SAKAI
Hi, Isaku

Thank you for your comments.
I am just caring ltrace problem.
I just check dom0 boot and ltrace command.
If any suggestions, please fix it.
(Since I have no idea on this.)

Thanks
Atsushi SAKAI



This patch is incomplete.
If the guest kernel issues break 0x80001 or 0x80002 with
an unknown SSC command, xen shouldn't fall in infinit loop.
It should panic domain (not xen) or return error.

On Wed, Nov 29, 2006 at 08:07:36PM +0900, Atsushi SAKAI wrote:
 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 [EMAIL PROTECTED]
 
 
 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 4001c480, 
  iip=0x40002140,
  b0=0x40002380... spinning
 
  It seems come from following system call.
 
  [EMAIL PROTECTED]/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@lists.xensource.com
 http://lists.xensource.com/xen-ia64-devel
 
 
 
 
 
 


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

-- 
yamahata








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


[Xen-ia64-devel] [Q]ltrace and do_ssc

2006-11-28 Thread Atsushi SAKAI
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 4001c480, iip=0x40002140, 
b0=0x40002380... spinning

It seems come from following system call.

[EMAIL PROTECTED]/arch/ia64/hp/sim/hpsim.S


Do you have any idea to solve this problem?


Thanks
Atsushi SAKAI









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


Re: [Xen-ia64-devel] [Q]ltrace and do_ssc

2006-11-28 Thread Akio Takebe
Hi,

This issue is strange.
Why do codes of hpsim is used?

Best Regards,

Akio Takebe

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 4001c480, iip=
0x40002140, 
b0=0x40002380... spinning

It seems come from following system call.

[EMAIL PROTECTED]/arch/ia64/hp/sim/hpsim.S


Do you have any idea to solve this problem?


Thanks
Atsushi SAKAI









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


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


Re: [Xen-ia64-devel] [Q]ltrace and do_ssc

2006-11-28 Thread Alex Williamson
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 4001c480, 
 iip=0x40002140, 
 b0=0x40002380... spinning
 
 It seems come from following system call.
 
 [EMAIL PROTECTED]/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@lists.xensource.com
http://lists.xensource.com/xen-ia64-devel


Re: [Xen-ia64-devel] [Q]ltrace and do_ssc

2006-11-28 Thread Isaku Yamahata

What immidate for break instruction does ltrace use?
Anyway, xen/ia64 should check privilege level before calling do_ssc().

On Wed, Nov 29, 2006 at 11:27:42AM +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 4001c480, 
 iip=0x40002140, 
 b0=0x40002380... spinning
 
 It seems come from following system call.
 
 [EMAIL PROTECTED]/arch/ia64/hp/sim/hpsim.S
 
 
 Do you have any idea to solve this problem?
 
 
 Thanks
 Atsushi SAKAI
 
 
 
 
 
 
 
 
 
 ___
 Xen-ia64-devel mailing list
 Xen-ia64-devel@lists.xensource.com
 http://lists.xensource.com/xen-ia64-devel
 

-- 
yamahata

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