Message ID | 1500011554-9784-11-git-send-email-douly.fnst@cn.fujitsu.com (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 1BC5F60381 for <patchwork-xen-devel@patchwork.kernel.org>; Fri, 14 Jul 2017 05:57:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 09F3C2875F for <patchwork-xen-devel@patchwork.kernel.org>; Fri, 14 Jul 2017 05:57:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EFF6F2874F; Fri, 14 Jul 2017 05:57:11 +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 E6AC02874F for <patchwork-xen-devel@patchwork.kernel.org>; Fri, 14 Jul 2017 05:57:10 +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 1dVtYb-0005TD-1u; Fri, 14 Jul 2017 05:54:29 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from <douly.fnst@cn.fujitsu.com>) id 1dVtYZ-0005T7-8q for xen-devel@lists.xenproject.org; Fri, 14 Jul 2017 05:54:27 +0000 Received: from [85.158.143.35] by server-6.bemta-6.messagelabs.com id 6D/90-03937-29C58695; Fri, 14 Jul 2017 05:54:26 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrDIsWRWlGSWpSXmKPExsViPb2gRXdiTEa kwcpt1hbft0xmcmD0OPzhCksAYxRrZl5SfkUCa8bitW8ZC3q4Kt68n87awPiVo4uRk0NCwE/i 2Oa37CC2kECtROf5fpYuRi4geyWjxIu9J9ggnOOMEv/XPQSrYhPQkTjT/ADMFhEwkfi+/BEjS BGzwGomifmbLoAlhAUCJBpbt7GA2CwCqhITf60Cs3kFPCUW/21jgVgtJ7Ftyx6gZg4OTqD4q4 UqEFd4SPxdPQeqXFDi5MwnYDazgITEwRcvmCFalSRerzsANUZXYtHPdewQtqbEttXn2CBsM4k jO/+zQtiCEjufX2CbwCgyC8nYWUjGLmBkWsWoXpxaVJZapGuhl1SUmZ5RkpuYmaNraGCml5ta XJyYnpqTmFSsl5yfu4kRGOYMQLCDcfZl/0OMkhxMSqK8qUoZkUJ8SfkplRmJxRnxRaU5qcWHG GU4OJQkePOjgXKCRanpqRVpmTnAiINJS3DwKInwPtIASvMWFyTmFmemQ6ROMRpzbFi9/gsTx6 sJ/78xCbHk5eelSonzRoFMEgApzSjNgxsESwSXGGWlhHkZgU4T4ilILcrNLEGVf8UozsGoJMx rFgU0hSczrwRu3yugU5iATlmTnQJySkkiQkqqgZH7adKxje96Nofx+/Ccli379P7fR9U1O9vc A23/MGktyshIOjxFYs2f1JNi2Qc/l2k8VePsnaTTk7dw5Wu96+vtn0fFrJPcdTKqoysxcZvrL K0puw2aIm/y8J4u4b6bcOz8DpFjuV5GH4zO3XYKVWm/aH392J7AqugTjtrsWx1Cbdd3zAwLi1 NiKc5INNRiLipOBACPIuEs/wIAAA== X-Env-Sender: douly.fnst@cn.fujitsu.com X-Msg-Ref: server-14.tower-21.messagelabs.com!1500011663!66526885!1 X-Originating-IP: [59.151.112.132] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.25; banners=-,-,- X-VirusChecked: Checked Received: (qmail 7229 invoked from network); 14 Jul 2017 05:54:25 -0000 Received: from cn.fujitsu.com (HELO heian.cn.fujitsu.com) (59.151.112.132) by server-14.tower-21.messagelabs.com with SMTP; 14 Jul 2017 05:54:25 -0000 X-IronPort-AV: E=Sophos;i="5.22,518,1449504000"; d="scan'208";a="21279638" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 14 Jul 2017 13:54:19 +0800 Received: from G08CNEXCHPEKD03.g08.fujitsu.local (unknown [10.167.33.85]) by cn.fujitsu.com (Postfix) with ESMTP id 056D746B4C95; Fri, 14 Jul 2017 13:54:19 +0800 (CST) Received: from localhost.localdomain.localdomain (10.167.226.106) by G08CNEXCHPEKD03.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 14 Jul 2017 13:54:17 +0800 From: Dou Liyang <douly.fnst@cn.fujitsu.com> To: <x86@kernel.org>, <linux-kernel@vger.kernel.org> Date: Fri, 14 Jul 2017 13:52:31 +0800 Message-ID: <1500011554-9784-11-git-send-email-douly.fnst@cn.fujitsu.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1500011554-9784-1-git-send-email-douly.fnst@cn.fujitsu.com> References: <1500011554-9784-1-git-send-email-douly.fnst@cn.fujitsu.com> MIME-Version: 1.0 X-Originating-IP: [10.167.226.106] X-yoursite-MailScanner-ID: 056D746B4C95.A06BD X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: douly.fnst@cn.fujitsu.com Cc: boris.ostrovsky@oracle.com, Dou Liyang <douly.fnst@cn.fujitsu.com>, xen-devel@lists.xenproject.org, bhe@redhat.com, peterz@infradead.org, tokunaga.keiich@jp.fujitsu.com, ebiederm@xmission.com, hpa@zytor.com, izumi.taku@jp.fujitsu.com, tglx@linutronix.de, mingo@kernel.org Subject: [Xen-devel] [PATCH v7 10/13] x86/xen: Bypass intr mode setup in enlighten_pv system 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 |
diff --git a/arch/x86/xen/enlighten_pv.c b/arch/x86/xen/enlighten_pv.c index 811e4dd..07147dd 100644 --- a/arch/x86/xen/enlighten_pv.c +++ b/arch/x86/xen/enlighten_pv.c @@ -1250,6 +1250,7 @@ asmlinkage __visible void __init xen_start_kernel(void) x86_platform.get_nmi_reason = xen_get_nmi_reason; x86_init.resources.memory_setup = xen_memory_setup; + x86_init.irqs.intr_mode_init = x86_init_noop; x86_init.oem.arch_setup = xen_arch_setup; x86_init.oem.banner = xen_banner;
XEN PV overrides smp_prepare_cpus(). xen_pv_smp_prepare_cpus() initializes interrupts in the XEN PV specific way and does not invoke native_smp_prepare_cpus(). As a consequence, x86_init.intr_mode_init() is not invoked either. The invocation of x86_init.intr_mode_init() will be moved from native_smp_prepare_cpus() in a follow up patch to solve <INSERT REASON/PROBLEM>. That move would cause the invocation of x86_init.intr_mode_init() for XEN PV platforms. To prevent that, override the default x86_init.intr_mode_init() callback with a noop(). [Rewrited by Thomas Gleixner <tglx@linutronix.de>] Signed-off-by: Dou Liyang <douly.fnst@cn.fujitsu.com> Cc: xen-devel@lists.xenproject.org Cc: boris.ostrovsky@oracle.com --- arch/x86/xen/enlighten_pv.c | 1 + 1 file changed, 1 insertion(+)