add kvm_pv_unhalt cpu flag

require pvticketlocks from kernel 3.12 (backported in redhat 3.10 kernel)

see:
http://lwn.net/Articles/493402/

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
Alexandre Derumier 2015-03-16 05:57:45 +01:00 committed by Dietmar Maurer
parent cfac0be43d
commit 117a041466

View File

@ -2909,6 +2909,11 @@ sub config_to_command {
push @$cpuFlags, '+sep' if $cpu eq 'kvm64' || $cpu eq 'kvm32';
if (qemu_machine_feature_enabled ($machine_type, $kvmver, 2, 3)) {
push @$cpuFlags , '+kvm_pv_unhalt' if !$nokvm;
}
$cpu .= "," . join(',', @$cpuFlags) if scalar(@$cpuFlags);
# Note: enforce needs kernel 3.10, so we do not use it for now