Received: by 10.223.176.5 with SMTP id f5csp3499373wra; Mon, 29 Jan 2018 14:12:50 -0800 (PST) X-Google-Smtp-Source: AH8x22577yKUzNNBv2vLfduGntlbGF7uMalYt+nIxa9NkqopUFT8gzBDye9VmoUEWbbQaX7PUO+W X-Received: by 10.101.67.130 with SMTP id m2mr21548224pgp.301.1517263969988; Mon, 29 Jan 2018 14:12:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517263969; cv=none; d=google.com; s=arc-20160816; b=YPH6yGnrFUPpt+H9FCDWHeLlyRQ5kv1Ck+uFAPQi+Vl9/mOaDaeZDBWPGLBtV9QnbY AJH16NZOlh/eIIN03nqZ9ZtjiFihS5ycR4cZQGv8LVNRKmKMu+8GC3TOG9MIMR0x6/h4 FehWpfUDtGpWJZbKa1W+e+0KQQmgbFDJEup8vX51ODptGkYIaPP9nFyF7islNK6RcLmo Fa9PQljX7ZVG5J7f9IBRTKiIhdf3BdlUdEgKTTc9oTqfsXcaMm99IU0QBOFhgWD0nuCd gIOi6a82PfUAFIQmtC95nD+sMNxus01/7KOSZ8WooJ+hsBXYSEP68/HdDzhCLwIz1VWQ 3tuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=RYIKVn7lf4sQIZuOACMDuE3GQEvm/OAHdPc+CWgu6Fg=; b=ZSNYLIlxN2UZhr1YRxv0pcBXgRhBqsoi9YUbgby+LdgJZbUuAi3kR1n0vBMJaXY1t7 jpvWzeh+YgTRVYkNt0CU/7lNZJ4WK68mINfyd4671uyQE3Gj6qDt9iHEYuE1PMUIaP3b PHDqy5Rd6jaBK/Js2LySAtbfvpi1X2dHTk8XBpd4cknH0HlCEqMcA3CatXsNOQsEMQJe JG2s5vppAzwJQUMGpUz2gAygQIg8sv5Zu+sv9uv0hBh3mNilJgPwxxczCipPshrkeIDB Fr9GCuhzQkAXEN4vW/RuW8suFW74iNVH0A6lZgmX8gGwxBI1E8ykVUtf1et/kE7h5S9D hW5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=rSKmu/gU; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q11si8053443pgc.617.2018.01.29.14.12.35; Mon, 29 Jan 2018 14:12:49 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=rSKmu/gU; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752154AbeA2WMG (ORCPT + 99 others); Mon, 29 Jan 2018 17:12:06 -0500 Received: from mail-io0-f178.google.com ([209.85.223.178]:39834 "EHLO mail-io0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751542AbeA2WME (ORCPT ); Mon, 29 Jan 2018 17:12:04 -0500 Received: by mail-io0-f178.google.com with SMTP id b198so9311472iof.6 for ; Mon, 29 Jan 2018 14:12:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=RYIKVn7lf4sQIZuOACMDuE3GQEvm/OAHdPc+CWgu6Fg=; b=rSKmu/gUFCvfhdbhh2B8aZ4aMPrKRiHEndQgmwGEBn6UpDqufIwkwtHL2zV/sLQihk 2SXtjRH2rfnwwlMCKt3mD6GLmsksxVfZJmgF0Gz0DPqyYAfJRcDnE1VACW3UTtYACMoB 0z00gHrY/oGyJAXrMOJJ1QWjMDkT+A6Eb//Nszc6n+FAJBzKw1+4yPGIrVLFsYM2CIYF zF1yhGpSaWgysOFoPT7PfsTx+hi8jfVXnWvXe1Jw2tyvG5xswoeitDaoVSS01gkiNJj4 kG3NGOqQY/xzzH5TriwJPwDDRUXeYCerxFdHvU99pjsvY7LlFVBYj3GlMs9PyW5I1AxO tYvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=RYIKVn7lf4sQIZuOACMDuE3GQEvm/OAHdPc+CWgu6Fg=; b=m+lFOdzx0GwbHJEesuxzq9xrdCU71vST4r2Q/wjVe3LLnOBI7Hf643a/YsU8mtqDyA 9T3uXdxLyf2WFJpZMsVIekZaphvdJv5Acw4fnTLfh4KHel5A/2DdrnuujPkuw+bxGY8/ k+9U077R2p26/gILh198jSjXmsPHSYAx61uXXFiLXtHKOH/ikKVMW8jK7fvpisWSrX5f 9VdLZRmNl93E/lrRg84rzlVWzYB3tfRuFfMsdE+wSi5dKzwhhUHab3gIuLojrhzX0+f9 xyMWhN7qRBZvd4m+7ljYNSfe1iJGrXYNsIDExwfsk0ioMFdeJjpcIjZxRkz7N8JgmY6s k/wQ== X-Gm-Message-State: AKwxytdRnVFPjFXbtZvOxQ2rRiBAMDWZHCAZDVnVmmoGjsdlCT6WLPAm lD9BnAOdrsm2XfwjezonMDjHEjRAvKio9+xFLmfD/Q== X-Received: by 10.107.28.201 with SMTP id c192mr26682713ioc.26.1517263923279; Mon, 29 Jan 2018 14:12:03 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.128.7 with HTTP; Mon, 29 Jan 2018 14:12:02 -0800 (PST) In-Reply-To: <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> <20180129215025.GX25150@localhost.localdomain> From: Jim Mattson Date: Mon, 29 Jan 2018 14:12:02 -0800 Message-ID: Subject: Re: [RFC,05/10] x86/speculation: Add basic IBRS support infrastructure To: Eduardo Habkost 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 , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , Thomas Gleixner , Tim Chen , Tom Lendacky , kvm list , "the arch/x86 maintainers" , "Dr. David Alan Gilbert" 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 On Mon, Jan 29, 2018 at 1:50 PM, Eduardo Habkost wrote: > 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. Giving customers this option promises the logistical nightmare of provisioning sufficient pre-Skylake-era machines in all pools until sufficient post-Skylake-era machines can be deployed to replace them. >> 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