From patchwork Wed Sep 13 10:22: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: 9950907 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 A8DFA60360 for ; Wed, 13 Sep 2017 10:25:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 98FE528F11 for ; Wed, 13 Sep 2017 10:25:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8CE9928F3E; Wed, 13 Sep 2017 10:25: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 0A3B228F11 for ; Wed, 13 Sep 2017 10:25: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 1ds4oy-0000Fu-M0; Wed, 13 Sep 2017 10:23:04 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ds4ox-0000FH-JH for xen-devel@lists.xenproject.org; Wed, 13 Sep 2017 10:23:03 +0000 Received: from [85.158.139.211] by server-2.bemta-5.messagelabs.com id 69/35-02021-60709B95; Wed, 13 Sep 2017 10:23:02 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrNIsWRWlGSWpSXmKPExsWyPXpeiy4b+85 Ig2cn+C2+b5nM5MDocfjDFZYAxijWzLyk/IoE1ox5L5+xFJzmrniy4xxbA+M0ri5GDg4JAT+J 72/duxg5OYQE6iU2nfvA3MXIBWSvZJS4v3Q1C4RznFFiyqKfjCBVbAI6EmeaH7CD2CICJhLfl z8CizMLTGOSuHHJAMQWFgiU6N30jQXEZhFQlbhzajsjyDJeAU+J3/t4QMISAnIS27bsAWvlFP CWuL/9NBPEEV4SSxbeYwOxeQUEJU7OfMICMV5C4uCLF8wQvUoSr9cdYIGwdSUu7d3JBGFrSmx bfY4NwjaTOLLzPyuELSix8/kFtgmMIrOQjJ2FZOwCRqZVjBrFqUVlqUW6hqZ6SUWZ6RkluYmZ ObqGBqZ6uanFxYnpqTmJScV6yfm5mxiBQc4ABDsYG7Z7HmKU5GBSEuXdv2dHpBBfUn5KZUZic UZ8UWlOavEhRhkODiUJXmm2nZFCgkWp6akVaZk5wHiDSUtw8CiJ8L5hBUrzFhck5hZnpkOkTj EacxzbdPkPE0fHzbt/mIRY8vLzUqXEea+BlAqAlGaU5sENgqWBS4yyUsK8jECnCfEUpBblZpa gyr9iFOdgVBLm3QQyhSczrwRu3yugU5iATjlzegfIKSWJCCmpBsZmrrDMD3d3cSd19d2d9HHn wbNGUmIBvcq/038q7WjdFNBqYmLzvuZMWKCnkKZnip9CyrT+NbPUn3hz7twwYcot63PFrrsf6 99pdS+83n1HiPOR6a6cB5/WaLRrPp8k8v0H68vJXhuuyx7sUXSb+zb18Lnj9mv8j1vwidYWR8 2ZtPa4vO5spkglluKMREMt5qLiRAAU40Zj/gIAAA== X-Env-Sender: douly.fnst@cn.fujitsu.com X-Msg-Ref: server-10.tower-206.messagelabs.com!1505298181!82892412!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 21481 invoked from network); 13 Sep 2017 10:23:02 -0000 Received: from mail.cn.fujitsu.com (HELO heian.cn.fujitsu.com) (183.91.158.132) by server-10.tower-206.messagelabs.com with SMTP; 13 Sep 2017 10:23:02 -0000 X-IronPort-AV: E=Sophos;i="5.42,387,1500912000"; d="scan'208";a="26089202" Received: from localhost (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 13 Sep 2017 18:23:02 +0800 Received: from G08CNEXCHPEKD03.g08.fujitsu.local (unknown [10.167.33.85]) by cn.fujitsu.com (Postfix) with ESMTP id 12F7747278EA; Wed, 13 Sep 2017 18:22:56 +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 18:22:55 +0800 From: Dou Liyang To: , Date: Wed, 13 Sep 2017 18:22:35 +0800 Message-ID: <1505298155-20262-1-git-send-email-douly.fnst@cn.fujitsu.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1505293975-26005-11-git-send-email-douly.fnst@cn.fujitsu.com> References: <1505293975-26005-11-git-send-email-douly.fnst@cn.fujitsu.com> MIME-Version: 1.0 X-Originating-IP: [10.167.226.106] X-yoursite-MailScanner-ID: 12F7747278EA.A1B29 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: douly.fnst@cn.fujitsu.com Cc: Juergen Gross , Dou Liyang , indou.takao@jp.fujitsu.com, xen-devel@lists.xenproject.org, bhe@redhat.com, boris.ostrovsky@oracle.com, hpa@zytor.com, izumi.taku@jp.fujitsu.com, tglx@linutronix.de, mingo@kernel.org Subject: [Xen-devel] [PATCH v10 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 the dump-capture kernel hangs, if there is a notsc option in its command line. 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(). [Rewritten by Thomas Gleixner ] Signed-off-by: Dou Liyang Acked-by: Juergen Gross Cc: xen-devel@lists.xenproject.org Cc: boris.ostrovsky@oracle.com Cc: Juergen Gross --- V10 --> V9: --Modify the changelog, suggested by Juergen 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;