Received: by 10.223.176.5 with SMTP id f5csp3479374wra; Mon, 29 Jan 2018 13:52:44 -0800 (PST) X-Google-Smtp-Source: AH8x226l/z7bYvGpaGiSRdSYCS/3NtWHQK16/MieMSkh+BEb/7s6iNnSsP+/vNkp8vqqXND5l+JZ X-Received: by 10.101.65.205 with SMTP id b13mr22548736pgq.280.1517262764132; Mon, 29 Jan 2018 13:52:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517262764; cv=none; d=google.com; s=arc-20160816; b=X3ydKBHOSqjNn5koY0+oPvumGEJZgya+rwcFvvP1DAX09hcBXSm3Zr5vFxj/kHw/pE VqgKb9Ezg6r90eA9LmAGtlq4s8/j2PUM7WRmzVq53wOo6xt43TBNScJW84l055Nw3eaS tcADHv9YKFVx3Ly8bJUe9nseDIN3F3hbW3MEKWp8uQbn8JIcGjEBdoUODDEpIN2opkMg hrIXHR9EhV6JIDMjuD4equl0sSNUwptte96ZaEOUPWifsYFEzhRVDN4Ovpuqd0C9u9Om cfu+aMUFxrbfOppUWF7JVEfoKXRQHxiDV6aorfMKtNHIamqFdQTcXzmh/WmRVfOClemi W4tw== 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=kUrlOnwJ2Qyknu7+y0n1Z/BOVXjCLIqaLlCcS6InlZ4=; b=tHr+NviRZcjEm4liECpzKEdewsCKW/h8ZkhmvDJCj9FP74HP0tStiufzkC1gjd+3Df UlWbmzR5VZnBqnUUdYJF11E1rYQuTV7vPvwE3RVMXMwNDNxAV/6QUuCGrTbozuN4alNM VW8jSErET0e41AswXrUpoSidyQi0N09GgNuu0Jm1pv2zznB5ulUBjhRDjLxcR27BYMxO sTwhkd5iv61WqJYitPfrWQLG3s/Mf6hcV+oi4zD35AlSuF9gIZVWuoFrsVvxM7igEk0O 6t0BfyiL3s3amh//GVJ0CQXw+8ziD8cDT3BV7ZoiRcKdqwo4+PMYGnDeU6x6o2yKsQpX nDUg== 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 v1-v6si10006655plb.466.2018.01.29.13.52.29; Mon, 29 Jan 2018 13:52:44 -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 S1752087AbeA2Vua (ORCPT + 99 others); Mon, 29 Jan 2018 16:50:30 -0500 Received: from mx1.redhat.com ([209.132.183.28]:57370 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751417AbeA2Vu1 (ORCPT ); Mon, 29 Jan 2018 16:50:27 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id AF9235BEBA; Mon, 29 Jan 2018 21:50:27 +0000 (UTC) Received: from localhost (ovpn-116-57.gru2.redhat.com [10.97.116.57]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0433818AC0; Mon, 29 Jan 2018 21:50:26 +0000 (UTC) Date: Mon, 29 Jan 2018 19:50:25 -0200 From: Eduardo Habkost To: Jim Mattson Cc: David Woodhouse , Arjan van de Ven , KarimAllah Ahmed , LKML , Andi Kleen , 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 , kvm list , the arch/x86 maintainers , "Dr. David Alan Gilbert" Subject: Re: [RFC,05/10] x86/speculation: Add basic IBRS support infrastructure Message-ID: <20180129215025.GX25150@localhost.localdomain> References: <1516476182-5153-6-git-send-email-karahmed@amazon.de> <20180129201404.GA1588@localhost.localdomain> <1517257022.18619.30.camel@infradead.org> <20180129204256.GV25150@localhost.localdomain> <31415b7f-9c76-c102-86cd-6bf4e23e3aee@linux.intel.com> <1517259759.18619.38.camel@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Mon, 29 Jan 2018 21:50:27 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 29, 2018 at 01:37:05PM -0800, Jim Mattson wrote: > For GCE, "you might be migrated to Skylake" is pretty much a > certainty. Even if you're in a zone that doesn't currently have > Skylake machines, chances are pretty good that it will have Skylake > machines some day in the not-too-distant future. This kind of scenario is why I suggest a "we promise you're not going to be migrated to Skylake" bit instead a "you may be migrated to Skylake" bit. The hypervisor could prevent migration to Skylake hosts if management software chose to enable this bit, and guests would choose the safest option (i.e. assume the worst) if running on older hypervisors that don't set the bit. > > In general, making these kinds of decisions based on F/M/S is probably > unwise when running in a VM. Certainly. That's why I suggest not trusting f/m/s unless the hypervisor is explicitly saying it's accurate. -- Eduardo