vbox5: quirk microcode patch attempts by guests

Fixes #2847
This commit is contained in:
Alexander Boettcher 2018-05-30 17:15:04 +02:00 committed by Christian Helmuth
parent de328c412a
commit e087d6ad19
3 changed files with 13 additions and 1 deletions

View File

@ -1 +1 @@
218d93225ef6a41885a6b0a623d8004a590b4f7a
b133c6dd40d51e4cbd0d8906f3f7ff5a57f8a7bf

View File

@ -0,0 +1,11 @@
--- a/src/app/virtualbox/src/VBox/VMM/VMMAll/CPUMAllMsrs.cpp
--- b/src/app/virtualbox/src/VBox/VMM/VMMAll/CPUMAllMsrs.cpp
@@ -251,6 +251,8 @@
RT_NOREF_PV(pVCpu); RT_NOREF_PV(idMsr); RT_NOREF_PV(pRange);
/** @todo fake microcode update. */
*puValue = pRange->uValue;
+ *puValue = ~0ULL;
+ RTLogPrintf("%s: overwrite %llx->%llx to avoid endless microcode patch loop\n", __func__, pRange->uValue, *puValue);
return VINF_SUCCESS;
}

View File

@ -12,3 +12,4 @@ mm.patch
substr.patch
vusburb.patch
audio.patch
microcode.patch