Received: by 10.223.176.5 with SMTP id f5csp3678397wra; Mon, 29 Jan 2018 17:30:56 -0800 (PST) X-Google-Smtp-Source: AH8x2273dSgxoPrwRGfsbRDvyasS4zcTrM8JaT96MG40DqN8kZE23w/yPsPhmJTmokk7oCxKl0JC X-Received: by 10.99.114.27 with SMTP id n27mr23154343pgc.424.1517275856103; Mon, 29 Jan 2018 17:30:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517275856; cv=none; d=google.com; s=arc-20160816; b=pHvd/E/rssjS2H4EUL3pqpa9kjeVE2ED1ymam+s9Y5URnmAwFizD21lx4y1sJFohWK 4IBoWdpSa+dw9WN3dfBmmqdIpFkHUsXvS7cpY3IYxIi4tik8CSDqW+YYk5586y7KDDSQ 5jARuZ7nfsVnq0nd9Qwad4thSmeI6n/t3Lu7AdDsohEORAE8r5heBZA6Nrkus4DPEJZu Ofts7xreOJO7u1JLOD3A7SoXnaqLiKiiRMw9FH2rBqmgxDfyxWb8cz8Zsu8FeJyo8tAI 6C0/vhRZ7bz9erypriVnZyHv1FKBzz1G+aYTNkMu9nv747z6ddq8vRHSZKlKcca3y47w g1Bw== 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=ed7Nr/BFVHN5BTXVJ3EljH2j8wGUU2H+dxThtdndb0k=; b=lRTUL0v6fZMQSEaOYzV3QE/bxyKovWPf6upreotpjCsy5vpzGq2VF9pSROHuhgQZxb 38JfVsJ8vZ4yodrJ/m2JQTYeOcnRhR1hacrWh5/0XdfQQbzhPy0e7YVOjWQLfgIPaFNV i95qpE+MKlNWpAsDapwMhEQpyYIHyef9mpABBwfxTxU5UWFP+YrTYLBTYbkpvI7Aijap 8UZDcRhNxOT64CiLGEFKasXLRYdKyXlzlIv/1jx4yTYJPs6mEN1dBHvQAQYFjQBOf+0f uHUwYoWpzsvhC9KaP3jQKgWPQz7VVhj5LGiv5QpKBAL66v8gN7L8OuRlRJOjl0Mi0GQy fgvQ== 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 p8-v6si728909plk.192.2018.01.29.17.30.41; Mon, 29 Jan 2018 17:30:56 -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 S1752325AbeA3BaU (ORCPT + 99 others); Mon, 29 Jan 2018 20:30:20 -0500 Received: from mx1.redhat.com ([209.132.183.28]:38652 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751562AbeA3BaS (ORCPT ); Mon, 29 Jan 2018 20:30:18 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id BE21DC057FA1; Tue, 30 Jan 2018 01:30:17 +0000 (UTC) Received: from localhost (ovpn-116-57.gru2.redhat.com [10.97.116.57]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7E79060C82; Tue, 30 Jan 2018 01:30:16 +0000 (UTC) Date: Mon, 29 Jan 2018 23:30:14 -0200 From: Eduardo Habkost To: David Dunn Cc: Jim Mattson , Andi Kleen , Arjan van de Ven , KarimAllah Ahmed , "Wilson, Matt" , "linux-kernel@vger.kernel.org" , Andrea Arcangeli , Andy Lutomirski , Ashok Raj , Asit Mallick , Borislav Petkov , Dan Williams , Dave Hansen , Greg Kroah-Hartman , "H . Peter Anvin" , Ingo Molnar , Janakarajan Natarajan , Joerg Roedel , Jun Nakajima , Laura Abbott , Linus Torvalds , Masami Hiramatsu , Paolo Bonzini , Peter Zijlstra , Radim =?utf-8?B?S3LEjW3DocWZ?= , Thomas Gleixner , Tim Chen , Tom Lendacky , "Jorgensen, Bryan" , "kvm@vger.kernel.org" , "x86@kernel.org" , "Dr. David Alan Gilbert" , Fred Jacobs , David Woodhouse Subject: Re: [RFC,05/10] x86/speculation: Add basic IBRS support infrastructure Message-ID: <20180130013014.GE21702@localhost.localdomain> References: <7EB9643C-D2DD-477A-90DE-05DC653D2D4B@vmware.com> <20180129224124.GU26209@tassilo.jf.intel.com> <20180130011059.GB21702@localhost.localdomain> <30A89AF5-51E6-4D7F-B669-63C2B3191302@vmware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <30A89AF5-51E6-4D7F-B669-63C2B3191302@vmware.com> 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.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Tue, 30 Jan 2018 01:30:18 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 30, 2018 at 01:20:52AM +0000, David Dunn wrote: > Eduardo, > > This is why it would be good to have a CPUID bit that says: > "apply SkyLake RSB stuffing." That's preferable to "trust FMS" > for VMware. Agreed it would be more useful than "trust FMS". However, I believe a "no need to apply Skylake RSB stuffing" bit (which I called "we promise we won't migrate to Skylake" previously) would allow guests to enable safer behavior by default under older hypervisors that don't support this bit. > > If Intel defines such a feature flag, sets it on SkyLake, and > Linux uses it... that would be very helpful for VMware. > > I won't speak for GCE and AWS. But hopefully they can indicate > whether it would help them as well. I agree that having a standard flag on the CPUID space to specify that would be very helpful. > > If Intel cannot define/implement such a flag on SkyLake, then > maybe the engineers on this email could define a flag in the > hypervisor specific CPUID space. Linux would need to query > that flag if it sees CPUID[1].ECX[31] set. That's not as nice > since it makes detection on bare metal and virtualization > platforms different, but it better than keying off FMS. Agreed. -- Eduardo