mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
OcCpuLib: Fix crash when gathering system report on virtualised CPUs
closes acidanthera/bugtracker#2270
This commit is contained in:
parent
47a3da4822
commit
d25ec52b22
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user