Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
kb:linux:kvm:hyperv_enightments [2015/12/12 21:18] – milano | kb:linux:kvm:hyperv_enightments [2015/12/12 21:32] (current) – milano | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Enabling Hyper-V enlightenments with KVM ====== | ====== Enabling Hyper-V enlightenments with KVM ====== | ||
+ | |||
+ | Author: [[http:// | ||
Windows has support for several paravirt features that it will use when running on Hyper-V, Microsoft' | Windows has support for several paravirt features that it will use when running on Hyper-V, Microsoft' | ||
- | Nowadays QEMU/KVM can also enable support for several Hyper-V enlightenments. When enabled, Windows VMs running on KVM will use many of the same paravirt optimizations they would use when running on Hyper-V. For detailed info, see Vadim' | + | Nowadays QEMU/KVM can also enable support for several Hyper-V enlightenments. When enabled, Windows VMs running on KVM will use many of the same paravirt optimizations they would use when running on Hyper-V. For detailed info, see [[http:// |
From the QEMU/KVM developers, the recommended configuration is: | From the QEMU/KVM developers, the recommended configuration is: | ||
Line 13: | Line 15: | ||
Which maps to the libvirt XML: | Which maps to the libvirt XML: | ||
< | < | ||
- | < | ||
< | < | ||
< | < | ||
- | < | + | < |
< | < | ||
< | < | ||
Line 25: | Line 26: | ||
<timer name=' | <timer name=' | ||
</ | </ | ||
- | </ | ||
</ | </ | ||
Some details about the individual features: | Some details about the individual features: | ||
- | | + | ^ Fetaure ^ Description ^ |
- | vapic/ | + | |relaxed/ |
- | spinlocks/ | + | |vapic/ |
- | hypervclock/ | + | |spinlocks/ |
+ | |hypervclock/ | ||
Line 42: | Line 43: | ||
The next version of virt-manager will enable Hyper-V enlightenments when creating a Windows VM (git commit). virt-xml can also be used to enable these bits easily from the command line for an existing VM: | The next version of virt-manager will enable Hyper-V enlightenments when creating a Windows VM (git commit). virt-xml can also be used to enable these bits easily from the command line for an existing VM: | ||
+ | < | ||
sudo virt-xml $VMNAME --edit --features hyperv_relaxed=on, | sudo virt-xml $VMNAME --edit --features hyperv_relaxed=on, | ||
sudo virt-xml $VMNAME --edit --clock hypervclock_present=yes | sudo virt-xml $VMNAME --edit --clock hypervclock_present=yes | ||
+ | </ | ||
Line 50: | Line 53: | ||
Other tools aren't enabling these features yet, though there are bugs tracking this for the big ones: | Other tools aren't enabling these features yet, though there are bugs tracking this for the big ones: | ||
- | ovirt/ | + | [[https:// |
- | | + | [[https:// |
- | | + | [[https:// |
(edit 2014-09-08: This change was released in virt-manager-1.1.0) | (edit 2014-09-08: This change was released in virt-manager-1.1.0) |