virt: Support detection for ARM64 Hyper-V guests
authorBoqun Feng <boqun.feng@gmail.com>
Wed, 13 Oct 2021 03:32:09 +0000 (11:32 +0800)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 10 Nov 2021 14:01:29 +0000 (15:01 +0100)
commit258968ba75bc27d4ea61967b9a27c1f139e89799
tree92439f5152d8d8c967a2389d4ef3e0467f21a22f
parent01cf580c235ac4725051e6101ce5bcef1b97cc48
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

(cherry picked from commit 506bbc8569014253ea8614b680ccbc4fc2513a87)
src/basic/virt.c