enable cpu enforce

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>
This commit is contained in:
Alexandre Derumier 2015-03-16 05:57:47 +01:00 committed by Dietmar Maurer
parent 0da5a08cb4
commit 6a33d44a91

View 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;