[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] paging disabled handling for gdbserver-xen



Hi Keir, Ian,

   The current ptrace code is traversing the page table structures to guest guest physical address, even when the guest paging is disabled. The gdbserver-xen tries to access guest pdes & ptes to map memory of  hvm guest being debugged; and it gets a seg-fault because guest has not setup it’s paging yet. The attached patch adds guest paging state check, so that the map_domain_va() can get the correct guest physical address from guest va. Please apply.

 

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

 

 xc_ptrace.c |   58 +++++++++++++++++++++++++++++++---------------------------

 1 files changed, 31 insertions(+), 27 deletions(-)

 

Thanks & Regards,

Nitin

-----------------------------------------------------------------------------------

Open Source Technology Center, Intel Corp

 

Attachment: gdbserver_paging_disabled.patch
Description: gdbserver_paging_disabled.patch

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.