WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] [PATCH]: Add support for Intel CPUID Feature mask in Xen

To: "Ke, Liping" <liping.ke@xxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH]: Add support for Intel CPUID Feature mask in Xen
From: "Ian Pratt" <Ian.Pratt@xxxxxxxxxxxxx>
Date: Wed, 9 Jul 2008 10:19:04 +0100
Cc: Ian Pratt <Ian.Pratt@xxxxxxxxxxxxx>
Delivery-date: Wed, 09 Jul 2008 02:19:34 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <391BF3CDD2DC0848B40ACB72FA97AD5903A722DA@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <391BF3CDD2DC0848B40ACB72FA97AD5903A722DA@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcjhiTJJ+Xm2tib1RWiPwpW4s/HSkgAGq56A
Thread-topic: [Xen-devel] [PATCH]: Add support for Intel CPUID Feature mask in Xen
> Hi, all
> Some Latest Intel CPU models (CPUID.1.EAX >= 0x00010674) support cupid
> mask features. Cpuid feature mask is used to limit the feature flags
> reported by CPUID.1.EDX:ECX.
> 
> This small patch adds CPUID feature mask support in XEN by adding boot
> options in Grub entry as below example:
> kernel /boot/xen.gz com1=115200,8n1 console=com1 cpuid_mask_ecx =
> 0xFFFF7FFF cpuid_mask_edx = 0xFFFFFFFC
> 
> For detailed usage information, please refer to the attached document:
> cupid_feature_mask.txt.

It's good to see this feature enabled, but it would be a lot more user
friendly if the patch took a cpu family and model number and then
'flattened' the cpuid back to the specification of that CPU. We don't
need to go back very far (certainly not pre-VT), and I'd be happy if we
just did all core2 (and newer) CPUs.

Also, is there a magic MSR to change the CPU family/model number
reported? It would make sense to do this too.

At what point does the CPU masking occur? Ideally we'd do it just before
starting dom0. [Actually, we might want to be able to invoke it from
libxc in future too]

Ian  

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel