Received: by 10.223.176.46 with SMTP id f43csp2092166wra; Sun, 21 Jan 2018 11:05:11 -0800 (PST) X-Google-Smtp-Source: AH8x224fz6PSuOX54cHnhqXvNBbWjHnI/tfnBqlYua42wN2c/RiHjIzwqnoQMSt4LspufVHjYbVh X-Received: by 10.99.95.3 with SMTP id t3mr4983613pgb.302.1516561510927; Sun, 21 Jan 2018 11:05:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516561510; cv=none; d=google.com; s=arc-20160816; b=TFTLBHNbOpdrX1cEoHTRNk1u374xjpAf1HYT8ckSWyZSlP8d7mpo4Q4ejAQzaSVIRo s/TJZiXDKY3aWGM+xHoygrEgPC7Y2heugitzV7EFK/mM1EjHStScocZ5Oz0XRMTXeqPx rJp102bVntAv5ezaBhNFe412tjpnzVqgJk3fgDqWKp6OIzOHipuQADh4+vAhjP5ZlCjZ ZCNBtUhF0gbD1juOxd9cbhP66CSa1rNKTHYTNC97PJEvD30CGk+M7l+i5tvBEwJfysAN jwtj5iB1+jC1itvfmOzxt4xMpUIz5iz3LGWq1ObTCZVUb0d3YEnlYb0KC3eyyqUewPeL nlHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=zRgG73LJZjnOFspeN3MiTxF7lLQ5sXPCZddoKPMSrPY=; b=tpzb7Y/5zq3rcplX1Zmenf+rJ26hGDfuAr88LOwJTOM2WXtlejv3X9bHEj+CM9ikmY Dnca/WK7Gy+Cgt0j9IUmRljJZ2YhJcaEv6O3shZJwMu9CcUmRHcJ6lWWSoH+to3UBIxF ecNtuyUCZTRrzmpskntZtS8n6wxjtafgcZvXm9wAG0pXhsij/FwJBQHH60N63hnJphhw CKp6D5doXc556bzu9VNhB5psoE9iPwzYhbDnAGEAfpo0U92/3ONjSPW77nH2NcU2c2Nf sh1afoc7PCiL/yFUmEqIJFJZUT0ezLpYwmoYzIDzJ98xqXg4J+0vRLkiBjHaSXCvFyev ruhg== 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 u11si12109309pgr.230.2018.01.21.11.04.56; Sun, 21 Jan 2018 11:05:10 -0800 (PST) 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 S1751345AbeAUTEd (ORCPT + 99 others); Sun, 21 Jan 2018 14:04:33 -0500 Received: from mail.skyhub.de ([5.9.137.197]:51584 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751004AbeAUTEc (ORCPT ); Sun, 21 Jan 2018 14:04:32 -0500 X-Virus-Scanned: Nedap ESD1 at mail.skyhub.de Received: from mail.skyhub.de ([127.0.0.1]) by localhost (blast.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ctNeHlB1rkpg; Sun, 21 Jan 2018 20:04:31 +0100 (CET) Received: from pd.tnic (p200300EC2BEE1B001C757E499366AA02.dip0.t-ipconnect.de [IPv6:2003:ec:2bee:1b00:1c75:7e49:9366:aa02]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 00EBB1EC00FF; Sun, 21 Jan 2018 20:04:30 +0100 (CET) Date: Sun, 21 Jan 2018 20:04:30 +0100 From: Borislav Petkov To: David Woodhouse Cc: arjan@linux.intel.com, tglx@linutronix.de, karahmed@amazon.de, x86@kernel.org, linux-kernel@vger.kernel.org, tim.c.chen@linux.intel.com, peterz@infradead.org, pbonzini@redhat.com, ak@linux.intel.com, torvalds@linux-foundation.org, gregkh@linux-foundation.org Subject: Re: [PATCH v2 5/8] x86/speculation: Add basic support for IBPB Message-ID: <20180121190430.ss22poeakvwzvcal@pd.tnic> References: <1516528149-9370-1-git-send-email-dwmw@amazon.co.uk> <1516528149-9370-6-git-send-email-dwmw@amazon.co.uk> <20180121180621.ufmc5m7nr6v4tjvc@pd.tnic> <1516560862.9814.47.camel@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1516560862.9814.47.camel@infradead.org> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jan 21, 2018 at 06:54:22PM +0000, David Woodhouse wrote: > Because we're backporting this to every stable kernel under the sun, > and they don't already require asm-goto. Considering the cost of the barrier, I'd simplify the whole endeavor *considerably* for backporting: if (boot_cpu_has(X86_FEATURE_IBPB)) wrmsr(MSR_IA32_PRED_CMD, PRED_CMD_IBPB, 0); Problem solved. Upstream can then do static_cpu_has() if it wants to. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.