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

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