From patchwork Mon Aug 28 03:20:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dou Liyang X-Patchwork-Id: 9924113 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 41ED660380 for ; Mon, 28 Aug 2017 03:24:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 32D1D28634 for ; Mon, 28 Aug 2017 03:24:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 274B02863C; Mon, 28 Aug 2017 03:24:51 +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 C342B28666 for ; Mon, 28 Aug 2017 03:24: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 ) id 1dmAcV-0002R6-Jz; Mon, 28 Aug 2017 03:21:47 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dmAcT-0002R0-QF for xen-devel@lists.xenproject.org; Mon, 28 Aug 2017 03:21:45 +0000 Received: from [85.158.143.35] by server-8.bemta-6.messagelabs.com id 94/88-09901-94C83A95; Mon, 28 Aug 2017 03:21:45 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrBIsWRWlGSWpSXmKPExsWyPXpei65Hz+J Ig/ZGCYvvWyYzOTB6HP5whSWAMYo1My8pvyKBNePTrQ8sBb1cFW/eT2dtYPzK0cXIySEh4Cfx 7PQRZhBbSKBe4mDzX5YuRi4geyWjxL5Z96Cc44wSq8/sZAGpYhPQkTjT/IAdxBYR8JL4fPAPM 0gRs0ALk8TSl3fBRgkLBEicunqCFcRmEVCV2Dt/O5jNC9Sw4u1KVojVchLbtuxhBLE5geJ9uz awQ5zhKXHk/RR2iHpBiZMzn4AtZhaQkDj44gUzRK+SxOt1B1ggbF2JlivtTBC2psS21efYIGw ziSM7/0PtEpTY+fwC2wRGkVlIxs5CMnYBI9MqRo3i1KKy1CJdQyO9pKLM9IyS3MTMHF1DAzO9 3NTi4sT01JzEpGK95PzcTYzAUGcAgh2MlzcGHGKU5GBSEuXdWbE4UogvKT+lMiOxOCO+qDQnt fgQowwHh5IE7+MuoJxgUWp6akVaZg4w6mDSEhw8SiK8td1Aad7igsTc4sx0iNQpRl2ODavXf2 ESYsnLz0uVEudlAykSACnKKM2DGwFLAJcYZaWEeRmBjhLiKUgtys0sQZV/xSjOwagkzNsFMoU nM68EbtMroCOYgI5QFFwIckRJIkJKqoHxrP+bvzpFfk+mnL4l/CLTWcL+ZfKko4FZNwy9nzeu +ntyI0uvwCtHf6fa/084Yvzjdbnmsey90XimaH7GZoVnrMUq563d16y5O+to7LVtNbPfXV99s Wn/ZH6Bvc+5JzkFlB5Jb3P93pjxNmT3xh9bU54LvrsT2inUkbLpnv6uK5u/VvKnb53ercRSnJ FoqMVcVJwIAAlcGln7AgAA X-Env-Sender: douly.fnst@cn.fujitsu.com X-Msg-Ref: server-8.tower-21.messagelabs.com!1503890502!79715065!1 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 26238 invoked from network); 28 Aug 2017 03:21:44 -0000 Received: from mail.cn.fujitsu.com (HELO heian.cn.fujitsu.com) (183.91.158.132) by server-8.tower-21.messagelabs.com with SMTP; 28 Aug 2017 03:21:44 -0000 X-IronPort-AV: E=Sophos;i="5.41,439,1498492800"; d="scan'208";a="24797622" Received: from localhost (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 28 Aug 2017 11:21:41 +0800 Received: from G08CNEXCHPEKD01.g08.fujitsu.local (unknown [10.167.33.80]) by cn.fujitsu.com (Postfix) with ESMTP id AD6474724008; Mon, 28 Aug 2017 11:21:36 +0800 (CST) Received: from localhost.localdomain.localdomain (10.167.226.106) by G08CNEXCHPEKD01.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 28 Aug 2017 11:21:40 +0800 From: Dou Liyang To: , , Date: Mon, 28 Aug 2017 11:20:35 +0800 Message-ID: <1503890438-27840-11-git-send-email-douly.fnst@cn.fujitsu.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1503890438-27840-1-git-send-email-douly.fnst@cn.fujitsu.com> References: <1503890438-27840-1-git-send-email-douly.fnst@cn.fujitsu.com> MIME-Version: 1.0 X-Originating-IP: [10.167.226.106] X-yoursite-MailScanner-ID: AD6474724008.A0D81 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: douly.fnst@cn.fujitsu.com Cc: Dou Liyang , indou.takao@jp.fujitsu.com, xen-devel@lists.xenproject.org, bhe@redhat.com, rjw@rjwysocki.net, bp@alien8.de, hpa@zytor.com, izumi.taku@jp.fujitsu.com, boris.ostrovsky@oracle.com, mingo@kernel.org Subject: [Xen-devel] [PATCH v8 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 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 --- 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 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;