提交 d25ec52b 编写于 作者: V vit9696

OcCpuLib: Fix crash when gathering system report on virtualised CPUs

closes acidanthera/bugtracker#2270
上级 47a3da48
......@@ -17,6 +17,7 @@ OpenCore Changelog
- Updated build process to provide stable and bleeding-edge versions of `EnableGop`
- Implemented minor improvements in `PickerMode` `Apple`
- Improved filtering algorithm for `LogModules` option
- Fixed crash when gathering system report on virtualised CPUs
#### v0.9.1
- Fixed long comment printing for ACPI patches, thx @corpnewt
......
......@@ -999,6 +999,14 @@ OcCpuGetMsrReport (
return;
}
//
// Hypervisors virtualise MSRs so the values are either not present
// and cause a crash or are irrelevant as they report placeholders.
//
if (CpuInfo->Hypervisor) {
return;
}
if (CpuInfo->CpuGeneration >= OcCpuGenerationNehalem) {
//
// MSR_PLATFORM_INFO
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册