[PATCH] cpu: Add new flag supported by qemu to the cpu definition

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Some new cpu features were added to qemu. This patch adds some of them
to our CPU map.
---
to ease review, here's an excerpt from qemu.git/target-i386/cpuid.c to ease the review:

static const char *ext3_feature_name[] = {
    "lahf_lm" /* AMD LahfSahf */, "cmp_legacy", "svm", "extapic" /* AMD ExtApicSpace */,
    "cr8legacy" /* AMD AltMovCr8 */, "abm", "sse4a", "misalignsse",
    "3dnowprefetch", "osvw", "ibs", "xop",
    "skinit", "wdt", NULL, NULL,
    "fma4", NULL, "cvt16", "nodeid_msr",
    NULL, NULL, NULL, NULL,
    NULL, NULL, NULL, NULL,
    NULL, NULL, NULL, NULL,
};

(each line corresponds to one order of magnitude in the hex representation)

 src/cpu/cpu_map.xml |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/src/cpu/cpu_map.xml b/src/cpu/cpu_map.xml
index 3e6810f..4ce3131 100644
--- a/src/cpu/cpu_map.xml
+++ b/src/cpu/cpu_map.xml
@@ -236,12 +236,27 @@
     <feature name='osvw'> <!-- CPUID_EXT3_OSVW -->
       <cpuid function='0x80000001' ecx='0x00000200'/>
     </feature>
+    <feature name='ibs'>
+      <cpuid function='0x80000001' ecx='0x00000400'/>
+    </feature>
+    <feature name='xop'>
+      <cpuid function='0x80000001' ecx='0x00000800'/>
+    </feature>
     <feature name='skinit'> <!-- CPUID_EXT3_SKINIT -->
       <cpuid function='0x80000001' ecx='0x00001000'/>
     </feature>
     <feature name='wdt'>
       <cpuid function='0x80000001' ecx='0x00002000'/>
     </feature>
+    <feature name='fma4'>
+      <cpuid function='0x80000001' ecx='0x00010000'/>
+    </feature>
+    <feature name='cvt16'>
+      <cpuid function='0x80000001' ecx='0x00040000'/>
+    </feature>
+    <feature name='nodeid_msr'>
+      <cpuid function='0x80000001' ecx='0x00080000'/>
+    </feature>

     <!-- models -->
     <model name='486'>
-- 
1.7.3.4

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]