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] CPU affinity reset during save/restore

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] [PATCH] CPU affinity reset during save/restore
From: Jiri Denemark <jdenemar@xxxxxxxxxx>
Date: Fri, 14 Nov 2008 17:19:07 +0100
Delivery-date: Fri, 14 Nov 2008 08:19:35 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20081113084027.GA18897@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/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: <20081113084027.GA18897@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.18 (2008-05-17)
Hi,

This is an improved patch for restoring CPU affinity on domain resume.

> The attached patch just copies the code related to CPU affinity from
> XendDomainInfo._initDomain() into XendDomainInfo._setCPUAffinity() and calls
> this method from _initDomain() and resume().

I've added a try-except around self._setCPUAffinity() in resum() so that the
domain can be resumed on different HW, where CPUs mentioned in the 'cpus' list
are not available. In that case, the affinity is just ignored. Without this
improvement, such domain would fail to resume with invalid argument.

Signed-off-by: Jiri Denemark <jdenemar@xxxxxxxxxx>

Attachment: cpu-affinity_2.patch
Description: Text document

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>