mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-30 11:30:53 +00:00
hv_spinlocks : use 0x1fff instead 0xffff
redhat use 0x1fff (8191) vs 0xffff (65535) This is the number of retries of spinlocks Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
parent
23f73120b7
commit
8f3f959d46
@ -2866,8 +2866,12 @@ sub config_to_command {
|
|||||||
push @$globalFlags, 'kvm-pit.lost_tick_policy=discard';
|
push @$globalFlags, 'kvm-pit.lost_tick_policy=discard';
|
||||||
push @$cmd, '-no-hpet';
|
push @$cmd, '-no-hpet';
|
||||||
#push @$cpuFlags , 'hv_vapic" if !$nokvm; #fixme, my win2008R2 hang at boot with this
|
#push @$cpuFlags , 'hv_vapic" if !$nokvm; #fixme, my win2008R2 hang at boot with this
|
||||||
|
if (qemu_machine_feature_enabled ($machine_type, $kvmver, 2, 3)) {
|
||||||
|
push @$cpuFlags , 'hv_spinlocks=0x1fff' if !$nokvm;
|
||||||
|
} else {
|
||||||
push @$cpuFlags , 'hv_spinlocks=0xffff' if !$nokvm;
|
push @$cpuFlags , 'hv_spinlocks=0xffff' if !$nokvm;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ($ost eq 'win7' || $ost eq 'win8') {
|
if ($ost eq 'win7' || $ost eq 'win8') {
|
||||||
push @$cpuFlags , 'hv_relaxed' if !$nokvm;
|
push @$cpuFlags , 'hv_relaxed' if !$nokvm;
|
||||||
|
Loading…
Reference in New Issue
Block a user