[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] x86/shadow: use unambiguous register names
commit f0adead04c526405d09d1a95fb341f2e96975371 Author: Jan Beulich <jbeulich@xxxxxxxx> AuthorDate: Wed Dec 21 17:02:52 2016 +0100 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Wed Dec 21 17:02:52 2016 +0100 x86/shadow: use unambiguous register names This is in preparation of eliminating the mis-naming of 64-bit fields with 32-bit register names (eflags instead of rflags etc). Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> Acked-by: Tim Deegan <tim@xxxxxxx> Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> --- xen/arch/x86/mm/shadow/common.c | 10 +++++----- xen/arch/x86/mm/shadow/multi.c | 5 ++--- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/xen/arch/x86/mm/shadow/common.c b/xen/arch/x86/mm/shadow/common.c index d2bf266..4113351 100644 --- a/xen/arch/x86/mm/shadow/common.c +++ b/xen/arch/x86/mm/shadow/common.c @@ -349,10 +349,10 @@ const struct x86_emulate_ops *shadow_init_emulation( } /* Attempt to prefetch whole instruction. */ - sh_ctxt->insn_buf_eip = regs->eip; + sh_ctxt->insn_buf_eip = regs->rip; sh_ctxt->insn_buf_bytes = (!hvm_translate_linear_addr( - x86_seg_cs, regs->eip, sizeof(sh_ctxt->insn_buf), + x86_seg_cs, regs->rip, sizeof(sh_ctxt->insn_buf), hvm_access_insn_fetch, sh_ctxt, &addr) && !hvm_fetch_from_guest_linear( sh_ctxt->insn_buf, addr, sizeof(sh_ctxt->insn_buf), 0, NULL)) @@ -375,18 +375,18 @@ void shadow_continue_emulation(struct sh_emulate_ctxt *sh_ctxt, * We don't refetch the segment bases, because we don't emulate * writes to segment registers */ - diff = regs->eip - sh_ctxt->insn_buf_eip; + diff = regs->rip - sh_ctxt->insn_buf_eip; if ( diff > sh_ctxt->insn_buf_bytes ) { /* Prefetch more bytes. */ sh_ctxt->insn_buf_bytes = (!hvm_translate_linear_addr( - x86_seg_cs, regs->eip, sizeof(sh_ctxt->insn_buf), + x86_seg_cs, regs->rip, sizeof(sh_ctxt->insn_buf), hvm_access_insn_fetch, sh_ctxt, &addr) && !hvm_fetch_from_guest_linear( sh_ctxt->insn_buf, addr, sizeof(sh_ctxt->insn_buf), 0, NULL)) ? sizeof(sh_ctxt->insn_buf) : 0; - sh_ctxt->insn_buf_eip = regs->eip; + sh_ctxt->insn_buf_eip = regs->rip; } } diff --git a/xen/arch/x86/mm/shadow/multi.c b/xen/arch/x86/mm/shadow/multi.c index 805c056..d4090d7 100644 --- a/xen/arch/x86/mm/shadow/multi.c +++ b/xen/arch/x86/mm/shadow/multi.c @@ -2872,7 +2872,7 @@ static int sh_page_fault(struct vcpu *v, #endif SHADOW_PRINTK("%pv va=%#lx err=%#x, rip=%lx\n", - v, va, regs->error_code, regs->eip); + v, va, regs->error_code, regs->rip); perfc_incr(shadow_fault); @@ -3357,8 +3357,7 @@ static int sh_page_fault(struct vcpu *v, } } - SHADOW_PRINTK("emulate: eip=%#lx esp=%#lx\n", - (unsigned long)regs->eip, (unsigned long)regs->esp); + SHADOW_PRINTK("emulate: eip=%#lx esp=%#lx\n", regs->rip, regs->rsp); emul_ops = shadow_init_emulation(&emul_ctxt, regs); -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |