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] Could the page sharing inside domain? (memory_sharing on

To: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Subject: Re: [Xen-devel] Could the page sharing inside domain? (memory_sharing on xen)
From: Jui-Hao Chiang <juihaochiang@xxxxxxxxx>
Date: Thu, 6 Jan 2011 22:16:15 +0800
Cc: tinnycloud <tinnycloud@xxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 06 Jan 2011 06:16:52 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=R/2jyXB4AKF0XdbNJ0LRfe060BsUGAIOMUPJGh+NSpQ=; b=qjeoC4IZIIahDmzN4s/Dc53FfhLazSMdR7ujMHH7uEdDLxmuQUI17prQFlei20UkA/ 3bmGOgVTHQzkITcyW0nVeqOv1/OoO6UX8W6Qrv2xvCF11oIDFhB/ol9+xx8Godz4+RlF JQaJYNgVBhWSSiDcZCrlkgvVZ2l7gQ0IA8Ap0=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=u77E7n7SGuX9dR2ho5KOFVa13vjpx1rnF/7ZIq9f5m0LKwaCtpyy/ZCsC5NJoqM4CQ GY7/JBBeYhG5mEvEYy/JLyJnHJVPexGeqNyUApXQ1H1VgLsRUAAuSeGrJZEk51gLGOxP 6WNaVgUvYUrXiWTij0J0yRl5NiS3TNAsFeYHk=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20110106101357.GN21948@xxxxxxxxxxxxxxxxxxxxxxx>
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: <BAY0-MC3-F426sbZwiU000735e4@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <BLU157-ds21D26244AE0E3531278CB4DA0A0@xxxxxxx> <20110106101357.GN21948@xxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

The error messages you see above are from dom0 trying to map dom4's
memory and finding a shared page (i.e. owned by dom_cow).  Either
there's a missing unshare operation on the path that called
get_page_from_l1e(), or a race where a page got re-shared before the
mapping could be completed, or possibly the unshare operation doesn't
work properly when a domain has two copies of a shared page.

Tim.



That's exactly what we have found during yesterday.
It is because the code doesn't update/check p2m type with the shr_lock, which causes either incorrect share operation or race-condition in unshare operation.
We will submit our current fix as a patch soon.

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