[pve-devel] [PATCH] cpuflags : don't enforce with tcg mode

Alexandre Derumier aderumier at odiso.com
Mon Jul 20 12:30:58 CEST 2015


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 PVE/QemuServer.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index fbb5923..8d085f4 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -2965,7 +2965,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);
 
-- 
2.1.4




More information about the pve-devel mailing list