From patchwork Wed Sep 13 09:12:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dou Liyang X-Patchwork-Id: 9950781 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 3081A6024A for ; Wed, 13 Sep 2017 09:16:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 223872904E for ; Wed, 13 Sep 2017 09:16:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 16E0E290BF; Wed, 13 Sep 2017 09:16:21 +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 86E002904E for ; Wed, 13 Sep 2017 09:16:20 +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 1ds3k7-00026Z-7k; Wed, 13 Sep 2017 09:13:59 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ds3k6-00026G-GM for xen-devel@lists.xenproject.org; Wed, 13 Sep 2017 09:13:58 +0000 Received: from [85.158.139.211] by server-9.bemta-5.messagelabs.com id 6F/83-02817-5D6F8B95; Wed, 13 Sep 2017 09:13:57 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrNIsWRWlGSWpSXmKPExsWyPXpei+7Vbzs iDb7vF7f4vmUykwOjx+EPV1gCGKNYM/OS8isSWDMeTe9hLdjAVXHl6WmmBsapnF2MnBwSAn4S 03o+MHUxcnAICdRLLNrM3MXIBWSuZJSY9WI1G4RznFGi8Uc/C0gDm4COxJnmB+wgtoiAicT35 Y8YQYqYBT4ySsxb9BKsSFggQGLC2j+sIDaLgKrEvB1PmUFsXgEviW9XWlghNstJbNuyhxHE5g SKfz41kRniCk+JtxctIMoFJU7OfAI2kllAQuLgixfMEK1KEq/XHWCBsHUlTrSfYYewNSW2rT7 HBmGbSRzZ+R9qlaDEzucX2CYwisxCMnYWkrELGJlWMaoXpxaVpRbpGuolFWWmZ5TkJmbm6Boa mOrlphYXJ6an5iQmFesl5+duYgQGeT0DA+MOxqZe50OMkhxMSqK8+/fsiBTiS8pPqcxILM6IL yrNSS0+xCjDwaEkwSsBjBohwaLU9NSKtMwcYLzBpCU4eJREeNVA0rzFBYm5xZnpEKlTjMYcxz Zd/sPE0XHz7h8mIZa8/LxUKXHek1+BSgVASjNK8+AGwdLAJUZZKWFeRgYGBiGegtSi3MwSVPl XjOIcjErCvEYgC3ky80rg9r0COoUJ6JQzp8FOKUlESEk1MDZa2x29rfFWi+Hnbae9DXfnnWPa 8vmFjdrhz9ODjlbcbDp7SLbY/LquXMDiM+fuCdTmLpyyue9+VORykck/ny6cv9S66NmyOMdH1 eV6U4673DOL83TbG3Su9cLxL1vbyhvWX558QuZqXd5ivXkzZnB+rtM3YT88M6Dlk/kXea/6OC 02GW031gVKLMUZiYZazEXFiQCeB79f/gIAAA== X-Env-Sender: douly.fnst@cn.fujitsu.com X-Msg-Ref: server-2.tower-206.messagelabs.com!1505294033!90700144!2 X-Originating-IP: [183.91.158.132] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 54799 invoked from network); 13 Sep 2017 09:13:57 -0000 Received: from mail.cn.fujitsu.com (HELO heian.cn.fujitsu.com) (183.91.158.132) by server-2.tower-206.messagelabs.com with SMTP; 13 Sep 2017 09:13:57 -0000 X-IronPort-AV: E=Sophos;i="5.42,387,1500912000"; d="scan'208";a="26075069" Received: from localhost (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 13 Sep 2017 17:13:50 +0800 Received: from G08CNEXCHPEKD03.g08.fujitsu.local (unknown [10.167.33.85]) by cn.fujitsu.com (Postfix) with ESMTP id F0CEA47CA46F; Wed, 13 Sep 2017 17:13:47 +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.361.1; Wed, 13 Sep 2017 17:13:47 +0800 From: Dou Liyang To: , Date: Wed, 13 Sep 2017 17:12:53 +0800 Message-ID: <1505293975-26005-11-git-send-email-douly.fnst@cn.fujitsu.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1505293975-26005-1-git-send-email-douly.fnst@cn.fujitsu.com> References: <1505293975-26005-1-git-send-email-douly.fnst@cn.fujitsu.com> MIME-Version: 1.0 X-Originating-IP: [10.167.226.106] X-yoursite-MailScanner-ID: F0CEA47CA46F.A4E62 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: douly.fnst@cn.fujitsu.com Cc: Juergen Gross , Dou Liyang , bhe@redhat.com, boris.ostrovsky@oracle.com, hpa@zytor.com, xen-devel@lists.xenproject.org, tglx@linutronix.de, yinghai@kernel.org, mingo@kernel.org Subject: [Xen-devel] [PATCH v9 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 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 . 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 ] Signed-off-by: Dou Liyang Cc: xen-devel@lists.xenproject.org Cc: boris.ostrovsky@oracle.com Cc: Juergen Gross Acked-by: Juergen Gross --- 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 ae2a2e2..934dc7f 100644 --- a/arch/x86/xen/enlighten_pv.c +++ b/arch/x86/xen/enlighten_pv.c @@ -1232,6 +1232,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;