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

[Xen-devel] [PATCH] Avoid endless loop for vcpu migration


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>
  • Date: Mon, 14 Mar 2011 15:39:54 +0100
  • Delivery-date: Mon, 14 Mar 2011 07:43:07 -0700
  • 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=Qazh7/1oH7KbfgXDzppUJ06Ou80cZ0yetjisEJ8cr9oWYMj0J59svZ1m E3S2wS6D0nbox5mwlTVEgCD/B+4I/Kx4+Ab3CauvCO8z7Xk37031yUdLi izGOM4HXBxSWtGvd3+bHIquib+8/adJFdPno6VDuiWHk4oY1F0+n97YfY 8Ar1+hV9AAiOLuPBXGlUJYpAWmebvUCHJPhIu4OjpRhDSbRaacoeMRWHE coi81rp1fHa5/zGYZMdAh1luUBlEA;
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

On multi-thread multi-core systems an endless loop can occur in vcpu_migrate()
with credit scheduler. Avoid this loop by changing the interface of pick_cpu
to indicate a repeated call in this case.

Signed-off-by: juergen.gross@xxxxxxxxxxxxxx


6 files changed, 11 insertions(+), 15 deletions(-)
xen/common/sched_arinc653.c |    2 +-
xen/common/sched_credit.c   |   12 +++---------
xen/common/sched_credit2.c  |    2 +-
xen/common/sched_sedf.c     |    2 +-
xen/common/schedule.c       |    6 ++++--
xen/include/xen/sched-if.h  |    2 +-


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®.