x86/traps: identify the vcpu in context when dumping registers

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
master commit: e59abf8c8c
master date: 2015-04-14 14:59:53 +0200
This commit is contained in:
Andrew Cooper authored and Jan Beulich committed 2015-07-13 14:01:06 +02:00
1 parent 36c53c22cd
commit fb9fdb08bb
1 file changed
+4 -2
+4 -2
View File
@@ -53,9 +53,11 @@ static void _show_registers(
printk("\nRFLAGS: %016lx ", regs->rflags);
if ( (context == CTXT_pv_guest) && v && v->vcpu_info )
printk("EM: %d ", !!vcpu_info(v, evtchn_upcall_mask));
printk("CONTEXT: %s\n", context_names[context]);
printk("CONTEXT: %s", context_names[context]);
if ( v && !is_idle_vcpu(v) )
printk(" (d%dv%d)", v->domain->domain_id, v->vcpu_id);
printk("rax: %016lx rbx: %016lx rcx: %016lx\n",
printk("\nrax: %016lx rbx: %016lx rcx: %016lx\n",
regs->rax, regs->rbx, regs->rcx);
printk("rdx: %016lx rsi: %016lx rdi: %016lx\n",
regs->rdx, regs->rsi, regs->rdi);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.