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] guest debug support patches

To: xen-devel@xxxxxxxxxxxxxxxxxxxxx, Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>, Ian.Pratt@xxxxxxxxxxxx
Subject: [Xen-devel] guest debug support patches
From: Kip Macy <kip.macy@xxxxxxxxx>
Date: Fri, 11 Mar 2005 11:00:09 -0800
Delivery-date: Fri, 11 Mar 2005 19:01:23 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type; b=aqU9aFqjqToNu1wW+Ik79R+oFWs2/mvnWMUZHvKOXuj/t+3q3W7zOsXGAA6THnOCKgphu54Dg2xIMXIRamTBuWoeQ+w41r3IOvnTnpXGli4c/pFEJCwreNzyxeLj0OFWyuvbL64fzJhSbToILfq1OAUX/B+BsZlLIyxLz/CiwhM=
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Reply-to: Kip Macy <kip.macy@xxxxxxxxx>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
These two patches should really be one patch. However, when I try:

bk export -tpatch -r1.1294.1,1.1307,1.1308,1.1309,1.1310,1.1311

The output includes a large number of files that I haven't touched. My
guess is that there is a bug in the graph re-labelling in bk.

Thus patch1 is the output of:
bk export -tpatch -r1.1294.1.1

And patch2 is the output of:
 bk export -tpatch -r1.1307,1.1308,1.1309,1.1310,1.1311

These patches have three real changes:
1) xen/arch/x86/traps.c in do_int3 and do_debug if the trap was hit in
kernel-mode on domain other than dom0 the domain is paused

2) builddomain is re-factored into setdomaininfo, the parts of what
was arch_final_setup_guest that should only be set once are skipped by
means of a new exec_domain flag EDF_DONEINIT

3) xc_ptrace.c implements the ptrace interface via dom0 ops 

known limitations:
- Although the hypervisor-side code should work on x86_64, the
user-side xc_ptrace is currently strictly x86_32, fixing this is a
SMOP

- xc_ptrace assumes the guest is UP - I intend to fix this right after
I get 5.3 booting SMP as a guest - I would wait until this was fixed
were it not for the fact that the resolves can get annoying

- the patch doesn't include the gdbserver side support, I'm not sure
how best to handle this as most GDB maintainers move at a glacial pace
when it comes to incorporating outside patches
 
Comments and suggestions are welcome.

signed off by Kip Macy kmacy at fsmware.com

Attachment: patch1
Description: Text document

Attachment: patch2
Description: Text document

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] guest debug support patches, Kip Macy <=