From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: [PATCH 1/2] vm_event: sync domctl Date: Wed, 23 Dec 2015 17:17:25 +0000 Message-ID: <567AD725.9090207@citrix.com> References: <1450882432-10484-1-git-send-email-tamas@tklengyel.com> <567AC09B.2040403@bitdefender.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 1aBn2W-00021F-FV for xen-devel@lists.xenproject.org; Wed, 23 Dec 2015 17:17:28 +0000 In-Reply-To: <567AC09B.2040403@bitdefender.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: Razvan Cojocaru , Tamas K Lengyel , xen-devel@lists.xenproject.org Cc: Ian Jackson , Wei Liu , Ian Campbell , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On 23/12/2015 15:41, Razvan Cojocaru wrote: > On 12/23/2015 04:53 PM, Tamas K Lengyel wrote: >> Introduce new vm_event domctl option which allows an event subscriber >> to request all vCPUs not currently pending a vm_event request to be paused, >> thus allowing the subscriber to sync up on the state of the domain. This >> is especially useful when the subscribed wants to disable certain events >> from being delivered and wants to ensure no more requests are pending on the >> ring before doing so. >> >> Cc: Ian Jackson >> Cc: Stefano Stabellini >> Cc: Ian Campbell >> Cc: Wei Liu >> Cc: Razvan Cojocaru >> Signed-off-by: Tamas K Lengyel > This certainly looks very interesting. Would xc_domain_pause() not be > enough for your use case then? I second this query. I would have thought xc_domain_pause() does exactly what you want in this case. The code provided is racy, as it is liable to alter which pause references it takes/releases depending on what other pause/unpause actions are being made. ~Andrew