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

[Xen-devel] RE: [osrc-patches] [PATCH] libxc: remove CPUID core informat

To: "Przywara, Andre" <Andre.Przywara@xxxxxxx>, Keir Fraser <keir.fraser@xxxxxxxxxxxxx>, Nitin Kamble <nitin.a.kamble@xxxxxxxxx>
Subject: [Xen-devel] RE: [osrc-patches] [PATCH] libxc: remove CPUID core information mangling
From: "Huang2, Wei" <Wei.Huang2@xxxxxxx>
Date: Wed, 25 Aug 2010 10:25:18 -0500
Accept-language: en-US
Acceptlanguage: en-US
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 25 Aug 2010 08:29:17 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4C7506BA.4000001@xxxxxxx>
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: <4C7506BA.4000001@xxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: ActETiqI49zIYtH/TvmM23SYiwoOZAAGI9lw
Thread-topic: [osrc-patches] [PATCH] libxc: remove CPUID core information mangling
Few comments on this patch. 

* First, AMD CPUID:0x80000008:ECX[NC(7:0)] should match with the total number 
of cores (VCPUS) assigned to guest VM. Assigning 0xff to NC is a bit scary to 
me. According to AMD CPUID spec, NC represents the "actually implemented or 
enabled on the processor, as indicated by CPUID Fn8000_0008_ECX[NC]". Most OS 
doesn't enforce this check; but I saw our internal test program does that. 
* I am OK 80000008:ECX[15:12] change. But this change has an implication that 
all cores (VCPUS) are on the same physical processor. OS might not care about 
these bits. But this ought to be set correctly in my mind.

-----Original Message-----
From: osrc-patches-bounces@xxxxxxxxxxxx 
[mailto:osrc-patches-bounces@xxxxxxxxxxxx] On Behalf Of Andre Przywara
Sent: Wednesday, August 25, 2010 7:04 AM
To: Keir Fraser; Nitin Kamble
Cc: xen-devel
Subject: [osrc-patches] [PATCH] libxc: remove CPUID core information mangling

Hi,

c/s 18560:782599274bf9ae8857c55856c9c7fdf082967808 introduced CPUID mangling 
resulting in a doubled number of cores/processor exposed to the guest. 
According to comments in this patch the rationale behind this is to match the 
APIC numbering used by Xen.
In my understanding the CPUID leafs dealing with number of cores always talk 
about logical numbers and not APIC IDs. So we don't need to adjust the CPUID 
readout to match the APIC ID enumeration scheme.
If there were any serious reasons resulting in the old patch I'd love to hear 
them.

The attached patch fixes this and solves an issue I saw with certain NUMA guest 
configurations.

Signed-off-by: Andre Przywara <andre.przywara@xxxxxxx>

--
Andre Przywara
AMD-Operating System Research Center (OSRC), Dresden, Germany
Tel: +49 351 448-3567-12


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