Skip to contentSkip to conversation

Really enable gdbserver for real mode code.

PATCH New Arun Sharma 1 participant 1 message Jul 25, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 8/9 Really enable gdbserver for real mode code.

Really enable gdbserver for real mode code.

Missed out one instance where we need to check if we're running on 1:1 page tables with guest paging disabled.

tools/libxc/xc_ptrace.c +1 -1
diff -r b1e7ed1be500 -r d016dd226b0d tools/libxc/xc_ptrace.c
@@ -202,7 +202,7 @@
     }
     if ((page = pde_virt[cpu][vtopti(va)]) == 0) /* logical address */
 	goto error_out;
-    if (ctxt[cpu].flags & VGCF_VMX_GUEST)
+    if (ctxt[cpu].flags & VGCF_VMX_GUEST && paging_enabled(&ctxt[cpu]))
         page = page_array[page >> PAGE_SHIFT] << PAGE_SHIFT;
     if (page != page_phys[cpu] || perm != prev_perm[cpu]) 
     {