Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754180AbbETSU2 (ORCPT ); Wed, 20 May 2015 14:20:28 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:51899 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753335AbbETSUZ (ORCPT ); Wed, 20 May 2015 14:20:25 -0400 Date: Wed, 20 May 2015 11:19:45 -0700 From: Chris J Arges To: Ingo Molnar Cc: Linus Torvalds , Rafael David Tinoco , Peter Anvin , Jiang Liu , Peter Zijlstra , LKML , Jens Axboe , Frederic Weisbecker , Gema Gomez , the arch/x86 maintainers Subject: Re: [PATCH] smp/call: Detect stuck CSD locks Message-ID: <20150520181945.GA20853@canonical.com> References: <20150407205945.GA28212@canonical.com> <20150408064734.GA26861@gmail.com> <20150413035616.GA24037@canonical.com> <20150413061450.GA10857@gmail.com> <20150415195452.GA19953@canonical.com> <20150416110423.GA15760@gmail.com> <20150416155819.GA20490@canonical.com> <20150416163140.GA17024@gmail.com> <20150429210831.GA17055@canonical.com> <20150511140003.GA5354@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150511140003.GA5354@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1112 Lines: 33 On Mon, May 11, 2015 at 04:00:03PM +0200, Ingo Molnar wrote: > > So potentially, CPU0 generated an interrupt that caused > > vcpu_enter_guest to be called on CPU1. However, when > > vmx_handle_external_intr was called, it didn't progress any further. > > So the IPI does look like to be lost in the KVM code? > > So why did vmx_handle_external_intr() skip the irq injection - were > IRQs disabled in the guest perhaps? > > > Another experiment here would be to dump > > vmcs_read32(VM_EXIT_INTR_INFO); to see why we don't handle the > > interrupt. > > Possibly, but also to instrument the KVM IRQ injection code to see > when it skips an IPI and why. > > Thanks, > > Ingo > Ingo, I no longer have access to the reproducer machine unfortunately. I'll try to locate additional kit that has the same situation, but it may take some time. Thanks, --chris -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/