git.annexia.org
/
virt-what.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Detect KVM property when running on POWER (RHBZ#1455676).
[virt-what.git]
/
virt-what.in
diff --git
a/virt-what.in
b/virt-what.in
index
1a373ed
..
39afedb
100644
(file)
--- a/
virt-what.in
+++ b/
virt-what.in
@@
-288,6
+288,11
@@
if ! "$skip_qemu_kvm"; then
echo qemu
skip_lkvm=true
fi
echo qemu
skip_lkvm=true
fi
+ elif [ -d /proc/device-tree/hypervisor ] &&
+ grep -q "linux,kvm" /proc/device-tree/hypervisor/compatible; then
+ # We are running as a spapr KVM guest on ppc64
+ echo kvm
+ skip_lkvm=true
else
# XXX This is known to fail for qemu with the explicit -cpu
# option, since /proc/cpuinfo will not contain the QEMU
else
# XXX This is known to fail for qemu with the explicit -cpu
# option, since /proc/cpuinfo will not contain the QEMU