All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] paging_enabled and non-HVM guests
@ 2006-05-09 11:31 Simon Kagstrom
  2006-05-09 19:53 ` Hollis Blanchard
  0 siblings, 1 reply; 8+ messages in thread
From: Simon Kagstrom @ 2006-05-09 11:31 UTC (permalink / raw)
  To: xen-devel list


I had a problem with the GDB-server crashing on connections in
xen_ptrace.c:map_domain_va(). paging_enabled() should only be checked
for HVM guests, and the patch adds a check for that.

Signed-off-by: Simon Kagstrom <ska@bth.se>

diff -r 4501d60d6add tools/libxc/xc_ptrace.c
--- a/tools/libxc/xc_ptrace.c	Tue May  9 09:57:05 2006
+++ b/tools/libxc/xc_ptrace.c	Tue May  9 13:26:14 2006
@@ -374,7 +374,7 @@
     if (fetch_regs(xc_handle, cpu, NULL))
         return NULL;
 
-    if (!paging_enabled(&ctxt[cpu])) { 
+    if ( (ctxt[cpu].flags & VGCF_HVM_GUEST) && !paging_enabled(&ctxt[cpu])) { 
         static void * v;
         unsigned long page;

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-05-10 18:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-09 11:31 [PATCH] paging_enabled and non-HVM guests Simon Kagstrom
2006-05-09 19:53 ` Hollis Blanchard
2006-05-09 20:14   ` Anthony Liguori
2006-05-09 20:26     ` Ryan Harper
2006-05-10  6:06   ` Simon Kagstrom
2006-05-10 14:51     ` Hollis Blanchard
2006-05-10 15:42       ` Hollis Blanchard
2006-05-10 18:35         ` Simon Kagstrom

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.