summaryrefslogtreecommitdiff
path: root/bin
diff options
authorMike Rushton <mike.rushton@canonical.com>2016-04-13 16:28:51 -0500
committerMike Rushton <mike.rushton@canonical.com>2016-04-13 16:28:51 -0500
commit448ee1a1f0040a25b0035f34722f027acd55c5b4 (patch)
tree7f6be94ee07294063369d70551d910f8d2d641f0 /bin
parent865e35acf95c873edcccc6033fe8b1e3c668e701 (diff)
providers:checkbox: Update profile for kvm test
Diffstat (limited to 'bin')
-rwxr-xr-xbin/virtualization10
1 files changed, 9 insertions, 1 deletions
diff --git a/bin/virtualization b/bin/virtualization
index 532bef8..4dfb9b1 100755
--- a/bin/virtualization
+++ b/bin/virtualization
@@ -110,7 +110,9 @@ QEMU_ARCH_CONFIG = {
'qemu_bin': 'qemu-system-ppc64',
'qemu_disk_type': QEMU_DISK_TYPE_VIRTIO,
'qemu_extra_args': [
- '-machine', 'pseries',
+ '-enable-kvm',
+ '-machine', 'pseries,usb=off',
+ '-cpu', 'POWER8',
],
},
}
@@ -444,7 +446,13 @@ def test_kvm(args):
image = args.image
kvm_test = KVMTest(image, timeout, args.log_file)
+ # If arch is ppc64el, disable smt
+ if kvm_test.arch == 'ppc64el':
+ os.system("/usr/sbin/ppc64_cpu --smt=off")
result = kvm_test.start()
+ # If arch is ppc64el, re-enable smt
+ if kvm_test.arch == 'ppc64el':
+ os.system("/usr/sbin/ppc64_cpu --smt=on")
sys.exit(result)