]> git.proxmox.com Git - qemu-server.git/commitdiff
enable cpu enforce
authorAlexandre Derumier <aderumier@odiso.com>
Mon, 16 Mar 2015 04:57:47 +0000 (05:57 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 17 Mar 2015 07:58:14 +0000 (08:58 +0100)
It wasn't working with 2.6.32,
now that 3.10 kernel is the default, we can enable it.

It's help to be sure that all cpu flags are supported by host && qemu,
to be sure that nothing break

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
PVE/QemuServer.pm

index f4a13491b0368d8e8171f366f9c254b6e9ea4dd5..33bbf600ec3ad493fc263c26e619a887b0f31a2d 100644 (file)
@@ -2917,9 +2917,7 @@ sub config_to_command {
 
     $cpu .= "," . join(',', @$cpuFlags) if scalar(@$cpuFlags);
 
-    # Note: enforce needs kernel 3.10, so we do not use it for now
-    # push @$cmd, '-cpu', "$cpu,enforce";
-    push @$cmd, '-cpu', $cpu;
+    push @$cmd, '-cpu', "$cpu,enforce";
 
     my $memory = $conf->{memory} || $defaults->{memory};
     my $static_memory = 0;