From: "Jan Beulich" Subject: Re: [PATCH 1/2] x86/VPMU: Disable VPMU when NMI watchdog is on Date: Thu, 29 Jan 2015 11:46:08 +0000 Message-ID: <54CA2B90020000780005AC70@mail.emea.novell.com> References: <1422474991-2001-1-git-send-email-boris.ostrovsky@oracle.com> <1422474991-2001-2-git-send-email-boris.ostrovsky@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 1YGnY3-0004NS-OM for xen-devel@lists.xenproject.org; Thu, 29 Jan 2015 11:46:11 +0000 In-Reply-To: <1422474991-2001-2-git-send-email-boris.ostrovsky@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: andrew.cooper3@citrix.com, kevin.tian@intel.com, dietmar.hahn@ts.fujitsu.com, xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org >>> On 28.01.15 at 20:56, wrote: > @@ -59,6 +60,12 @@ static void __init parse_vpmu_param(char *s) > } > /* fall through */ > case 1: > + if ( opt_watchdog ) > + { > + printk("NMI watchdog is enabled. Disabling VPMU\n"); > + opt_vpmu_enabled = 0; > + break; > + } > opt_vpmu_enabled |= VPMU_BOOT_ENABLED; > break; > } Not only to address Andrew's concerns this needs to be changed: Logging messages from cmdline argument parsing functions is only marginally useful - they won't appear on the serial console. But afaict that'll go away anyway by consolidating the patch into simply checking opt_watchdog from vPMU code. Jan