Received: by 10.223.176.5 with SMTP id f5csp3672315wra; Mon, 29 Jan 2018 17:23:28 -0800 (PST) X-Google-Smtp-Source: AH8x226587mAWKbfJYW+mdU1zrBBkul5K4jDZRmxaZmxd0255+EZldGI44SQvCs/MaBDgj6vWVV0 X-Received: by 2002:a17:902:ab93:: with SMTP id f19-v6mr23982879plr.10.1517275408736; Mon, 29 Jan 2018 17:23:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517275408; cv=none; d=google.com; s=arc-20160816; b=qabSg9MVHogbNa3BOmtzCB44xubEuutQgT6VTnNSpeG7fTa++rxhKZvqSrlypY7RzI ePjVkUYlbotLMX1YCzgjMAlOAZwodq3A24lpJe2qcVwa2BqcBaCIB7kjL7/0k7bAlTrs CjtViq2CIoR3mjlWhGnySk+2FUDkxkN85J8fXXmqVhM2C10pVb7FNATD9nOjV9QqTp+Z +SsKdB/7SQN5NfaDCz2g0viuxw/0ywJFbkC9S3gwyBitUeq1hMeSdubGS/AaFNjq9V5+ krSzCi9Dm4+JZRY42X78Pf9MCDiTlTUvpxsCI9RbzjF7L9uQzOLNUgxyP/rJ0zahQiY1 q2SA== 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=KBUTwWcEKi70z8/2G4byljHy+a7LHteKAk8bgq6FMM8=; b=GkZb8Vs0Fs6EPSLM5rP0f6wj06Y99Zoh+fhJP454aDH4Jyi3vrDjIfJYHhcz4Wn9s2 6zGfLR4ksoTqtEKnTifE4807aroTwoWt+yHx2HduScVPRdXp3vgXatShRG45Ca7qIbrv aQF9B7Ut/bfhef8isJPEZM+b/FzabA6eN63XAtSN+FUz6KJ2IQrsuKj77eIktItSa2KP jF03S5XBb+onYBRe0OAGn2pmZtCbm09/QTIP0QjwjkR6RPWzVawNQSlbB4awrnyS5Ydf ckPebEL8ICu51KAP2alLrt7uk68gYjveXHFbFuUF5VLW0nrzD9k+EBeh3GwFrv+Agxcw eO9A== 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 r83si13028065pfd.355.2018.01.29.17.23.14; Mon, 29 Jan 2018 17:23:28 -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 S1752302AbeA3BWu (ORCPT + 99 others); Mon, 29 Jan 2018 20:22:50 -0500 Received: from mx1.redhat.com ([209.132.183.28]:40424 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751448AbeA3BWs (ORCPT ); Mon, 29 Jan 2018 20:22:48 -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 9ED334DD49; Tue, 30 Jan 2018 01:22:48 +0000 (UTC) Received: from localhost (ovpn-116-57.gru2.redhat.com [10.97.116.57]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0CAB560BE0; Tue, 30 Jan 2018 01:22:47 +0000 (UTC) Date: Mon, 29 Jan 2018 23:22:46 -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: <20180130012246.GD21702@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> 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.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Tue, 30 Jan 2018 01:22:48 +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 02:12:02PM -0800, Jim Mattson wrote: > 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. If this is not practical, the hypervisor can simply choose to never make any of those promises to the guest OS. Never implementing any of those bits is also an option. But then guest OSes must be aware that the hypervisor can _not_ promise that f/m/s matches the host CPU, and can _not_ promise that the VM will never be migrated to Skylake CPUs. -- Eduardo