Skip to content

Commit f614fcf

Browse files
lyan3lijinxia
authored andcommitted
hv: debug: add CR4 to vcpu_dumpreg output
CR4 valuse was missing in the output. Signed-off-by: Yan, Like <like.yan@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
1 parent 8205c9a commit f614fcf

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

hypervisor/debug/shell_internal.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -716,9 +716,11 @@ int shell_vcpu_dumpreg(struct shell *p_shell,
716716
"RFLAGS=0x%016llx\r\n", cur_context->rip,
717717
cur_context->guest_cpu_regs.regs.rsp, cur_context->rflags);
718718
shell_puts(p_shell, temp_str);
719-
snprintf(temp_str, MAX_STR_SIZE, "= CR0=0x%016llx CR2=0x%016llx "
720-
" CR3=0x%016llx\r\n", cur_context->cr0,
721-
cur_context->cr2, cur_context->cr3);
719+
snprintf(temp_str, MAX_STR_SIZE, "= CR0=0x%016llx CR2=0x%016llx\r\n",
720+
cur_context->cr0, cur_context->cr2);
721+
shell_puts(p_shell, temp_str);
722+
snprintf(temp_str, MAX_STR_SIZE, "= CR3=0x%016llx CR4=0x%016llx\r\n",
723+
cur_context->cr3, cur_context->cr4);
722724
shell_puts(p_shell, temp_str);
723725
snprintf(temp_str, MAX_STR_SIZE, "= RAX=0x%016llx RBX=0x%016llx "
724726
"RCX=0x%016llx\r\n",

0 commit comments

Comments
 (0)