diff options
Diffstat (limited to 'tools/libxc/xc_ptrace.c')
-rw-r--r-- | tools/libxc/xc_ptrace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/libxc/xc_ptrace.c b/tools/libxc/xc_ptrace.c index a8b39a648d..33312434cf 100644 --- a/tools/libxc/xc_ptrace.c +++ b/tools/libxc/xc_ptrace.c @@ -75,7 +75,7 @@ struct gdb_regs { int retval = xc_domain_get_vcpu_context(xc_handle, domid, cpu, &ctxt[cpu]); \ if (retval) \ goto error_out; \ - cr3[cpu] = ctxt[cpu].pt_base; /* physical address */ \ + cr3[cpu] = ctxt[cpu].ctrlreg[3]; /* physical address */ \ regs_valid[cpu] = 1; \ } \ @@ -136,7 +136,7 @@ static vcpu_guest_context_t ctxt[MAX_VIRT_CPUS]; static inline int paging_enabled(vcpu_guest_context_t *v) { - unsigned long cr0 = v->cr0; + unsigned long cr0 = v->ctrlreg[0]; return (cr0 & X86_CR0_PE) && (cr0 & X86_CR0_PG); } |