virt: Fix the detection for Hyper-V VMs
authorBoqun Feng <boqun.feng@gmail.com>
Tue, 23 Nov 2021 07:09:26 +0000 (15:09 +0800)
committerLuca Boccassi <bluca@debian.org>
Mon, 27 May 2024 13:02:03 +0000 (14:02 +0100)
commit4bc7f3757fa00796da71c63c2a930bd0516c79c0
treed990d19719547b22a200357d1413fdb1be4da169
parentb6df827b05ba61439fc46ea5f013a91900bb14a8
virt: Fix the detection for Hyper-V VMs

Use product_version instead of product_name in DMI table and the string
"Hyper-V" to avoid misdetection.

Fixes: #21468
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
(cherry picked from commit 76eec0649936d9ae2f9087769f463feaf0cf5cb4)

Gbp-Pq: Name virt-Fix-the-detection-for-Hyper-V-VMs.patch
src/basic/virt.c