Blame SOURCES/0003-As-xen-pv-guest-can-access-cpuid-from-Intel-CPUs-sta.patch

e10a2d
From a821dc9961d457c086fffcc16a911cb6f9f8659a Mon Sep 17 00:00:00 2001
e10a2d
From: xiliang <xiliang@redhat.com>
e10a2d
Date: Sun, 18 Jun 2017 00:33:28 +0800
e10a2d
Subject: [PATCH 03/21] As xen pv guest can access cpuid from Intel CPUs
e10a2d
 started IvyBridge onwards have CPUID Faulting, added one more check in
e10a2d
 virt-what.
e10a2d
e10a2d
---
e10a2d
 virt-what.in | 5 +++--
e10a2d
 1 file changed, 3 insertions(+), 2 deletions(-)
e10a2d
e10a2d
diff --git a/virt-what.in b/virt-what.in
e10a2d
index a05e0db..247348e 100644
e10a2d
--- a/virt-what.in
e10a2d
+++ b/virt-what.in
e10a2d
@@ -1,6 +1,6 @@
e10a2d
 #!/bin/sh -
e10a2d
 # @configure_input@
e10a2d
-# Copyright (C) 2008-2015 Red Hat Inc.
e10a2d
+# Copyright (C) 2008-2017 Red Hat Inc.
e10a2d
 #
e10a2d
 # This program is free software; you can redistribute it and/or modify
e10a2d
 # it under the terms of the GNU General Public License as published by
e10a2d
@@ -223,7 +223,8 @@ fi
e10a2d
 
e10a2d
 # Check for Xen.
e10a2d
 
e10a2d
-if [ "$cpuid" = "XenVMMXenVMM" ]; then
e10a2d
+if [ "$cpuid" = "XenVMMXenVMM" ] &&
e10a2d
+    ! echo "$dmi" | grep -q 'No SMBIOS nor DMI entry point found, sorry'; then
e10a2d
     echo xen; echo xen-hvm
e10a2d
     # Check for AWS
e10a2d
     if echo "$dmi" | grep -q 'Version: [0-9]\.[0-9]\.amazon'; then
e10a2d
-- 
e10a2d
2.23.0
e10a2d