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: [PATCH][retry 2][2/2] new platform hypervisor call to ge

To: "Chris Lalancette" <clalance@xxxxxxxxxx>
Subject: [Xen-devel] RE: [PATCH][retry 2][2/2] new platform hypervisor call to get APICIDs
From: "Langsdorf, Mark" <mark.langsdorf@xxxxxxx>
Date: Tue, 4 Mar 2008 11:57:58 -0600
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 04 Mar 2008 09:59:17 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <47CC7E7B.2070007@xxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <200803031540.28151.mark.langsdorf@xxxxxxx> <47CC7E7B.2070007@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Ach9f7VUrkGfHW2RSV2FMNuX60PpHAAoObzA
Thread-topic: [PATCH][retry 2][2/2] new platform hypervisor call to get APICIDs
> > I have tested this on my 4p/16 core machine and it works.  I
> > would appreciate testing on other boxes.
> 
> This patch is much better, although unfortunately the 
> dom0_vcpus_pinned change doesn't look like it will work as-is. 

I have confidence that Keir will fix that up before he
commits the code. =)

> That is, the only failure case I see on
> the hypervisor side is if you fail copy_to_guest, so that 
> means on the dom0 side the only way you think the dom0
> vcpus are unpinned is if you have a major failure.   

Well, it was more "if there is a major failure, the
information in this array is junk anyway, so assume
we're unpinned and accept there may be errors down
the line."

> It seems you really need to worry about: a) making the
> platform op call on an HV that doesn't support it,

The case statement will handle that already.  I tested
that during my development.

> b) making the platform op call, and somehow returning
> that dom0 is unpinned,

I can add that.  Thanks.

> c) making the platform op call and
> returning that the dom0 is in fact pinned.

That's not an error.  I'm not sure what you mean.
 
> Generally, I'm not against the way you've done it here, but 
> originally I thought you would re-enable the code in dom0
> mpparse-xen.c and then just have a hypercall to determine
> whether dom0 had the vcpus pinned or not.  The advantage
> to that way is that if there is ever any other information 
> needed from the MP tables, we will just have it available
> in the dom0.

I'd rather stick with a minimal approach that does what
needs to be done to address this issue.

-Mark Langsdorf
Operating System Research Center
AMD


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