From patchwork Fri Jun 30 04:07:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dou Liyang X-Patchwork-Id: 9818967 Return-Path: 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 1CB4060224 for ; Fri, 30 Jun 2017 09:20:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0E4C828600 for ; Fri, 30 Jun 2017 09:20:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 032492861C; Fri, 30 Jun 2017 09:20:52 +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 B33AA28600 for ; Fri, 30 Jun 2017 09:20:52 +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 ) id 1dQs4B-0005Wo-Rz; Fri, 30 Jun 2017 09:18:19 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dQnEF-0008Lz-LA for xen-devel@lists.xenproject.org; Fri, 30 Jun 2017 04:08:23 +0000 Received: from [193.109.254.147] by server-10.bemta-6.messagelabs.com id 16/E4-03582-6BEC5595; Fri, 30 Jun 2017 04:08:22 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrDIsWRWlGSWpSXmKPExsViPb2gRXfbudB Ig/4+RYvvWyYzOTB6HP5whSWAMYo1My8pvyKBNWPHsvWMBQfZKj5P3MzSwPiAtYuRk0NCwE9i T/NnJhBbSKBWYvKXk4xdjFxA9kpGica999khnOOMEntmzWYEqWIT0JE40/yAHcQWEQiXWLu2m w2kiFngGaPEp58/wIqEBQIkJs7tB1rBwcEioCpxrEsYJMwrEC+x/vhdRojNchLbtuwBszkFbC WWXHnODnGFjcSjXd1MEPWCEidnPmEBsZkFJCQOvnjBDNGrJPF63QEWCFtXYtrPNVBxTYltq8+ xQdhmEkd2/of6UlBi5/MLbBMYRWYhGTsLydgFjEyrGNWLU4vKUot0LfWSijLTM0pyEzNzdA0N zPRyU4uLE9NTcxKTivWS83M3MQLDnAEIdjDe3RRwiFGSg0lJlPfcotBIIb6k/JTKjMTijPii0 pzU4kOMMhwcShK8YWeBcoJFqempFWmZOcCIg0lLcPAoifAKLAFK8xYXJOYWZ6ZDpE4xGnM0fd jyhYnj2Iyf35iEWPLy81KlxHlngkwSACnNKM2DGwRLBJcYZaWEeRmBThPiKUgtys0sQZV/xSj OwagkzMsDMoUnM68Ebt8roFOYgE4RnhECckpJIkJKqoGRQ7O6U2Pbi5MBZmduuj+SmK+rk/i7 2etIx+J4+z8cjUH8im/CdOWanvyRDzD3Yvn6dLreadebh87eDbtzsDKZQfTsvz/nf6W+49V9M +fLJKvFl1b6yhtHPrwRMFlj8dqrffNa1d/nLdA5vVAza3Pg4e7VS/6wrCn2b3hf29MlmFbyZ6 vy52NCSizFGYmGWsxFxYkAYQIJGv8CAAA= X-Env-Sender: douly.fnst@cn.fujitsu.com X-Msg-Ref: server-14.tower-27.messagelabs.com!1498795699!92459914!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 9085 invoked from network); 30 Jun 2017 04:08:20 -0000 Received: from cn.fujitsu.com (HELO heian.cn.fujitsu.com) (59.151.112.132) by server-14.tower-27.messagelabs.com with SMTP; 30 Jun 2017 04:08:20 -0000 X-IronPort-AV: E=Sophos;i="5.22,518,1449504000"; d="scan'208";a="20680362" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 30 Jun 2017 12:08:18 +0800 Received: from G08CNEXCHPEKD03.g08.fujitsu.local (unknown [10.167.33.85]) by cn.fujitsu.com (Postfix) with ESMTP id CB61946B53F6; Fri, 30 Jun 2017 12:08: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, 30 Jun 2017 12:08:18 +0800 From: Dou Liyang To: , , Date: Fri, 30 Jun 2017 12:07:38 +0800 Message-ID: <2545ef73fde4e3cf65080b056669dadd3578ff8a.1498795030.git.douly.fnst@cn.fujitsu.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: References: MIME-Version: 1.0 X-Originating-IP: [10.167.226.106] X-yoursite-MailScanner-ID: CB61946B53F6.A51A3 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: douly.fnst@cn.fujitsu.com X-Mailman-Approved-At: Fri, 30 Jun 2017 09:18:16 +0000 Cc: Dou Liyang , 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 v5 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 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP xen_smp_ops overwrites smp_prepare_cpus to xen_pv_smp_prepare_cpus which initializes interrupt itself. Touching the intr_mode_init causes unexpected results on the system. Bypass it in enlighten_pv system. Signed-off-by: Dou Liyang --- arch/x86/xen/enlighten_pv.c | 1 + 1 file changed, 1 insertion(+) 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;