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