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 possible live-lock in vcpu_migrate

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Avoid possible live-lock in vcpu_migrate
From: Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>
Date: Mon, 28 Feb 2011 10:23:02 +0100
Delivery-date: Mon, 28 Feb 2011 01:25:51 -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=1298885110; x=1330421110; h=mime-version:subject:message-id:date:from:to; bh=NoR5sCI5YmfJ3rtnZbrn9IlTplRlSdGsxT2rIvkja8k=; b=hnWdW45IfQt+ohpgjzAfvIkQgW4Z99Xas0zlyU88ninchX6iIo1dtVc7 5UaXIYEcE8GcXnhHRny1Sqd5lPXD8WijS0ZxhJdjk2+4enVqssVy/i6U3 nN7NLezstpXVVZd1DIJd5LjkoMrD+umMZ+eMAq1gTJ+XZlri615OuBb2Z Ps4f09v2qmlUCVz9zxwBne2/0rSw21vOyyCmQT6klpbKwiukibXUVnk9T re+ns3ZBQHQ4EtNfWgaInSClXVQve;
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=FHXtzAOZ/OIxcDl2j+wutWG5Abj3mY2e53ijSbcv7AdyAzP1pwLn/AxF srLjjdMfCUBP5y6eMJ7h7KPfttexJ3MdOYuqhtNCYzSodC+zbH6l6C2Hp uIqB4fEADCF3iRV54u8ybM0XlkTXpC8M6WVYd/j1QbWp6kuoh/hrSnTpF Qo2I59RG1OnwchZLvqs380ofXCW/61UCAYI7QcQkkYbdxHu4SnoJyZZl5 g5WSwMBLgSWwWWDhLSCtYXKssCtQd;
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
If vcpu_migrate is called for two vcpus active on different cpus resulting in
swapping the cpus, a live-lock could occur as both instances try to take the
scheduling lock of the physical cpus in opposite order.

To avoid this problem the locks are always taken in the same order (sorted by
the address of the lock).

Signed-off-by: juergen.gross@xxxxxxxxxxxxxx


1 file changed, 43 insertions(+), 27 deletions(-)
xen/common/schedule.c |   70 ++++++++++++++++++++++++++++++-------------------


Attachment: xen-work.patch
Description: Text Data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Avoid possible live-lock in vcpu_migrate, Juergen Gross <=