mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
virt: Support detection for ARM64 Hyper-V guests
The detection of Microsoft Hyper-V VMs is done by cpuid currently, however there is no cpuid on ARM64. And since ARM64 is now a supported architecture for Microsoft Hyper-V guests[1], then use DMI tables to detect a Hyper-V guest, which is more generic and works for ARM64. [1]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7aff79e297ee1aa0126924921fd87a4ae59d2467
This commit is contained in:
committed by
Lennart Poettering
parent
0bc0726ead
commit
506bbc8569
@@ -165,6 +165,7 @@ static int detect_vm_dmi_vendor(void) {
|
||||
{ "Parallels", VIRTUALIZATION_PARALLELS },
|
||||
/* https://wiki.freebsd.org/bhyve */
|
||||
{ "BHYVE", VIRTUALIZATION_BHYVE },
|
||||
{ "Microsoft", VIRTUALIZATION_MICROSOFT },
|
||||
};
|
||||
int r;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user