Message ID | 7022e20534ad16cf6671c87210b5a444087d490a.1499074568.git.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 D5E2360246 for <patchwork-xen-devel@patchwork.kernel.org>; Mon, 3 Jul 2017 11:10:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C5E142817F for <patchwork-xen-devel@patchwork.kernel.org>; Mon, 3 Jul 2017 11:10:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B8B14283AD; Mon, 3 Jul 2017 11:10:23 +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 701652817F for <patchwork-xen-devel@patchwork.kernel.org>; Mon, 3 Jul 2017 11:10:23 +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 1dRzDE-00064S-Tt; Mon, 03 Jul 2017 11:08:16 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from <douly.fnst@cn.fujitsu.com>) id 1dRzDD-00062R-7D for xen-devel@lists.xenproject.org; Mon, 03 Jul 2017 11:08:15 +0000 Received: from [85.158.137.68] by server-5.bemta-3.messagelabs.com id 45/E7-02181-E952A595; Mon, 03 Jul 2017 11:08:14 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrGIsWRWlGSWpSXmKPExsViPb2gRXeualS kwYpWM4vvWyYzOTB6HP5whSWAMYo1My8pvyKBNWPy1TvsBdM4Kxb9us/awNjJ0cXIwSEh4Cdx 42VKFyMnh5BArcTfObtZuxi5gOyVjBK37nxnh3COMUpM/P6QHaSKTUBH4kzzAzBbRCBcYu3ab jaQImaBZ4wSn37+YARJCAsESKz/f4QVxGYRUJE48/sSM4jNKxAvMWneeTYQW0JATmLblj1g9Z wCthKTWi6zQJxhI3GntZkRol5Q4uTMJ2BxZgEJiYMvXjBD9CpJvF53gAXiA12Jxqe1EGFNiW2 rz0GNN5M4svM/K4QtKLHz+QW2CYwis5BMnYVk6gJGplWMGsWpRWWpRbpGJnpJRZnpGSW5iZk5 uoYGxnq5qcXFiempOYlJxXrJ+bmbGIFhXs/AwLiD8dVxv0OMkhxMSqK8rjcjI4X4kvJTKjMSi zPii0pzUosPMcpwcChJ8FaoREUKCRalpqdWpGXmACMOJi3BwaMkwnvgHlArb3FBYm5xZjpE6h SjLserCf+/MQmx5OXnpUqJ81aDzBAAKcoozYMbAYv+S4yyUsK8jAwMDEI8BalFuZklqPKvGMU 5GJWEeT8pA03hycwrgdv0CugIJqAjGnoiQI4oSURISTUwNim3aT8xeP+84OzZ08775qzLv+do o1UffPkLX6zhPdvSBZdyNHZ/jJPjmf5BZ+7PdXnRRzYI66sv3rns75zDz/ZuiFx0UesJ32Utr QqtS6v3Xvq7542mnuOTZWVX+9ZOeD1Xt3/qb73S/H/ae3K7H6t/fnX1avbGY01H586fu/7HIY 798ffm6pkrsRRnJBpqMRcVJwIAHeZtjvkCAAA= X-Env-Sender: douly.fnst@cn.fujitsu.com X-Msg-Ref: server-11.tower-31.messagelabs.com!1499080082!72791229!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.19; banners=-,-,- X-VirusChecked: Checked Received: (qmail 25667 invoked from network); 3 Jul 2017 11:08:09 -0000 Received: from cn.fujitsu.com (HELO heian.cn.fujitsu.com) (59.151.112.132) by server-11.tower-31.messagelabs.com with SMTP; 3 Jul 2017 11:08:09 -0000 X-IronPort-AV: E=Sophos;i="5.22,518,1449504000"; d="scan'208";a="20783673" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 03 Jul 2017 19:08:09 +0800 Received: from G08CNEXCHPEKD03.g08.fujitsu.local (unknown [10.167.33.85]) by cn.fujitsu.com (Postfix) with ESMTP id 4456B47E98A6; Mon, 3 Jul 2017 19:08:06 +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; Mon, 3 Jul 2017 19:08:10 +0800 From: Dou Liyang <douly.fnst@cn.fujitsu.com> To: <x86@kernel.org>, <linux-kernel@vger.kernel.org>, <xen-devel@lists.xenproject.org> Date: Mon, 3 Jul 2017 19:07:30 +0800 Message-ID: <7022e20534ad16cf6671c87210b5a444087d490a.1499074568.git.douly.fnst@cn.fujitsu.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <cover.1499074566.git.douly.fnst@cn.fujitsu.com> References: <cover.1499074566.git.douly.fnst@cn.fujitsu.com> MIME-Version: 1.0 X-Originating-IP: [10.167.226.106] X-yoursite-MailScanner-ID: 4456B47E98A6.A27E9 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: douly.fnst@cn.fujitsu.com Cc: Dou Liyang <douly.fnst@cn.fujitsu.com>, bhe@redhat.com, peterz@infradead.org, mingo@kernel.org, ebiederm@xmission.com, hpa@zytor.com, izumi.taku@jp.fujitsu.com, boris.ostrovsky@oracle.com, tglx@linutronix.de Subject: [Xen-devel] [PATCH v6 10/12] 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 f33eef4..d3362a3 100644 --- a/arch/x86/xen/enlighten_pv.c +++ b/arch/x86/xen/enlighten_pv.c @@ -1268,6 +1268,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(). Signed-off-by: Dou Liyang <douly.fnst@cn.fujitsu.com> --- arch/x86/xen/enlighten_pv.c | 1 + 1 file changed, 1 insertion(+)