virt: support detection of Apple Virtualization guests with cpuid
This is a supplement to #24419. On macOS Intel machines, detection needs to be done through cpuid. In macOS, `dmi_vendors` detection is only applicable to M series. Signed-off-by: Black-Hole1 <bh@bugs.cc>
This commit is contained in:
@@ -54,6 +54,7 @@ static Virtualization detect_vm_cpuid(void) {
|
||||
{ "ACRNACRNACRN", VIRTUALIZATION_ACRN },
|
||||
/* https://www.lockheedmartin.com/en-us/products/Hardened-Security-for-Intel-Processors.html */
|
||||
{ "SRESRESRESRE", VIRTUALIZATION_SRE },
|
||||
{ "Apple VZ", VIRTUALIZATION_APPLE },
|
||||
};
|
||||
|
||||
uint32_t eax, ebx, ecx, edx;
|
||||
|
||||
Reference in New Issue
Block a user