Add hyper-v timer enlightenments for windows guests
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Daniel Berrange |
Bug Description
Back in Folsom we added some special timer settings to improve the reliability of guest time keeping and performance
https:/
These were useful for both Windows and Linux guests, but since that time, KVM has gained support for a number of further tunables that specifically help Windows guests supporting Hyper-V enlightenments. Setting these for all windows guests will improve time keeping reliability and performance of windows guests. There is no harm to setting them with old windows versions which lack support for this, since they'll simply ignore the extra feature with no negative impact.
The recommended qemu configuration is from QEMU maintainers is:
-cpu ...,hv_
Which maps to the libvirt XML:
<features>
<hyperv>
<relaxed state='on'/>
<vapic state='on'/>
<spinlocks state='on' retries='8191'/>
</hyperv>
<features/>
<clock ...>
<timer name='hypervclock' present='yes'/>
</clock>
Though there are some version caveats here:
- relaxed state='on' libvirt 1.0.0+, qemu 1.1+
- vapic, spinlocks requires libvirt 1.1.0+, qemu 1.1+
- hypervclock requires libvirt 1.2.2+, qemu 2.0.0+
Changed in nova: | |
status: | New → Confirmed |
assignee: | nobody → Daniel Berrange (berrange) |
importance: | Undecided → Medium |
Changed in nova: | |
milestone: | none → kilo-2 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | kilo-2 → 2015.1.0 |
Related fix proposed to branch: master /review. openstack. org/140084
Review: https:/