From: "Jan Beulich" Subject: Re: [PATCH 3/3] x86/HVM: command line option adjustments Date: Fri, 01 Aug 2014 07:31:08 +0100 Message-ID: <53DB504C0200007800028432@mail.emea.novell.com> References: <53D933A60200007800027BAE@mail.emea.novell.com> <53D934E50200007800027BC2@mail.emea.novell.com> <53D9239A.9070803@oracle.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 1XD6Mv-00071M-MX for xen-devel@lists.xenproject.org; Fri, 01 Aug 2014 06:31:09 +0000 In-Reply-To: <53D9239A.9070803@oracle.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: Boris Ostrovsky Cc: Kevin Tian , Keir Fraser , Jun Nakajima , Eddie Dong , Ian Jackson , Tim Deegan , Ian Campbell , Aravind Gopalakrishnan , suravee.suthikulpanit@amd.com, xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 30.07.14 at 18:55, wrote: > On 07/30/2014 12:09 PM, Jan Beulich wrote: >> >> --- a/xen/arch/x86/hvm/hvm.c >> +++ b/xen/arch/x86/hvm/hvm.c >> @@ -70,8 +70,10 @@ >> >> bool_t __read_mostly hvm_enabled; >> >> +#ifdef DBG_LEVEL_0 >> unsigned int opt_hvm_debug_level __read_mostly; >> integer_param("hvm_debug", opt_hvm_debug_level); >> +#endif > > > Do you think "#ifndef NDEBUG" might be better given that it is what > defines DBG_LEVEL_0 (and all other DBG_LEVELs)? No, specifically not: If someone wants to alter the behavior to e.g. include the option (and the effect it takes) in a non-debug build, the way it's done this requires code modification in _exactly one place_. Jan