5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-01-10 01:18:01 +03:00

cpuflags : don't enforce with tcg mode

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
Alexandre Derumier 2015-07-20 12:30:58 +02:00 committed by Dietmar Maurer
parent dac7c6190c
commit f1f7ea886a

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