From mboxrd@z Thu Jan 1 00:00:00 1970 From: Corneliu ZUZU Subject: Re: [PATCH v2 3/7] xen/vm-events: Move monitor_domctl to common-side. Date: Thu, 11 Feb 2016 08:20:45 +0200 Message-ID: <56BC283D.8050508@bitdefender.com> References: <1455119259-2161-1-git-send-email-czuzu@bitdefender.com> <1455119548-2401-1-git-send-email-czuzu@bitdefender.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Tamas K Lengyel Cc: Kevin Tian , Keir Fraser , Ian Campbell , Razvan Cojocaru , Andrew Cooper , Xen-devel , Jan Beulich , Stefano Stabellini , Jun Nakajima List-Id: xen-devel@lists.xenproject.org On 2/10/2016 6:39 PM, Tamas K Lengyel wrote: > I think it would be better if this function just had a single rc > instead of two (not passing one rc as a pointer on input). Good point. Would it be ok if: * I remove the rc param * make return type int * rc = 0 if arch-side didn't handle the event, but no errors occurred * rc = 1 if arch-side handled the event and no errors occurred * rc < 0 if errors occurred * return rc ? Didn't cross my mind why error rcs are < 0, I only now realize that probably just these kind of situations are the reason for that. Corneliu.