We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb8b7fe commit c250949Copy full SHA for c250949
1 file changed
lib/qemu.py
@@ -466,9 +466,12 @@ def get_host_cpu():
466
if words[0] == 'cpu':
467
return words[2]
468
469
+def kvm_present():
470
+ return os.path.exists('/sys/module/kvm_hv')
471
+
472
473
def kvm_possible(machine, cpu):
- if machine == 'pseries' and os.path.exists('/sys/module/kvm_hv'):
474
+ if kvm_present() and machine == 'pseries':
475
host_cpu = get_host_cpu()
476
if host_cpu == 'POWER8':
477
supported = ['POWER8']
0 commit comments