]> git.ipfire.org Git - thirdparty/libvirt.git/commit
cpu: Add recently added cpu feature flags.
authorPeter Krempa <pkrempa@redhat.com>
Wed, 24 Oct 2012 13:10:51 +0000 (15:10 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 24 Oct 2012 15:36:03 +0000 (17:36 +0200)
commit012f9b19ef3812884e207dc431571502de4cebce
treea721b74de4b107bc84c08c351d07ac763ece2349
parenta6bd7c22ea31af5db0251733ce1321addb9d27a4
cpu: Add recently added cpu feature flags.

Qemu has added some new feature flags. This patch adds them to libvirt.

The new features are for the cpuid function 0x7 that takes an argument
in the ecx register. Currently only 0x0 is used as the argument so I was
lazy and I just clear the registers to 0 before calling cpuid. In future
when there maybe will be some other possible arguments, we will need to
improve the cpu detection code to take this into account.
src/cpu/cpu_map.xml
src/cpu/cpu_x86.c