From patchwork Wed Apr 26 13:42:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Boris Ostrovsky X-Patchwork-Id: 9701405 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 07EA660245 for ; Wed, 26 Apr 2017 13:45:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ED4E12865D for ; Wed, 26 Apr 2017 13:45:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E232828666; Wed, 26 Apr 2017 13:45:24 +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, UNPARSEABLE_RELAY 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 75AE72865D for ; Wed, 26 Apr 2017 13:45:24 +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 1d3NDe-0004vJ-Aa; Wed, 26 Apr 2017 13:42:58 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d3NDc-0004uh-ID for xen-devel@lists.xenproject.org; Wed, 26 Apr 2017 13:42:56 +0000 Received: from [85.158.143.35] by server-9.bemta-6.messagelabs.com id AB/DA-03557-FD3A0095; Wed, 26 Apr 2017 13:42:55 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrELMWRWlGSWpSXmKPExsXSO6nOVff+YoZ Ig49HOS2+b5nM5MDocfjDFZYAxijWzLyk/IoE1oyTu9+xFLSwVVx4/JOxgXEhaxcjF4eQwEQm ibadZxghnN+MEpsmvWKDcDYySlxe3cYC4fQwStzZ/Q+ojJODTcBI4uzR6WC2iICwxPGj25hBi phBiu7e/cwGkhAWsJHYPfcjmM0ioCpx9+RyVhCbV8BLou/2VrC4hICCxJSH75khbEOJzxuXMk 9g5FnAyLCKUaM4tagstUjXyFgvqSgzPaMkNzEzR9fQwEwvN7W4ODE9NScxqVgvOT93EyPQ/wx AsIPxz/zAQ4ySHExKorz1k/9FCPEl5adUZiQWZ8QXleakFh9ilOHgUJLg3beIIVJIsCg1PbUi LTMHGIgwaQkOHiURXgZgMArxFhck5hZnpkOkTjHqcsy59/U9kxBLXn5eqpQ4rzNIkQBIUUZpH twIWFRcYpSVEuZlBDpKiKcgtSg3swRV/hWjOAejkjDvMpBLeDLzSuA2vQI6ggnoCBYXsCNKEh FSUg2MbN/l7LN2CRqbXPdt+lOqW12nKrnp3aMDVbL1ckkldmwG15PyOFcEcrPtrxVefmPHpuo ZWU6r5eveue7m+6ZqfP6hgNn7tS9WbzRYy3/M+obI8njW+Y+eds5Z9/4Q+8nL8gV9l7I9E49Z Hfn0t+mdg3fTQqW21UlB//jF9hWekHCcEGvb96dTiaU4I9FQi7moOBEAWGjMh4UCAAA= X-Env-Sender: boris.ostrovsky@oracle.com X-Msg-Ref: server-7.tower-21.messagelabs.com!1493214173!65480846!1 X-Originating-IP: [141.146.126.69] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogMTQxLjE0Ni4xMjYuNjkgPT4gMjc3MjE4\n X-StarScan-Received: X-StarScan-Version: 9.4.12; banners=-,-,- X-VirusChecked: Checked Received: (qmail 9184 invoked from network); 26 Apr 2017 13:42:54 -0000 Received: from aserp1040.oracle.com (HELO aserp1040.oracle.com) (141.146.126.69) by server-7.tower-21.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 26 Apr 2017 13:42:54 -0000 Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v3QDgowI028368 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 26 Apr 2017 13:42:50 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id v3QDgnhS015130 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 26 Apr 2017 13:42:49 GMT Received: from abhmp0016.oracle.com (abhmp0016.oracle.com [141.146.116.22]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id v3QDgmgK020635; Wed, 26 Apr 2017 13:42:48 GMT Received: from ovs104.us.oracle.com (/10.149.76.204) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 26 Apr 2017 06:42:48 -0700 From: Boris Ostrovsky To: jgross@suse.com Date: Wed, 26 Apr 2017 09:42:48 -0400 Message-Id: <1493214168-21436-1-git-send-email-boris.ostrovsky@oracle.com> X-Mailer: git-send-email 1.8.3.1 X-Source-IP: userv0022.oracle.com [156.151.31.74] Cc: xen-devel@lists.xenproject.org, Boris Ostrovsky , linux-kernel@vger.kernel.org, linux@eikelenboom.it Subject: [Xen-devel] [PATCH] xen/x86: Call xen_smp_intr_init_pv() on BSP 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: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Recent code rework that split handling ov PV, HVM and PVH guests into separate files missed calling xen_smp_intr_init_pv() on CPU0. Add this call. Signed-off-by: Boris Ostrovsky Reported-by: Sander Eikelenboom Reviewed-by: Juergen Gross --- arch/x86/xen/smp_pv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/xen/smp_pv.c b/arch/x86/xen/smp_pv.c index c0e3b96..aae3253 100644 --- a/arch/x86/xen/smp_pv.c +++ b/arch/x86/xen/smp_pv.c @@ -249,7 +249,7 @@ static void __init xen_pv_smp_prepare_cpus(unsigned int max_cpus) xen_pmu_init(0); - if (xen_smp_intr_init(0)) + if (xen_smp_intr_init(0) || xen_smp_intr_init_pv(0)) BUG(); if (!alloc_cpumask_var(&xen_cpu_initialized_map, GFP_KERNEL))