From: Ian Campbell Subject: Re: [PATCH 07/19] libxc: suspend: Rename, improve xc_suspend_evtchn_init Date: Thu, 13 Mar 2014 16:38:02 +0000 Message-ID: <1394728682.16364.8.camel@kazak.uk.xensource.com> References: <1393945016-1417-1-git-send-email-ian.jackson@eu.citrix.com> <1393945016-1417-8-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1393945016-1417-8-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Jackson Cc: Shriram Rajagopalan , xen-devel@lists.xensource.com, Lai Jiangshan , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Tue, 2014-03-04 at 14:56 +0000, Ian Jackson wrote: > xc_suspend_evtchn_init expects to eat the first event on the xce. If > the xce is used for any other purpose then this can break. Document > this fact and rename the function to xc_suspend_evtchn_init_exclusive. > (I haven't checked the call sites for improper shared use of the xce.) > > Provide a corresponding xc_suspend_evtchn_init_sane which doesn't try > to eat an event, and instead leaves the caller the ability to > demultiplex. > > Also document that xc_await_suspend needs exclusive use of the xce. > > Signed-off-by: Ian Jackson > CC: Stefano Stabellini Acked-by: Ian Campbell (just to clarify: I acked this on v1 a few minutes ago before I realised there was this resend)