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] mapped memory delay?

To: Xin Zhao <zhaoxin@xxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] mapped memory delay?
From: Christopher Clark <christopher.w.clark@xxxxxxxxx>
Date: Fri, 18 Feb 2005 22:14:04 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 21 Feb 2005 07:35:12 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=PJDZotktkylENDBrG+gc3sGMkQyoKb2re6D85dOK2MJYypMAigF/mdSYhMDrA6A8JRQ5CA+HItjiFdlelI3f4rkDD6tGV6fs/ocfIl2F5QKEyCt2ZNdtVmGwgMyzOYelodKga5nNtwzF/e3UDebxKo8oDFQQ0bc+fxPgxRi4ibE=
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
In-reply-to: <Pine.LNX.4.58.0502181639240.24170@xxxxxxxxxxxxxxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
References: <Pine.LNX.4.58.0502181639240.24170@xxxxxxxxxxxxxxxxxxxxx>
Reply-to: cwc22@xxxxxxxxx
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
Are you running this on a single processor core?

If not, it sounds to me like a cache coherency issue - you'll need a
write memory barrier after writing to the req_prod.  If you're using
the ring macros from io/ring.h this should be already taken care of
for you in the push macros.

c.


On Fri, 18 Feb 2005 16:44:30 -0500 (EST), Xin Zhao
<zhaoxin@xxxxxxxxxxxxxx> wrote:
> I ran into the following problem:
> 
> I setup a shared ring page and an event channel between two domains (dom0
> and one domU), DomU increases req_prod by one and notify the dom0 via the
> event channel, dom0 then check req_prod pointer and process the request in
> the shared ring. But I noticed that sometimes dom0 get the irq triggered
> by the notification event, but the req_prod remains the same. This
> situation only happened occasionally. Why? Because the req_prod is saved
> in the shared, mapped page, I suspect that there is a delay of updates
> between two domains. Is that true? If so, how to handle this problem?
> 
> Your advice is highly appreciated!
> 
> -x
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/xen-devel
>


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel