Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5766443imm; Mon, 23 Jul 2018 05:50:21 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf8D5WEisAbrhoCy3tTu0w5f16eTFfpDIvJonkAql8Qc4le6VRd3Cw7+zRlV8KgvsBOV1pt X-Received: by 2002:a63:e206:: with SMTP id q6-v6mr1802514pgh.223.1532350221857; Mon, 23 Jul 2018 05:50:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532350221; cv=none; d=google.com; s=arc-20160816; b=E0So84Psp7eIi5YWzd6/JdT1lBSKaaBudiH5TRQfbM4fL+k0FeZ98OaAr0MZAw2DNC 6lSR6qkulRpDZSLBNM74YIV0QvSePkNf+CeGD0h0AOIHbfyfLlrrJOH2R1C7G2N+9pLq NETj2lQSih2CA4I9fyncZ7o1PU3JZzqTV8VbfmgD3PcGed5L5XxP+ZNZig5N7eAxxoEk 93qe6wymC6kSFNH3Ey7kjXvZKtpTErvNpxHT0D1jMkH1rc01EWujfAbW2/tKdmRqRIrI px7Rj9hhwHzAGI1YSm+nPloAyY9d4iGtgOUgaPZXRQ7o4lGaaG2li88W0Rkp9IJnq4vG q3AA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=tkoCMiw6t6bBiv0+iZZlucX+KofeCZS35z/ksKSTnHU=; b=qdf7+35cRJl93LEON0xMgHN0z0DTfGp/X/P2zJFwJj6hYSFg11s5lZdsHb8Qy85tz7 IARkWaNOp6ZkpvYitBeIp3xQboHnkLzcQgWmfeGPuS49kaaTiw9dKw1Ccn2Nt41nAlim XIYX/LWLH9JfciEsOsLfIebefv19MLFsHb6F7aJehV0+ZT26fUUShrAhO73ukUk2wDXc fmjqH52dRIAUmSZMb7Or0gH+dInCahthIk/QcS4D8GcWVO8DaP/8W5cukGGm3srAxGDp KeOEbpBDJYKN63RTzVYP85p4QlTyAGN2glIVXGjRfhFsM/4NGGM2nbrPKC5ihfoNd2Eq aQjg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k1-v6si7669421pgh.65.2018.07.23.05.50.07; Mon, 23 Jul 2018 05:50:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388387AbeGWNuN (ORCPT + 99 others); Mon, 23 Jul 2018 09:50:13 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:51854 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388695AbeGWNsK (ORCPT ); Mon, 23 Jul 2018 09:48:10 -0400 Received: from localhost (LFbn-1-12238-233.w90-92.abo.wanadoo.fr [90.92.53.233]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id E4CEFC77; Mon, 23 Jul 2018 12:47:03 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Brian Woods , Juergen Gross , Linus Torvalds , Peter Zijlstra , Thomas Gleixner , boris.ostrovsky@oracle.com, xen-devel@lists.xenproject.org, Ingo Molnar , "Srivatsa S. Bhat" Subject: [PATCH 4.4 098/107] x86/xen: Add call of speculative_store_bypass_ht_init() to PV paths Date: Mon, 23 Jul 2018 14:42:32 +0200 Message-Id: <20180723122418.416950924@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180723122413.003644357@linuxfoundation.org> References: <20180723122413.003644357@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Juergen Gross commit 74899d92e66663dc7671a8017b3146dcd4735f3b upstream. Commit: 1f50ddb4f418 ("x86/speculation: Handle HT correctly on AMD") ... added speculative_store_bypass_ht_init() to the per-CPU initialization sequence. speculative_store_bypass_ht_init() needs to be called on each CPU for PV guests, too. Reported-by: Brian Woods Tested-by: Brian Woods Signed-off-by: Juergen Gross Cc: Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: boris.ostrovsky@oracle.com Cc: xen-devel@lists.xenproject.org Fixes: 1f50ddb4f4189243c05926b842dc1a0332195f31 ("x86/speculation: Handle HT correctly on AMD") Link: https://lore.kernel.org/lkml/20180621084331.21228-1-jgross@suse.com Signed-off-by: Ingo Molnar Signed-off-by: Greg Kroah-Hartman Signed-off-by: Srivatsa S. Bhat Signed-off-by: Greg Kroah-Hartman --- arch/x86/xen/smp.c | 5 +++++ 1 file changed, 5 insertions(+) --- a/arch/x86/xen/smp.c +++ b/arch/x86/xen/smp.c @@ -28,6 +28,7 @@ #include #include +#include #include #include @@ -87,6 +88,8 @@ static void cpu_bringup(void) cpu_data(cpu).x86_max_cores = 1; set_cpu_sibling_map(cpu); + speculative_store_bypass_ht_init(); + xen_setup_cpu_clockevents(); notify_cpu_starting(cpu); @@ -357,6 +360,8 @@ static void __init xen_smp_prepare_cpus( } set_cpu_sibling_map(0); + speculative_store_bypass_ht_init(); + xen_pmu_init(0); if (xen_smp_intr_init(0))