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] Re: [PATCH v4 0/3] Add reference counting to grant notify io

To: Daniel De Graaf <dgdegra@xxxxxxxxxxxxx>
Subject: [Xen-devel] Re: [PATCH v4 0/3] Add reference counting to grant notify ioctls
From: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Date: Fri, 11 Nov 2011 15:33:30 -0500
Cc: keir@xxxxxxx, jeremy@xxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxx, Ian.Jackson@xxxxxxxxxxxxx, Ian.Campbell@xxxxxxxxxx
Delivery-date: Fri, 11 Nov 2011 12:34:55 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1319752729-13990-1-git-send-email-dgdegra@xxxxxxxxxxxxx>
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: <1316207684-19860-1-git-send-email-dgdegra@xxxxxxxxxxxxx> <1319752729-13990-1-git-send-email-dgdegra@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.21 (2010-09-15)
On Thu, Oct 27, 2011 at 05:58:46PM -0400, Daniel De Graaf wrote:
> > The current notify ioctls assume that an event channel will not be
> > closed prior to the page being unmapped. If the mappings are associated
> > with an open file descriptor and the application crashes, the
> > notification behavior depends on the close ordering of the file
> > descriptors. To avoid this, event channels now have a reference count
> > that is used by the grant notify ioctls to postpone the close operation
> > until the notification is fired.

OK, it all looks sensible to me. Sticking on my 3.3 queue.
Thx!
> 
> Changes since v3:
>       Avoid race between evtchn_get and evtchn_put
>       (reference count changed to an integer protected by mutex)
> 
> Changes since v2:
>       Avoid possible sleep under spinlock
>       Decrease refcount mismatch errors from BUG to WARN
>       Use reference count to identify userspace-visible event channels
>  
> Changes since v1:
>       Rename evtchn_get/put to match kernel naming conventions
>       Use atomic_t for refcount
> 
> [PATCH 1/3] xen/event: Add reference counting to event channels
> [PATCH 2/3] xen/gntalloc: Change gref_lock to a mutex
> [PATCH 3/3] xen/gnt{dev,alloc}: reserve event channels for notify

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] Re: [PATCH v4 0/3] Add reference counting to grant notify ioctls, Konrad Rzeszutek Wilk <=