[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] Avoid race when moving cpu between cpupools


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • 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
  • 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;
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.