Fix duplicate of -no-kvm options

Fix #356
This commit is contained in:
Julien Duponchelle committed 2015-11-10 16:25:02 +01:00
1 parent caade47e16
commit 63edcc1c34
2 files changed
+22 -2

No files matched your search

+1 -1
View File
@@ -659,7 +659,7 @@ class QemuVM(BaseVM):
options = options.replace("-no-kvm", "")
if "-enable-kvm" in options:
options = options.replace("-enable-kvm", "")
elif "-icount" in options:
elif "-icount" in options and ("-no-kvm" not in options):
# automatically add the -no-kvm option if -icount is detected
# to help with the migration of ASA VMs created before version 1.4
options = "-no-kvm " + options