| 
    
 [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 2/2] xen/x86: hap: Clean-up and harden hap_enable()
 On 04/02/2020 11:28, Roger Pau Monné wrote: On Tue, Feb 04, 2020 at 11:11:11AM +0000, Julien Grall wrote:On 04/02/2020 10:51, Roger Pau Monné wrote:On Tue, Feb 04, 2020 at 09:34:11AM +0000, Julien Grall wrote:From: Julien Grall <jgrall@xxxxxxxxxx> Unlike shadow_enable(), hap_enable() can only be called once during domain creation and with the mode equal to mode equal to I am not looking to enforce anything at the moment. My main point here is this is pretty much as matter of taste. But there might be concern with your suggestion if go forward with MISRA (this is not the only one though ;)). So far the style of most of the hypervisor code is to omit the value when comparing against 0 or NULL AFAIK. I don't have an issue with requiring explicit comparisons, but it needs to be documented so we can aim to have an homogeneous style, because so far I've been recommending the other way around. Aside the MISRA, there are some cases where I feel the explicit comparisons make sense. But I don't have any rational for them and view this as a matter of taste. So I would leave it to the author of the patch the choice. Cheers, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel 
 
 
  | 
  
![]()  | 
            
         Lists.xenproject.org is hosted with RackSpace, monitoring our  |