Add Microcode update handling.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jiewen Yao <jiewen.yao@intel.com>
This commit is contained in:
Jiewen Yao 2016-10-08 12:58:25 +08:00
parent a0a6a1c031
commit 2b5345f479
1 changed files with 8 additions and 0 deletions

View File

@ -168,6 +168,14 @@ WriteMsrHandler (
AsmWriteMsr (MsrIndex, Data64); // VMM does not use this
break;
#endif
case IA32_BIOS_UPDT_TRIG_MSR_INDEX:
DEBUG((EFI_D_INFO, "(FRM) !!!WriteMsrHandler (Microcode) - !!! %08x<-%016lx\n", (UINTN)MsrIndex, Data64));
Data64 = GuestVirtualToHostPhysical(Index, (UINTN)Data64);
if (Data64 != 0) {
DEBUG((EFI_D_INFO, "(FRM) !!! Microcode %016lx\n", Data64));
AsmWriteMsr64(MsrIndex, Data64);
}
break;
default:
#if 0
DEBUG ((EFI_D_INFO, "(FRM) !!!WriteMsrHandler - Other!!! %08x<-%016lx\n", (UINTN)MsrIndex, Data64));