From: Simon Kagstrom Subject: [PATCH] paging_enabled and non-HVM guests Date: Tue, 09 May 2006 13:31:41 +0200 Message-ID: <87wtcv5t9e.wl%simon.kagstrom@bth.se> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel list List-Id: xen-devel@lists.xenproject.org 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 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;