From patchwork Fri Jul 14 05:52:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dou Liyang X-Patchwork-Id: 9839909 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 1BC5F60381 for ; 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 ; 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 ; 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 ) 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 ) 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 To: , 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 , 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 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;