Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2008871imm; Tue, 10 Jul 2018 11:30:59 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeM3qESlqPVnABsRgqlFhicDZQSY8X/PSzWlcG/jntLfzjd7KQuy6iHArjEPPevaqviJ9Mx X-Received: by 2002:a63:d401:: with SMTP id a1-v6mr8627958pgh.414.1531247459926; Tue, 10 Jul 2018 11:30:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531247459; cv=none; d=google.com; s=arc-20160816; b=oVIJmWeB3WmrgStgweesyGksdfyW2o72rRm1C+ZNadqgCiCflWeTZ3axploWVedWd5 Y+zeeGUSIoV7kpY2G6b18bxQgSvlMCPl5yTWjcNmcKtw7j2MVs6PSo4sU9O3u+IjDZPa Mh1g3sS3sgm/d/ochpNh/O44NjClOVcmELmSGiE4OprHTA0GdpXmtmtVui1yP4g6aS2F U7EobL9cRL50zghCe92fcO8juwmlFweqfDQWbge0xLbeNGK64BZ5P1U2Vp2XMJc3rbWi pro693bRgZaUjRxHHRtX9ThoE/RQPoRyk0FkFseS/CNt+NrSw/c1Mq3gMaBn3VrSALCM 6qrQ== 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=2nVsqd/l32/v7LNqj1FUUIIS5UTLrKWFM6vTOL2DfJ4=; b=J11MS9xJssFOePqodqOmEAPaQ++XcwodN2XKlAmNn836Wknf6ku9umHa8G7akIuYxX K2mOVDTyoF5kXfSjXzllI7LCPvcWAKVsZhbemmORRzGY0mJyZx1b02pEkpZBcnggyHNh i4/N65aFADVUUN9qEe5lOMOOXAumTkisCdhLXkudNxDLBDqzZkbJH755MGNLtTJAQkD4 +j5D9w1jFaEBorhn+rhdmzcIyuyHsydxT399Zwg8HbcMSHP8v3zTNm1uzJePan4zPTXU B5z0xTadBiHauSlLACxbtP3BxJkGHuiymqaikV/tnYZ+L86byEx7/WHd+5AaTWVJiGcQ eXeg== 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 p33-v6si17170774pld.318.2018.07.10.11.30.44; Tue, 10 Jul 2018 11:30:59 -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 S2387848AbeGJS3r (ORCPT + 99 others); Tue, 10 Jul 2018 14:29:47 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:45402 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732245AbeGJS3q (ORCPT ); Tue, 10 Jul 2018 14:29:46 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 8C6FCEB8; Tue, 10 Jul 2018 18:29:34 +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 Subject: [PATCH 4.9 17/52] x86/xen: Add call of speculative_store_bypass_ht_init() to PV paths Date: Tue, 10 Jul 2018 20:24:45 +0200 Message-Id: <20180710182451.143153480@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180710182449.285532226@linuxfoundation.org> References: <20180710182449.285532226@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.9-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 --- 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); @@ -375,6 +378,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))