From: "Jan Beulich" Subject: Re: [RFC] [PATCH] One watchdog trips the watchdog on allprocessors Date: Fri, 17 Jul 2009 14:16:12 +0100 Message-ID: <4A6095BC020000780000B09D@vpn.id2.novell.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: George Dunlap Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org >>> George Dunlap 17.07.09 14:55 >>> >... >+static void do_nmi_trigger_cpu(int cpu) >+{ >+ u32 id =3D cpu_physical_id(cpu); >+ >+ printk("Triggering NMI on APIC ID %x\n", id); >+ debugtrace_dump(); >+ >+ local_irq_disable(); >+ apic_wait_icr_idle(); >+ apic_icr_write(APIC_DM_NMI | APIC_DEST_PHYSICAL, id); >+ local_irq_enable(); You definitely don't want to enable interrupts inside an NMI. I don't = think you need to disable them either, as nothing else should have enabled them. >... >+ for_each_cpu(cpu) This is for_each_possible_cpu() now. Jan