X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvm_guest.c;h=c2bb07df25b24d48499b5be9c930ac573d8df693;hp=44673cb0403337e7ff68160bbb35637a92499da5;hb=571979dad8fc2138a7e11c4fe61e812a0a0b17d1;hpb=28cfe68985ef4360c9bd7428a19c222b295e9d85 diff --git a/palacios/src/palacios/vm_guest.c b/palacios/src/palacios/vm_guest.c index 44673cb..c2bb07d 100644 --- a/palacios/src/palacios/vm_guest.c +++ b/palacios/src/palacios/vm_guest.c @@ -160,8 +160,7 @@ const uchar_t * v3_mem_mode_to_str(v3_mem_mode_t mode) { } -void v3_print_segments(struct guest_info * info) { - struct v3_segments * segs = &(info->segments); +void v3_print_segments(struct v3_segments * segs) { int i = 0; struct v3_segment * seg_ptr; @@ -267,7 +266,7 @@ void v3_print_guest_state(struct guest_info * info) { V3_Print("NumExits: %u\n", (uint32_t)info->num_exits); - v3_print_segments(info); + v3_print_segments(&(info->segments)); v3_print_ctrl_regs(info); if (info->shdw_pg_mode == SHADOW_PAGING) { @@ -311,7 +310,7 @@ void v3_print_stack(struct guest_info * info) { // We start i at one because the current stack pointer points to an unused stack element for (i = 0; i <= 24; i++) { if (cpu_mode == LONG) { - V3_Print("\t%p\n", (void *)*(uint64_t *)(host_addr + (i * 8))); + V3_Print("\t%p\n", (void *)*(addr_t *)(host_addr + (i * 8))); } else if (cpu_mode == REAL) { V3_Print("Don't currently handle 16 bit stacks... \n"); } else {