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] [PATCH] Avoid race when moving cpu between cpupools

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Avoid race when moving cpu between cpupools
From: Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>
Date: Thu, 24 Feb 2011 11:00:25 +0100
Delivery-date: Thu, 24 Feb 2011 02:04:34 -0800
Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=ts.fujitsu.com; i=juergen.gross@xxxxxxxxxxxxxx; q=dns/txt; s=s1536b; t=1298541695; x=1330077695; h=mime-version:subject:message-id:date:from:to; bh=22r6Uv0PjhqmXDl8duBT/JgXU0Q/bsroNJbqgmttZgk=; b=FEHGh9Kh41vx924UFgNdGp/vxnSa2eQgL6+CMGWE+phV+S4A/ki0vtni xyQHZOan7vOlqPdEDgfAJu2gT/1jVRa4zC8DudR6OkyAFmW+K/+5VykOC Vnehs/6Ygeo/DOt7Ch+99rGJs6nVXcjA8ly4qoQtAXFC9JcvGET++81vL KZwDNTOnBZM/eBTEgdF83XQYnpqYGwV/L/r79Fq9HG7QPJl6ma5B4uOMZ Tsdi92xWnn9TnHvAJXxS4DD8VcoWQ;
Domainkey-signature: s=s1536a; d=ts.fujitsu.com; c=nofws; q=dns; h=X-SBRSScore:X-IronPort-AV:Received:X-IronPort-AV: Received:Received:Content-Type:MIME-Version:Subject: X-Mercurial-Node:Message-Id:Date:From:To; b=eZKqsnIfUx7ieIuqGrL8piR8vCjOVKgBYMv/Yu0G6Z2mhrsO+ecI56Xg wbFp48MPLRqkJVBNxmyAg+Stb3h123gA/5xYXpz7hXUXAqhLrvktZUgKX IYOAPxB+uVscf3/dLEn3YiXc+PSsAKl2ngstYWAU2GurfDJ9bo1HbzWQ1 TLA5iLQx0TR5ltXhf8tHqwxED7m0/XSTD88lHe9afcp4Y4+0eURTd39y+ /kcFwqd9uJmZrmHyOpDLLVG3ohHZB;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Moving cpus between cpupools is done under the schedule lock of the moved cpu.
When checking a cpu being member of a cpupool this must be done with the lock
of that cpu being held.
Hot-unplugging of physical cpus might encounter the same problems, but this
should happen only very rarely.

Signed-off-by: juergen.gross@xxxxxxxxxxxxxx


2 files changed, 35 insertions(+), 7 deletions(-)
xen/common/sched_credit.c |    3 ++-
xen/common/schedule.c     |   39 +++++++++++++++++++++++++++++++++------


Attachment: xen-work.patch
Description: Text Data

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