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] Problems with enabling hypervisor C and P-statecontrol

To: 'Ian Pratt' <Ian.Pratt@xxxxxxxxxxxxx>, "Yu, Ke" <ke.yu@xxxxxxxxx>, Niraj Tolia <ntolia@xxxxxxxxx>
Subject: RE: [Xen-devel] Problems with enabling hypervisor C and P-statecontrol
From: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
Date: Sat, 25 Oct 2008 11:01:27 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: "Liu, Jinsong" <jinsong.liu@xxxxxxxxx>, Xen Developers <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Sat, 25 Oct 2008 07:00:45 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <DD74FBB8EE28D441903D56487861CD9D38430482@xxxxxxxxxxxxxxxxxxxxxx>
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: <7e45e2ac0810220057w26b1ab45l8410c54346211d3f@xxxxxxxxxxxxxx><49582C73AC36CC4C8C6C42390304E81C092722CF78@xxxxxxxxxxxxxxxxxxxxxxxxxxxx><7e45e2ac0810231649o7fd82c81ha09912cfa6a92b76@xxxxxxxxxxxxxx><49582C73AC36CC4C8C6C42390304E81C092722D967@xxxxxxxxxxxxxxxxxxxxxxxxxxxx><7e45e2ac0810232145ob5f84bcs5c2aeb3e0b5de695@xxxxxxxxxxxxxx><49582C73AC36CC4C8C6C42390304E81C0927508EC9@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <D8078B8B3B09934AA9F8F2D5FB3F28CE0930F325A3@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <DD74FBB8EE28D441903D56487861CD9D38430482@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Ack1k09vvX8kyUpuQteURFjSSiRC2wABxX6wAATWm9AAAS6wMAAlY1Eg
Thread-topic: [Xen-devel] Problems with enabling hypervisor C and P-statecontrol
>From: Ian Pratt [mailto:Ian.Pratt@xxxxxxxxxxxxx] 
>Sent: Friday, October 24, 2008 4:31 PM
>> 
>> Niraj, one more info here. From your log, cpus on your platform
>> are actually indexed by:
>> package 1 (0, 4, 8, 12)
>> package 2 (1, 5, 9, 13)
>> package 3 (2, 6, 10, 14)
>> package 4 (3, 7, 11, 15)
>> 
>> thus cpu0/1/2/3 actually indicates 1st core in each package,
>> instead of 4 cores in 1st package. :-)
>
>We really ought to have code in Xen to make the enumeration consistent
>regardless of the BIOS order. I don't really care whether its
>sockets/cores/threads or threads/cores/sockets, but we really ought to
>be consistent.

If Xen wants to be consistent with one policy, as you suggested, it 
requires core/thread info known before booting APs, and then take 
that info in alloc_cpu_id. However core/thread info can be only 
acquired on AP by CPUID and sibling/core map can be constructed
after all APs are booted. Then you may need a temporary cpu id
allocated and then switch it to a real one later. This looks a bit
messed on some arrays[NR_CPUS]. Is it worthy of doing that way,
or just expose the mapping between xen cpu id and sockets/cores/
threads?

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

<Prev in Thread] Current Thread [Next in Thread>