X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmm_msr.c;h=b96018739f2842b69569df881d0fed38a0c1a1bf;hb=caf85567e859e58d73a0214ff2a89671692814a5;hp=2329f535b03e3e847674f8156b667a219e8a5405;hpb=785e74aa4828251a93deb9f05bebd3c84a45d0c2;p=palacios.releases.git diff --git a/palacios/src/palacios/vmm_msr.c b/palacios/src/palacios/vmm_msr.c index 2329f53..b960187 100644 --- a/palacios/src/palacios/vmm_msr.c +++ b/palacios/src/palacios/vmm_msr.c @@ -108,12 +108,17 @@ int v3_handle_msr_read(struct guest_info * info) { int v3_msr_unhandled_read(struct guest_info * core, uint32_t msr, struct v3_msr * dst, void * priv_data) { - V3_Print("Palacios: Unhandled MSR Read (MSR=0x%x)\n", msr); + V3_Print("Palacios: Unhandled MSR Read (MSR=0x%x) - returning zero\n", msr); + + dst->value = 0; + + // should produce GPF for unsupported msr return 0; } int v3_msr_unhandled_write(struct guest_info * core, uint32_t msr, struct v3_msr src, void * priv_data) { - V3_Print("Palacios: Unhandled MSR Write (MSR=0x%x)\n", msr); + V3_Print("Palacios: Unhandled MSR Write (MSR=0x%x) - ignored\n", msr); + // should produce GPF for unsupported msr return 0; }