From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jan Beulich" Subject: Re: [PATCHv3 1/6] evtchn: clear xen_consumer when clearing state Date: Thu, 18 Jun 2015 11:30:14 +0100 Message-ID: <5582B9D602000078000868F0@mail.emea.novell.com> References: <1434542583-28073-1-git-send-email-david.vrabel@citrix.com> <1434542583-28073-2-git-send-email-david.vrabel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Z5X5M-00034X-Ex for xen-devel@lists.xenproject.org; Thu, 18 Jun 2015 10:30:16 +0000 In-Reply-To: <1434542583-28073-2-git-send-email-david.vrabel@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: David Vrabel Cc: xen-devel@lists.xenproject.org, Keir Fraser , Ian Campbell , Tim Deegan List-Id: xen-devel@lists.xenproject.org >>> On 17.06.15 at 14:02, wrote: > @@ -1187,7 +1188,6 @@ void free_xen_event_channel(struct domain *d, int port) > BUG_ON(!port_is_valid(d, port)); > chn = evtchn_from_port(d, port); > BUG_ON(!consumer_is_xen(chn)); > - chn->xen_consumer = 0; > > spin_unlock(&d->event_lock); > > @@ -1287,10 +1287,7 @@ void evtchn_destroy(struct domain *d) > > /* Close all existing event channels. */ > for ( i = 0; port_is_valid(d, i); i++ ) > - { > - evtchn_from_port(d, i)->xen_consumer = 0; > (void)__evtchn_close(d, i); > - } How does this work with the consumer_is_xen() check in __evtchn_close()? Jan