Author: anish
Date: Mon Apr 11 05:09:43 2016
New Revision: 297806
URL: https://svnweb.freebsd.org/changeset/base/297806

Log:
  Allow guest writes to AMD microcode update[0xc0010020] MSR without updating 
actual hardware MSR. This allows guest microcode update to go through which 
otherwise failing because wrmsr() was returning EINVAL.
  
  Submitted by:Yamagi Burmeister
  Approved by:grehan
  MFC after:2 weeks

Modified:
  head/sys/amd64/vmm/amd/svm_msr.c

Modified: head/sys/amd64/vmm/amd/svm_msr.c
==============================================================================
--- head/sys/amd64/vmm/amd/svm_msr.c    Mon Apr 11 04:56:23 2016        
(r297805)
+++ head/sys/amd64/vmm/amd/svm_msr.c    Mon Apr 11 05:09:43 2016        
(r297806)
@@ -156,6 +156,11 @@ svm_wrmsr(struct svm_softc *sc, int vcpu
                 * Ignore writes to the "Interrupt Pending Message" MSR.
                 */
                break;
+       case MSR_K8_UCODE_UPDATE:
+               /*
+                * Ignore writes to microcode update register.
+                */
+               break;
        default:
                error = EINVAL;
                break;
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to