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

2012-03-05 Thread Peter Krempa

On 03/03/2012 03:06 AM, Eric Blake wrote:

On 02/29/2012 07:53 AM, Peter Krempa wrote:

Some new cpu features were added to qemu. This patch adds some of them
to our CPU map.
---


Thanks; that helped review.  ACK.


Pushed; Thanks

Peter

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


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

2012-03-02 Thread Eric Blake
On 02/29/2012 07:53 AM, Peter Krempa wrote:
 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,
 };

Thanks; that helped review.  ACK.

-- 
Eric Blake   ebl...@redhat.com+1-919-301-3266
Libvirt virtualization library http://libvirt.org



signature.asc
Description: OpenPGP digital signature
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

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

2012-02-29 Thread Peter Krempa
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='0x8001' ecx='0x0200'/
 /feature
+feature name='ibs'
+  cpuid function='0x8001' ecx='0x0400'/
+/feature
+feature name='xop'
+  cpuid function='0x8001' ecx='0x0800'/
+/feature
 feature name='skinit' !-- CPUID_EXT3_SKINIT --
   cpuid function='0x8001' ecx='0x1000'/
 /feature
 feature name='wdt'
   cpuid function='0x8001' ecx='0x2000'/
 /feature
+feature name='fma4'
+  cpuid function='0x8001' ecx='0x0001'/
+/feature
+feature name='cvt16'
+  cpuid function='0x8001' ecx='0x0004'/
+/feature
+feature name='nodeid_msr'
+  cpuid function='0x8001' ecx='0x0008'/
+/feature

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

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