Blame SOURCES/0034-Display-kvm-qemu-fact-for-Nutanix-AHV.patch

cc91b2
From 3d0a9d20c97f9f6d9be5229a94409b57ef429e35 Mon Sep 17 00:00:00 2001
cc91b2
From: "Richard W.M. Jones" <rjones@redhat.com>
cc91b2
Date: Thu, 22 Jul 2021 08:58:16 +0100
cc91b2
Subject: [PATCH 34/36] Display kvm/qemu fact for Nutanix AHV
cc91b2
cc91b2
Since these are based on KVM we should display those facts too.
cc91b2
cc91b2
Thanks: Paolo Bonzini
cc91b2
(cherry picked from commit c7f55d08c9ab2aaf56ebd0d179491f4e15b5097c)
cc91b2
---
cc91b2
 tests/nutanix-ahv/test.sh | 3 ++-
cc91b2
 virt-what.in              | 3 ---
cc91b2
 2 files changed, 2 insertions(+), 4 deletions(-)
cc91b2
cc91b2
diff --git a/tests/nutanix-ahv/test.sh b/tests/nutanix-ahv/test.sh
cc91b2
index a998dc0..d5d6af2 100755
cc91b2
--- a/tests/nutanix-ahv/test.sh
cc91b2
+++ b/tests/nutanix-ahv/test.sh
cc91b2
@@ -17,7 +17,8 @@
cc91b2
 
cc91b2
 output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
cc91b2
 expected="nutanix_ahv
cc91b2
-redhat"
cc91b2
+redhat
cc91b2
+kvm"
cc91b2
 
cc91b2
 if [ "$output" != "$expected" ]; then
cc91b2
     echo "$0: test failed because output did not match expected"
cc91b2
diff --git a/virt-what.in b/virt-what.in
cc91b2
index 850760e..d56c84f 100644
cc91b2
--- a/virt-what.in
cc91b2
+++ b/virt-what.in
cc91b2
@@ -232,11 +232,8 @@ if echo "$dmi" | grep -q 'Vendor: Parallels'; then
cc91b2
 fi
cc91b2
 
cc91b2
 # Check for Nutanix AHV.
cc91b2
-# This is sufficiently different from KVM and has Viridian extensions,
cc91b2
-# so skip the KVM test.
cc91b2
 if echo "$dmi" | grep -q 'Manufacturer: Nutanix'; then
cc91b2
     echo nutanix_ahv
cc91b2
-    skip_qemu_kvm=true
cc91b2
 fi
cc91b2
 
cc91b2
 # Check for oVirt/RHEV.
cc91b2
-- 
cc91b2
2.31.1
cc91b2