svn commit: r297806 - head/sys/amd64/vmm/amd

Anish Gupta anish at FreeBSD.org
Mon Apr 11 05:09:45 UTC 2016


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;


More information about the svn-src-all mailing list