From: OGAWA Hirofumi Subject: Re: nmi is broken? Date: Sun, 24 Apr 2011 18:17:31 +0900 Message-ID: <87zkngypn8.fsf@devron.myhome.or.jp> References: <87sjtbe7fz.fsf@devron.myhome.or.jp> <877hak1t1s.fsf@devron.myhome.or.jp> <4DB3C6D3.9040703@redhat.com> Mime-Version: 1.0 Content-Type: text/plain Cc: kvm@vger.kernel.org To: Avi Kivity Return-path: Received: from mail.parknet.co.jp ([210.171.160.6]:42595 "EHLO mail.parknet.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755851Ab1DXJRf (ORCPT ); Sun, 24 Apr 2011 05:17:35 -0400 In-Reply-To: <4DB3C6D3.9040703@redhat.com> (Avi Kivity's message of "Sun, 24 Apr 2011 09:44:35 +0300") Sender: kvm-owner@vger.kernel.org List-ID: Avi Kivity writes: >> With some debug, the cause seems to be in pit_do_work(). With the >> following patch, NMI watchdog seems to be working correctly (if irq >> disabled for long time, NMI watchdog can detect it). >> >> Is the following patch right? > > This would cause IRQs to be delivered even if the PIT is masked, no? In here, mask means pit_mask_notifer()? If masked, ->pending doesn't prevent to fire it? I'm not sure. > Are you in fact using the PIT? Linux prefers the HPET, and in my > experience the -no-hpet option makes NMIs work. Yes, this is old kernel (2.6.9), and is not using HPET (CONFIG_HPET_TIMER=n), using IO-APIC as NMI source (PMU seems to be unsupported on kvm for now). Unfortunately, -no-hpet didn't change situation. irq_stat.apic_timer_irqs and nmi_count() are same while irq is disabled. -- OGAWA Hirofumi