X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmm_shadow_paging.c;h=abe6d8886ea5115263d167d2b93a476efe4f4a65;hb=fa05269fd639f61ea0c154e6c4bf1daabeb90459;hp=eb2fe6b979c7a70a2a0bbf20a6e3bde64608bfaa;hpb=f3eb8bbb7c58c98b03797f2188e6c1d2a7610c15;p=palacios.git diff --git a/palacios/src/palacios/vmm_shadow_paging.c b/palacios/src/palacios/vmm_shadow_paging.c index eb2fe6b..abe6d88 100644 --- a/palacios/src/palacios/vmm_shadow_paging.c +++ b/palacios/src/palacios/vmm_shadow_paging.c @@ -71,8 +71,8 @@ static int is_guest_pf(pt_access_status_t guest_access, pt_access_status_t shado #ifdef CONFIG_SHADOW_PAGING_TELEMETRY -static void telemetry_cb(struct guest_info * info, void * private_data) { - V3_Print("Guest Page faults: %d\n", info->shdw_pg_state.guest_faults); +static void telemetry_cb(struct guest_info * info, void * private_data, char * hdr) { + V3_Print("%s Guest Page faults: %d\n", hdr, info->shdw_pg_state.guest_faults); } #endif @@ -81,6 +81,8 @@ static void telemetry_cb(struct guest_info * info, void * private_data) { int v3_init_shadow_page_state(struct guest_info * info) { struct shadow_page_state * state = &(info->shdw_pg_state); + state->prev_guest_cr3 = 0; + state->guest_cr3 = 0; state->guest_cr0 = 0; state->guest_efer.value = 0x0LL;