From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keir Fraser Subject: Re: [PATCH] x86: also allow disabling LAPIC NMI watchdog on newer CPUs Date: Wed, 01 Aug 2012 16:22:48 +0100 Message-ID: References: <501938070200007800091E24@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <501938070200007800091E24@nat28.tlf.novell.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: Jan Beulich , xen-devel List-Id: xen-devel@lists.xenproject.org On 01/08/2012 13:07, "Jan Beulich" wrote: > This complements c/s 9146:941897e98591, and also replaces a literal > zero with a proper manifest constant. > > Signed-off-by: Jan Beulich Acked-by: Keir Fraser > --- a/xen/arch/x86/nmi.c > +++ b/xen/arch/x86/nmi.c > @@ -175,15 +175,9 @@ static void disable_lapic_nmi_watchdog(v > case X86_VENDOR_INTEL: > switch (boot_cpu_data.x86) { > case 6: > - if (boot_cpu_data.x86_model > 0xd) > - break; > - > wrmsr(MSR_P6_EVNTSEL0, 0, 0); > break; > case 15: > - if (boot_cpu_data.x86_model > 0x4) > - break; > - > wrmsr(MSR_P4_IQ_CCCR0, 0, 0); > wrmsr(MSR_P4_CRU_ESCR0, 0, 0); > break; > @@ -192,7 +186,7 @@ static void disable_lapic_nmi_watchdog(v > } > nmi_active = -1; > /* tell do_nmi() and others that we're not active any more */ > - nmi_watchdog = 0; > + nmi_watchdog = NMI_NONE; > } > > static void enable_lapic_nmi_watchdog(void) > > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel