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>
Thu, 22 Dec 2022 11:55:42 +0000 (11:55 +0000)
commitd551b2aa1c324924703b7731bbe63d255cecd997
treed4f2d500f8d269b479c53a0512911e781636d2de
parentce72b0fca016975a77e942a44e1ac7e88fee58b0
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