git.annexia.org
/
virt-what.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9d90704
)
As xen pv guest can access cpuid from Intel CPUs started IvyBridge onwards have CPUID...
author
xiliang
<xiliang@redhat.com>
Sat, 17 Jun 2017 16:33:28 +0000
(
00:33
+0800)
committer
Richard W.M. Jones
<rjones@redhat.com>
Tue, 17 Oct 2017 11:13:28 +0000
(12:13 +0100)
virt-what.in
patch
|
blob
|
history
diff --git
a/virt-what.in
b/virt-what.in
index
a05e0db
..
247348e
100644
(file)
--- a/
virt-what.in
+++ b/
virt-what.in
@@
-1,6
+1,6
@@
#!/bin/sh -
# @configure_input@
#!/bin/sh -
# @configure_input@
-# Copyright (C) 2008-201
5
Red Hat Inc.
+# Copyright (C) 2008-201
7
Red Hat Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@
-223,7
+223,8
@@
fi
# Check for Xen.
# Check for Xen.
-if [ "$cpuid" = "XenVMMXenVMM" ]; then
+if [ "$cpuid" = "XenVMMXenVMM" ] &&
+ ! echo "$dmi" | grep -q 'No SMBIOS nor DMI entry point found, sorry'; then
echo xen; echo xen-hvm
# Check for AWS
if echo "$dmi" | grep -q 'Version: [0-9]\.[0-9]\.amazon'; then
echo xen; echo xen-hvm
# Check for AWS
if echo "$dmi" | grep -q 'Version: [0-9]\.[0-9]\.amazon'; then