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-devel

[Xen-devel] Re: [PATCH] Fix debug exception stack to enable gdb on xeno6

To: "Li, Xin B" <xin.b.li@xxxxxxxxx>
Subject: [Xen-devel] Re: [PATCH] Fix debug exception stack to enable gdb on xeno64
From: Andi Kleen <ak@xxxxxxx>
Date: 12 Jul 2005 19:10:37 +0200
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 12 Jul 2005 17:09:17 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <16A54BF5D6E14E4D916CE26C9AD3057502A49748@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <16A54BF5D6E14E4D916CE26C9AD3057502A49748@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3
"Li, Xin B" <xin.b.li@xxxxxxxxx> writes:

> Native x86_64 linux uses paranoidentry for exceptions with ist != 0,
> while x86_64 xenlinux doesn't have special stacks for these exceptions.
> Actually we don't need paranoidentry for x86_64 xenlinux, and these
> exceptions except #DB should be handled in hypervisor.  With this patch,
> #DB is forwarded to guest, and let it use zeroentry should be OK.
> -Xin

Doesn't look correct to me. When you get an NMI or DB directly after 
a SYSCALL to Xen it'll execute on a random stack and likely break
if the guest runs with a broken stack at that time.

Also I can really recommend having IST stacks for double fault and stack
fault, otherwise everytime you break the stack you get a triple fault
which are nasty to debug. You guys with target probes might not
care that much, but others do.

-Andi

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