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

RE: [Xen-devel] [PATCH] enable modifying of registers from gdb

To: <Keir.Fraser@xxxxxxxxxxxx>, "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH] enable modifying of registers from gdb
From: "Kamble, Nitin A" <nitin.a.kamble@xxxxxxxxx>
Date: Tue, 28 Mar 2006 18:56:36 -0800
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 29 Mar 2006 02:58:14 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcZSHbp4ENBnBXQvTJ6Zg5keKXZhMwAvPhDA
Thread-topic: [Xen-devel] [PATCH] enable modifying of registers from gdb
Hi Keir, Ian,
   I have updated the code with more fixes/changes in the patch and also 
cleaned up the map_domain_va code further. Now gdb is able to get guest memory 
correctly in various guest modes. 

For all these combinations of guests ...
   * 32bit guest on 32bit xen
   * 64bit guest on 64bit xen
   * 32bit guest on 64bit xen

... gdb is able to access the guest memory properly in these modes:
* Paging disabled kernel
* Paging enabled kernel
* Real mode
* User process memory
* 2M kernel pages on 64bit guest
* 4K user pages on 64bit guest

Also the setting of registers works for all the combinations.

Diffstat of the patch:
 tools/libxc/xc_ptrace.c    |  383 ++++++++++++++++++++++++---------------------
 tools/libxc/xc_ptrace.h    |    6
 xen/arch/x86/hvm/vmx/vmx.c |   47 +++++
 xen/common/domain.c        |   17 +
 4 files changed, 274 insertions(+), 179 deletions(-)

Please Comment or Apply.

Signed-Off-By: Nitin A Kamble <nitin.a.kamble@xxxxxxxxx> 

Thanks & Regards,
Nitin
-----------------------------------------------------------------------------------
Open Source Technology Center, Intel Corp
________________________________________
From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx 
[mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Kamble, Nitin A
Sent: Monday, March 27, 2006 8:12 PM
To: Keir.Fraser@xxxxxxxxxxxx; Mallick, Asit K
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] enable modifying of registers from gdb

Hi Keir, Ian,
   There were couple of bugs in the my friday's patch to enable 64bit gdb 
debugging. I have fixed them in this patch. Also cleaned up the code for 
map_domain_va_XX codet. Other than that, now this patch also enables setting of 
registers from the gdb. Please comment or Apply.

Signed-Off-By: Nitin A Kamble <nitin.a.kamble@xxxxxxxxx>

Thanks & Regards,
Nitin
-----------------------------------------------------------------------------------
Open Source Technology Center, Intel Corp

Attachment: gdbserver_setregs_2M_pages_32bit_on_64bit_fix.patch
Description: gdbserver_setregs_2M_pages_32bit_on_64bit_fix.patch

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