Received: by 10.223.176.5 with SMTP id f5csp1542319wra; Wed, 31 Jan 2018 07:58:48 -0800 (PST) X-Google-Smtp-Source: AH8x224Ir5eUdm+lWYDn6dpxi/TPoHcPa/ilPbyFQnRwuRgY97vaZq4KGZZF+EwamCQWQjZkChZW X-Received: by 10.101.96.132 with SMTP id t4mr26246114pgu.58.1517414328771; Wed, 31 Jan 2018 07:58:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517414328; cv=none; d=google.com; s=arc-20160816; b=t5wRO9DFyhaVb+Vo6KTuwCedqWEard5CXMZnSlAh0960JaY8gf5JmGNLZso8D3yc+L ce8sbEyM/druZkIS3qwYLeZJPuwaeuW0of42j+Bmldu7FuLQt60imCk/CTz+uQkGHrS5 +65bbescHb8XhVDDBPwWhnoxPtw/RENVTIkQClVIm5/XghL4Q7ybmyZcpjlzUdk6s+De 3v1pleVVEsg8kzhoVccfJ0kv30tSWrflIN7P6W1Q0kh99P6cI7A5Nb2GQsTK1L7lcER+ a5uG773LIpkg2OOcT5JPDgoB2VF4+hsB7T0EXlPEf3XSxDytXr10NIwickgwIzENs6r2 ENuw== 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=eDmXylBdwwI0dlJZp8AJMAwigveEqzOVCu90tYrpPCk=; b=FRmOnVp6s/6mkxtG5OXbi/U5a/qCLaCiTPS+snDUYf8EHgwDnlnDN8SoLPJmD1cp6H 4wPl4UFepPYb0fOl8d6hEJHl7aPRyY2WRQ0ELo88t9COxowhRO2scVccflncTXzXdRa1 VxVMUHOnlkZ/ysruj/Wcv866MX0X6Stfan0ztg7acfXlV/CEstzc/GPwP0ANIUX0nvmb nsHLbIg/AtDFUFJKuu9bArK2UvjJaX2GWK92xWexkHoM2v/BEP76QO0eQa0LaLtSOAlG /l80zn+C9tqhBxjE0VUs0xaBARTIX1RZjJDSIpj2R1vhRd3nU5jDj5TxlmbKJMQ5e4Fj GLXA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i185si31093pge.533.2018.01.31.07.58.34; Wed, 31 Jan 2018 07:58:48 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753600AbeAaOop (ORCPT + 99 others); Wed, 31 Jan 2018 09:44:45 -0500 Received: from mx1.redhat.com ([209.132.183.28]:56574 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753571AbeAaOon (ORCPT ); Wed, 31 Jan 2018 09:44:43 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 601A75414A; Wed, 31 Jan 2018 14:44:43 +0000 (UTC) Received: from localhost (ovpn-116-57.gru2.redhat.com [10.97.116.57]) by smtp.corp.redhat.com (Postfix) with ESMTP id 874515D968; Wed, 31 Jan 2018 14:44:42 +0000 (UTC) Date: Wed, 31 Jan 2018 12:44:41 -0200 From: Eduardo Habkost To: "Dr. David Alan Gilbert" Cc: Borislav Petkov , Thomas Gleixner , Christophe de Dinechin , Alan Cox , Linus Torvalds , David Woodhouse , Arjan van de Ven , KarimAllah Ahmed , Linux Kernel Mailing List , Andi Kleen , Andrea Arcangeli , Andy Lutomirski , Ashok Raj , Asit Mallick , Dan Williams , Dave Hansen , Greg Kroah-Hartman , "H . Peter Anvin" , Ingo Molnar , Janakarajan Natarajan , Joerg Roedel , Jun Nakajima , Laura Abbott , Masami Hiramatsu , Paolo Bonzini , Peter Zijlstra , Radim =?utf-8?B?S3LEjW3DocWZ?= , Tim Chen , Tom Lendacky , KVM list , the arch/x86 maintainers Subject: Re: [RFC,05/10] x86/speculation: Add basic IBRS support infrastructure Message-ID: <20180131144441.GK26425@localhost.localdomain> References: <1517259759.18619.38.camel@infradead.org> <20180130204623.583b1a7a@alans-desktop> <200C59E8-80F3-4FEC-BA3B-E6A56FA12C74@dinechin.org> <20180131110406.GB2521@work-vm> <20180131115211.2cxz2xj6elv37p6t@pd.tnic> <20180131123036.GD2521@work-vm> <20180131131834.jzown5pteqzd3xmg@pd.tnic> <20180131140449.GF2521@work-vm> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180131140449.GF2521@work-vm> X-Fnord: you can see the fnord User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Wed, 31 Jan 2018 14:44:43 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 31, 2018 at 02:04:49PM +0000, Dr. David Alan Gilbert wrote: > * Borislav Petkov (bp@suse.de) wrote: > > On Wed, Jan 31, 2018 at 12:30:36PM +0000, Dr. David Alan Gilbert wrote: > > > Indeed, it's only for this weird case where you suddenly need to change > > > it. > > > > No, there's more: > > > > .name = "Broadwell-noTSX", > > .name = "Haswell-noTSX", > > Haswell came out and we made the CPU definition, and then got a > microcode update that removed the feature. > > So the common feature of noTSX and IBRS is that they're the only two > cases where a CPU has released and then the flags have changed later. Also, if anybody don't like it, users can already specify, e.g., "Broadwell,-hle,-rtm" or "Skylake,+spec_ctrl". QEMU only adds have the -noTSX and -IBRS CPU for convenience of management systems that don't know how to check/configure individual CPU features. We're working with libvirt and OpenStack folks to make this kind of trick unnecessary. -- Eduardo