X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmx_msr.c;h=2d9df85dbaa2f8f63c994c13527d893abedc8f5a;hp=66995ac8db2922339e6dc62619668701424f7b8c;hb=c3714b74821dffe63b2fdcf10d8fe614c5ac9bb1;hpb=bf9d843e65ef72688da11ea6d1216909729395b3 diff --git a/palacios/src/palacios/vmx_msr.c b/palacios/src/palacios/vmx_msr.c index 66995ac..2d9df85 100644 --- a/palacios/src/palacios/vmx_msr.c +++ b/palacios/src/palacios/vmx_msr.c @@ -64,12 +64,14 @@ static int update_map(struct guest_info * info, uint_t msr, int hook_reads, int } int v3_init_vmx_msr_map(struct guest_info * info) { - struct v3_msr_map * msr_map = &(info->msr_map); + struct v3_msr_map * msr_map = &(info->msr_map); - msr_map->update_map = update_map; - - msr_map->arch_data = V3_VAddr(V3_AllocPages(1)); - memset(msr_map->arch_data, 0, PAGE_SIZE_4KB); - - return 0; + msr_map->update_map = update_map; + + msr_map->arch_data = V3_VAddr(V3_AllocPages(1)); + memset(msr_map->arch_data, 0, PAGE_SIZE_4KB); + + v3_refresh_msr_map(info); + + return 0; }