From: Erik van der Kouwe Date: Sat, 22 Jan 2011 00:52:02 +0000 (-0600) Subject: is patch adds a function v3_print_guest_state_all that calls v3_print_guest_state... X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=commitdiff_plain;h=e73f2133673d681426d946d2f5bd8b363a1ab2c1;p=palacios.git is patch adds a function v3_print_guest_state_all that calls v3_print_guest_state for each core --- diff --git a/palacios/include/palacios/vm_guest.h b/palacios/include/palacios/vm_guest.h index 638c752..b435390 100644 --- a/palacios/include/palacios/vm_guest.h +++ b/palacios/include/palacios/vm_guest.h @@ -214,4 +214,6 @@ void v3_print_stack(struct guest_info * info); #endif /* ! __V3VEE__ */ +void v3_print_guest_state_all(struct v3_vm_info * vm); + #endif diff --git a/palacios/src/palacios/vm_guest.c b/palacios/src/palacios/vm_guest.c index 1e96747..09770a8 100644 --- a/palacios/src/palacios/vm_guest.c +++ b/palacios/src/palacios/vm_guest.c @@ -337,6 +337,26 @@ void v3_print_guest_state(struct guest_info * info) { v3_print_disassembly(info); } +void v3_print_guest_state_all(struct v3_vm_info * vm) { + int i = 0; + + V3_Print("VM Core states for %s\n", vm->name); + + for (i = 0; i < 80; i++) { + V3_Print("-"); + } + + for (i = 0; i < vm->num_cores; i++) { + v3_print_guest_state(&vm->cores[i]); + } + + for (i = 0; i < 80; i++) { + V3_Print("-"); + } + + V3_Print("\n"); +} + void v3_print_stack(struct guest_info * info) { addr_t linear_addr = 0;