Message ID | 20170324151221.499557812@linuxfoundation.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <xen-devel-bounces@lists.xen.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CB25A601E9 for <patchwork-xen-devel@patchwork.kernel.org>; Fri, 24 Mar 2017 18:04:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C14681FFC9 for <patchwork-xen-devel@patchwork.kernel.org>; Fri, 24 Mar 2017 18:04:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B5B23269A3; Fri, 24 Mar 2017 18:04:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 251AE1FFC9 for <patchwork-xen-devel@patchwork.kernel.org>; Fri, 24 Mar 2017 18:04:48 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from <xen-devel-bounces@lists.xen.org>) id 1crTX7-0003aY-0N; Fri, 24 Mar 2017 18:01:53 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from <gregkh@linuxfoundation.org>) id 1crTX6-0003aS-AG for xen-devel@lists.xenproject.org; Fri, 24 Mar 2017 18:01:52 +0000 Received: from [193.109.254.147] by server-5.bemta-6.messagelabs.com id E0/66-27545-F0F55D85; Fri, 24 Mar 2017 18:01:51 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupnkeJIrShJLcpLzFFi42LpubySR5cv/mq EwZMJFhbft0xmcmD0OPzhCksAYxRrZl5SfkUCa8bhp6uYCvrEKs7dn8DewLhYuIuRi0NIYCej xI/ejexdjBwcbAKmEjP+q3QxcnKICChIbO59xgpSwyzQzyKx+cljNpCEsECgxNub01lAbBYBV Yn29zNZQWxeASuJxv1HwGwJAXmJR5segdVzClhLXF37EywuBFTz9el1sF5RATGJg+/uM0H0Ck qcnPmEBeQGZgF1ifXzhCYw8s5CkpmFkFnAyLSKUb04tagstUjXVC+pKDM9oyQ3MTNH19DATC8 3tbg4MT01JzGpWC85P3cTIzBwGIBgB+P0y/6HGCU5mJREed22XYkQ4kvKT6nMSCzOiC8qzUkt PsQow8GhJMFbHns1QkiwKDU9tSItMwcYwjBpCQ4eJRHeQyBp3uKCxNzizHSI1ClGXY45s3e/Y RJiycvPS5US5w0DKRIAKcoozYMbAYunS4yyUsK8jEBHCfEUpBblZpagyr9iFOdgVBLmnQ8yhS czrwRu0yugI5iAjpi94QrIESWJCCmpBsZW/ttmBQ138//8VT2i+2K6xA/By+9MFKwncThrviy qT5z145Tz/W+RkQHyTRKfZnJuLdO3rHbh8L0Q9D5Qv/DdmVuxDvr24kvK3uSar1CLORKsHmix as6NdV99tMV+HbyzQHym07Ymt7qUS12VrtMTXlXrSvqVOCg78z/z3m3R1/Mv5dzl9UosxRmJh lrMRcWJAPD2PEaiAgAA X-Env-Sender: gregkh@linuxfoundation.org X-Msg-Ref: server-9.tower-27.messagelabs.com!1490378509!93690485!1 X-Originating-IP: [140.211.169.12] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.2.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 31092 invoked from network); 24 Mar 2017 18:01:50 -0000 Received: from mail.linuxfoundation.org (HELO mail.linuxfoundation.org) (140.211.169.12) by server-9.tower-27.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 24 Mar 2017 18:01:50 -0000 Received: from localhost (LFbn-1-12060-104.w90-92.abo.wanadoo.fr [90.92.122.104]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 34CF8BCC; Fri, 24 Mar 2017 18:01:48 +0000 (UTC) From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Date: Fri, 24 Mar 2017 18:58:50 +0100 Message-Id: <20170324151221.499557812@linuxfoundation.org> X-Mailer: git-send-email 2.12.1 In-Reply-To: <20170324151220.759111698@linuxfoundation.org> References: <20170324151220.759111698@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Cc: Juergen Gross <jgross@suse.com>, Peter Zijlstra <peterz@infradead.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Ingo Molnar <mingo@kernel.org>, Ross Lagerwall <ross.lagerwall@citrix.com>, David Vrabel <david.vrabel@citrix.com>, xen-devel@lists.xenproject.org, Boris Ostrovsky <boris.ostrovsky@oracle.com>, Sumit Semwal <sumit.semwal@linaro.org>, Linus Torvalds <torvalds@linux-foundation.org>, Thomas Gleixner <tglx@linutronix.de> Subject: [Xen-devel] [PATCH 4.4 11/30] xen/qspinlock: Dont kick CPU if IRQ is not initialized X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion <xen-devel.lists.xen.org> List-Unsubscribe: <https://lists.xen.org/cgi-bin/mailman/options/xen-devel>, <mailto:xen-devel-request@lists.xen.org?subject=unsubscribe> List-Post: <mailto:xen-devel@lists.xen.org> List-Help: <mailto:xen-devel-request@lists.xen.org?subject=help> List-Subscribe: <https://lists.xen.org/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xen.org?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" <xen-devel-bounces@lists.xen.org> X-Virus-Scanned: ClamAV using ClamSMTP |
--- a/arch/x86/xen/spinlock.c +++ b/arch/x86/xen/spinlock.c @@ -27,6 +27,12 @@ static bool xen_pvspin = true; static void xen_qlock_kick(int cpu) { + int irq = per_cpu(lock_kicker_irq, cpu); + + /* Don't kick if the target's kicker interrupt is not initialized. */ + if (irq == -1) + return; + xen_send_IPI_one(cpu, XEN_SPIN_UNLOCK_VECTOR); }