diff options
author | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-06-24 10:46:24 +0000 |
---|---|---|
committer | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-06-24 10:46:24 +0000 |
commit | ed30037e48073a7d855fce58c1dfc563e446ff6c (patch) | |
tree | 1a9a3439c4acbd1d420c222f26acfd8aea873c66 /tools/debugger | |
parent | a3adbd6c3cabd7e5fa757827c0f058c7b19b889b (diff) | |
download | xen-ed30037e48073a7d855fce58c1dfc563e446ff6c.tar.gz xen-ed30037e48073a7d855fce58c1dfc563e446ff6c.tar.bz2 xen-ed30037e48073a7d855fce58c1dfc563e446ff6c.zip |
bitkeeper revision 1.1751 (42bbe480z9Fp_L5Tc500W8c8CL3g9A)
Rationalise x86 CRn guest state into a ctrlreg array in the per-vcpu
context structure. Most noticeably this means the pt_base field has
gone away -- replaced by ctrlreg[3] (CR3). VCPU_guest_stts is also
gone -- it was never arch-independent anyway.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'tools/debugger')
-rw-r--r-- | tools/debugger/libxendebug/xendebug.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/debugger/libxendebug/xendebug.c b/tools/debugger/libxendebug/xendebug.c index 844cdf0e03..6b116dfbc8 100644 --- a/tools/debugger/libxendebug/xendebug.c +++ b/tools/debugger/libxendebug/xendebug.c @@ -342,9 +342,9 @@ xendebug_memory_page (domain_context_p ctxt, int xc_handle, u32 vcpu, } } - if ( vcpu_ctxt->pt_base != ctxt->cr3_phys[vcpu]) + if ( vcpu_ctxt->ctrlreg[3] != ctxt->cr3_phys[vcpu]) { - ctxt->cr3_phys[vcpu] = vcpu_ctxt->pt_base; + ctxt->cr3_phys[vcpu] = vcpu_ctxt->ctrlreg[3]; if ( ctxt->cr3_virt[vcpu] ) munmap(ctxt->cr3_virt[vcpu], PAGE_SIZE); ctxt->cr3_virt[vcpu] = xc_map_foreign_range(xc_handle, ctxt->domid, @@ -383,7 +383,7 @@ xendebug_memory_page (domain_context_p ctxt, int xc_handle, u32 vcpu, if ( ctxt->page_virt[vcpu] == NULL ) { printf("cr3 %lx pde %lx page %lx pti %lx\n", - vcpu_ctxt->pt_base, pde, page, vtopti(va)); + vcpu_ctxt->ctrlreg[3], pde, page, vtopti(va)); ctxt->page_phys[vcpu] = 0; return 0; } |