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] Fam10+ extended config space enabling

To: "Keir Fraser" <keir@xxxxxxx>
Subject: Re: [Xen-devel] Fam10+ extended config space enabling
From: "Jan Beulich" <JBeulich@xxxxxxxxxx>
Date: Thu, 06 Jan 2011 11:17:11 +0000
Cc: robert.richter@xxxxxxx, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 06 Jan 2011 03:19:22 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C94B4C38.112E5%keir@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: <4D25A43A020000780002AAD0@xxxxxxxxxxxxxxxxxx> <C94B4C38.112E5%keir@xxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
>>> On 06.01.11 at 11:38, Keir Fraser <keir@xxxxxxx> wrote:
> On 06/01/2011 10:15, "Jan Beulich" <JBeulich@xxxxxxxxxx> wrote:
> 
>> Robert,
>> 
>> starting with 2.6.27 Linux is doing this, using MSR accesses (these
>> days in CPU hotplug notification callbacks). Is there a reason this
>> cannot be done through PCI config space writes (as the register is
>> aliased), and then only once at boot time (perhaps utilizing some
>> of the code in arch/x86/kernel/k8.c)?
>> 
>> I'm particularly asking from the Xen perspective, where the MSR
>> based mechanism won't reliably work (since there's no guarantee
>> all of Dom0's virtual CPUs would, at initialization time, actually
>> cover all physical CPUs that Dom0 may ever run on).
> 
> Just thinking, could we simply do this in Xen, either unconditionally, or as
> soon as we detect dom0 doing it for at least one CPU?

We certainly could (albeit not unconditional I'd say; this was also
my first thought, with the alternative of adding a specific
hypercall), but it would mean adding special code for something
that can be done in Dom0 (and there even in a way that's suitable
for both native and Xen) if using the PCI config space method for
this is possible.

Jan


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