Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3022313imm; Sun, 1 Jul 2018 10:29:15 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJwzDbgO7BWP8MyOvdNLSOG9uWpacKz4GuT6hfZbfSb8sv/cYCyihSQvHcTq+0J1HAjh1Qn X-Received: by 2002:a65:4249:: with SMTP id d9-v6mr19261095pgq.362.1530466155872; Sun, 01 Jul 2018 10:29:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530466155; cv=none; d=google.com; s=arc-20160816; b=JNuAZYbZdUfEnSG1fc0/2m43BdZbYZCLmxbUNlNVoneC9BBMRpfwAHJY3s8xCcLjwZ lDB51Sh17XzBM5ufiAD4XJf4koCwXCg/gnLdhrqBfBA64Ktc7i+JDcvPvQgIdloTaXZm DdU0q9YNNP9xLJMP0X6SlfruHdmQF4qbEK+ycorQPlWKOBkqOXyMQAdn7i152q1aWEI8 YBni1AaKFlX2O75nfYCb2FcHA23tlcVXEdg4K3/E+XN5aeOK2OdPrQPjzg8Ii7RheyXU iVHEfxZ1tyRTZqLNdgUR5fFg7hFAbxdO86fIST5YP5ZUgK/p7Dma+M0RVSGMAoDMh2cB b7OQ== 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=DrstqOjU6lys3jg/g1x6eS8HMHbNOYuNVJ8+DfDGBuM=; b=zXvX15IhS0mzhLu+Tr7IhNf7w7fSSXR1807ZKlGIBmgLtpWILtfi/8ZRHbYHmKCAVb S0SbWrjnUIBXcP64mrh60HFw5JhrmVaet4HGam7PALCHii4g+v1EWIEkpcV2/wPCZU6E RZUwY7WI/20w+FRYIKFdiKb0dCLPwaPm7L9M49wXzFUIcgZHc/BoD+cFKni9OU85sUvj ZsspDYyEo5XPaTUSGtcambecIJmNz7uX01jZDoCsQoPkhx99KDnWZE9ixsxBB3n9gxin A+DNJN26XGrolgbvfSD/NBWQmAPxI2bzMAhg6HFwCaGb/AhoHxl1QET3OPY4RuHuBHJw wW0w== 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 n5-v6si14390873plk.352.2018.07.01.10.29.01; Sun, 01 Jul 2018 10:29:15 -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 S1031431AbeGAQhb (ORCPT + 99 others); Sun, 1 Jul 2018 12:37:31 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:36232 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031403AbeGAQhT (ORCPT ); Sun, 1 Jul 2018 12:37:19 -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 0A792A73; Sun, 1 Jul 2018 16:37:18 +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.17 002/220] x86/xen: Add call of speculative_store_bypass_ht_init() to PV paths Date: Sun, 1 Jul 2018 18:20:26 +0200 Message-Id: <20180701160908.369313453@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180701160908.272447118@linuxfoundation.org> References: <20180701160908.272447118@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.17-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_pv.c | 5 +++++ 1 file changed, 5 insertions(+) --- a/arch/x86/xen/smp_pv.c +++ b/arch/x86/xen/smp_pv.c @@ -32,6 +32,7 @@ #include #include +#include #include #include @@ -70,6 +71,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); @@ -250,6 +253,8 @@ static void __init xen_pv_smp_prepare_cp } set_cpu_sibling_map(0); + speculative_store_bypass_ht_init(); + xen_pmu_init(0); if (xen_smp_intr_init(0) || xen_smp_intr_init_pv(0))