]> git.proxmox.com Git - qemu-server.git/commitdiff
cpuflags : don't enforce with tcg mode
authorAlexandre Derumier <aderumier@odiso.com>
Mon, 20 Jul 2015 10:30:58 +0000 (12:30 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 22 Jul 2015 10:40:47 +0000 (12:40 +0200)
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
PVE/QemuServer.pm

index 5ef814b179c054f0fd8b33a1fcab7e03a25bec04..6d86497601c96c5efa8323d24d4268d72ed7f188 100644 (file)
@@ -2850,7 +2850,7 @@ sub config_to_command {
        push @$cpuFlags , '+kvm_pv_eoi' if !$nokvm;
     }
 
-    push @$cpuFlags, 'enforce' if $cpu ne 'host';
+    push @$cpuFlags, 'enforce' if $cpu ne 'host' && !$nokvm;
 
     $cpu .= "," . join(',', @$cpuFlags) if scalar(@$cpuFlags);