From f614fcfcf8882ad194f0b8ab44ead596683ff1be Mon Sep 17 00:00:00 2001 From: "Yan, Like" Date: Fri, 27 Jul 2018 15:49:18 +0800 Subject: [PATCH] hv: debug: add CR4 to vcpu_dumpreg output CR4 valuse was missing in the output. Signed-off-by: Yan, Like Acked-by: Eddie Dong --- hypervisor/debug/shell_internal.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/hypervisor/debug/shell_internal.c b/hypervisor/debug/shell_internal.c index 262964d78..b1abd0d18 100644 --- a/hypervisor/debug/shell_internal.c +++ b/hypervisor/debug/shell_internal.c @@ -716,9 +716,11 @@ int shell_vcpu_dumpreg(struct shell *p_shell, "RFLAGS=0x%016llx\r\n", cur_context->rip, cur_context->guest_cpu_regs.regs.rsp, cur_context->rflags); shell_puts(p_shell, temp_str); - snprintf(temp_str, MAX_STR_SIZE, "= CR0=0x%016llx CR2=0x%016llx " - " CR3=0x%016llx\r\n", cur_context->cr0, - cur_context->cr2, cur_context->cr3); + snprintf(temp_str, MAX_STR_SIZE, "= CR0=0x%016llx CR2=0x%016llx\r\n", + cur_context->cr0, cur_context->cr2); + shell_puts(p_shell, temp_str); + snprintf(temp_str, MAX_STR_SIZE, "= CR3=0x%016llx CR4=0x%016llx\r\n", + cur_context->cr3, cur_context->cr4); shell_puts(p_shell, temp_str); snprintf(temp_str, MAX_STR_SIZE, "= RAX=0x%016llx RBX=0x%016llx " "RCX=0x%016llx\r\n",