[libvirt] [PATCH] cpu: Add cpu flags supported by newest qemu

Add support for newly supported Intel cpu features. Newly supported flags are: pclmuldq, dtes64, smx, fma, pdcm, movbe, xsave, osxsave and avx. This adds support for Intel's Sandy Bridge platform. --- I did not add a new cpu model, as there's no corresponding model in QEMU yet. https://bugzilla.redhat.com/show_bug.cgi?id=761005 src/cpu/cpu_map.xml | 27 +++++++++++++++++++++++++++ 1 files changed, 27 insertions(+), 0 deletions(-) diff --git a/src/cpu/cpu_map.xml b/src/cpu/cpu_map.xml index 35dca20..693caf1 100644 --- a/src/cpu/cpu_map.xml +++ b/src/cpu/cpu_map.xml @@ -100,6 +100,12 @@ <feature name='pni'> <!-- CPUID_EXT_SSE3 --> <cpuid function='0x00000001' ecx='0x00000001'/> </feature> + <feature name='pclmuldq'> + <cpuid function='0x00000001' ecx='0x00000002'/> + </feature> + <feature name='dtes64'> + <cpuid function='0x00000001' ecx='0x00000004'/> + </feature> <feature name='monitor'> <!-- CPUID_EXT_MONITOR --> <cpuid function='0x00000001' ecx='0x00000008'/> </feature> @@ -109,6 +115,9 @@ <feature name='vmx'> <!-- CPUID_EXT_VMX --> <cpuid function='0x00000001' ecx='0x00000020'/> </feature> + <feature name='smx'> + <cpuid function='0x00000001' ecx='0x00000040'/> + </feature> <feature name='est'> <!-- CPUID_EXT_EST --> <cpuid function='0x00000001' ecx='0x00000080'/> </feature> @@ -121,12 +130,18 @@ <feature name='cid'> <!-- CPUID_EXT_CID --> <cpuid function='0x00000001' ecx='0x00000400'/> </feature> + <feature name='fma'> + <cpuid function='0x00000001' ecx='0x00001000'/> + </feature> <feature name='cx16'> <!-- CPUID_EXT_CX16 --> <cpuid function='0x00000001' ecx='0x00002000'/> </feature> <feature name='xtpr'> <!-- CPUID_EXT_XTPR --> <cpuid function='0x00000001' ecx='0x00004000'/> </feature> + <feature name='pdcm'> + <cpuid function='0x00000001' ecx='0x00008000'/> + </feature> <feature name='dca'> <!-- CPUID_EXT_DCA --> <cpuid function='0x00000001' ecx='0x00040000'/> </feature> @@ -139,12 +154,24 @@ <feature name='x2apic'> <!-- CPUID_EXT_X2APIC --> <cpuid function='0x00000001' ecx='0x00200000'/> </feature> + <feature name='movbe'> + <cpuid function='0x00000001' ecx='0x00400000'/> + </feature> <feature name='popcnt'> <!-- CPUID_EXT_POPCNT --> <cpuid function='0x00000001' ecx='0x00800000'/> </feature> <feature name='aes'> <cpuid function='0x00000001' ecx='0x02000000'/> </feature> + <feature name='xsave'> + <cpuid function='0x00000001' ecx='0x04000000'/> + </feature> + <feature name='osxsave'> + <cpuid function='0x00000001' ecx='0x08000000'/> + </feature> + <feature name='avx'> + <cpuid function='0x00000001' ecx='0x10000000'/> + </feature> <feature name='hypervisor'> <!-- CPUID_EXT_HYPERVISOR --> <cpuid function='0x00000001' ecx='0x80000000'/> </feature> -- 1.7.3.4

On 12/08/2011 07:18 AM, Peter Krempa wrote:
Add support for newly supported Intel cpu features. Newly supported flags are: pclmuldq, dtes64, smx, fma, pdcm, movbe, xsave, osxsave and avx. This adds support for Intel's Sandy Bridge platform. --- I did not add a new cpu model, as there's no corresponding model in QEMU yet.
https://bugzilla.redhat.com/show_bug.cgi?id=761005
src/cpu/cpu_map.xml | 27 +++++++++++++++++++++++++++ 1 files changed, 27 insertions(+), 0 deletions(-)
ACK - I'm trusting that you got the bits right. -- Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org

On 12/08/2011 08:01 PM, Eric Blake wrote:
On 12/08/2011 07:18 AM, Peter Krempa wrote:
Add support for newly supported Intel cpu features. Newly supported flags are: pclmuldq, dtes64, smx, fma, pdcm, movbe, xsave, osxsave and avx. This adds support for Intel's Sandy Bridge platform. --- I did not add a new cpu model, as there's no corresponding model in QEMU yet.
https://bugzilla.redhat.com/show_bug.cgi?id=761005
src/cpu/cpu_map.xml | 27 +++++++++++++++++++++++++++ 1 files changed, 27 insertions(+), 0 deletions(-)
ACK - I'm trusting that you got the bits right.
I checked them again before pushing. Thanks. Peter
-- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
participants (2)
-
Eric Blake
-
Peter Krempa