Received: by 10.223.176.5 with SMTP id f5csp3535080wra; Mon, 29 Jan 2018 14:51:04 -0800 (PST) X-Google-Smtp-Source: AH8x227kJZoliSxsyRYS+YHWI5Wp79ZPiL7gJUwAkvPN/SUHWtNL7JM2V2R+ElhE74M2DnWNPBq1 X-Received: by 10.101.76.193 with SMTP id n1mr21315408pgt.194.1517266264449; Mon, 29 Jan 2018 14:51:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517266264; cv=none; d=google.com; s=arc-20160816; b=GZ4RPdWfiVnPdSwhPEkXMO9GpPulVoaoYH8Bowpc61K/e6B+SQ6CGIdbM95Y9XiHKZ 6YtmjuFsm4vvur0+V2Huk96qhrSHHfquNYujKX3Cbq4vGnJ1HtrlTLjLwoLHJnNyVZed 2j3uMzHmanfudbVtH7WM5hV81xRiZknHpZR7cRLdbHuUnEKE5HgrZTMmdHem1Gir25/W 4YuDQtdQJZ7E+1LF+zJOc38dUu8DDnrMz8wHSgfVJFQGi/O2NBpR5MG6XXlmzzQvZoPn 8jAS64osGNutGDO0UqO17rM64YqOtIGt/A08YpxEc/7qGs0z9lwjDsWo5bhIpwTJAJPy Uq9g== 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=rh3hZIiXp8NN1lkXWujNXeTG0QGlxrZK8JbyZZVPD7I=; b=m7sagflHwIvtsTFfouWp5GM3CWYqMLp1A7aZS41359yU9zq0BHPWZKyzz8UBzMjHYL B5emiJkB+EaKIVNhvzb+3ogkUe52TWBVxhnxDYlju7JvuWeukNJ9FGFlkxpWjuVRsrm7 fZNhvlaZEofNgq2w67ffN+D/rdR1AJsuY2EPN/DIR/ZP2MyQhZSazqnK1hMY+EnfySbM aU27d68VZYbrAlQqGbqiU5XgC22ly/vfF2thPOzdw1uXv24iMdIprA5OTNzsXruK/g9f dMsZc5Pkuo0akTOl/KYlMUCUNspqkSkMPFa4yjG9iDZUfGv0GGOtlT6V9wkmWTViLF5s 7TxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=DvUHHejB; 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 s134si8069160pgs.301.2018.01.29.14.50.49; Mon, 29 Jan 2018 14:51:04 -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=DvUHHejB; 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 S1751896AbeA2Wtz (ORCPT + 99 others); Mon, 29 Jan 2018 17:49:55 -0500 Received: from mail-ua0-f179.google.com ([209.85.217.179]:43175 "EHLO mail-ua0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751510AbeA2Wtx (ORCPT ); Mon, 29 Jan 2018 17:49:53 -0500 Received: by mail-ua0-f179.google.com with SMTP id i5so5809126uai.10 for ; Mon, 29 Jan 2018 14:49:53 -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=rh3hZIiXp8NN1lkXWujNXeTG0QGlxrZK8JbyZZVPD7I=; b=DvUHHejB05bQe6qcgRWI8+n5AnRrl6lrxKCYYTFsHzrgGUHqmOBuZW+xlvQNyoHBvl 4hxwVtLlhkq3J1o05rOPOYnLwLU8pCc5nPk776wcQ6l60qPIFpwZswoygopg1NcN6nXW a2q+JojXipq8T9Wow1N3bp1L0H0IdAtLur8IOOBbGJ1rpPn8VlcwJ2A+EbLfrN0wiMu0 4Acw+M3jrqjW2qKZtfMU7q8tl+YN5eEL80nd/2Nxtx5zP7Q8FbVBOWoY1IXm9tmbQwah ugQkcG+aJfww8xXWKoawbA/2qgCnWL6KHCqu94x9t1fj1uS1/Nvvd6FWKkeXPIcMl5Pj ODtQ== 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=rh3hZIiXp8NN1lkXWujNXeTG0QGlxrZK8JbyZZVPD7I=; b=K7u9HMZ+4uykyT0S8GuIG/tbY3aJ7/qSyDP+mcmkk24noIjoq1EEe6z1ovU8eQWhVm OI+cITGu1Xdog4okQyOB3krd2FHuXa9cso3nPLIe6FjSt0Le6/QZNzeYsmzESYmHo0d2 3FusaawuHA2mXEJiJ8HOATpnQvf42qaLUQB+54rigdzeCS9cr57sSf5kFTaY4dgKqWxD kjBRA9Jgndru1fXN8eFRuMvyQxbC1/AATCURDumCX3aVyVbOuE9UVjIhQBiywt/IXPze eWWdXMqD8EfIfPOI3TjLdaKv9Owf36W8ZXNss9cLQN8zukCRJpvCpfHYtZGlKqHL1dIe ziUw== X-Gm-Message-State: AKwxytddyjcjPAmHctJmq8B3I9PEp6ltRThCcM6ir/f6chbTeiP3zOor waxVyQ6ip/9Kw4vjiUqSKsFI/FwIl2QMSXnEEQMu5g== X-Received: by 10.176.10.22 with SMTP id q22mr21738280uah.89.1517266192191; Mon, 29 Jan 2018 14:49:52 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.124.200 with HTTP; Mon, 29 Jan 2018 14:49:51 -0800 (PST) In-Reply-To: <20180129224124.GU26209@tassilo.jf.intel.com> References: <7EB9643C-D2DD-477A-90DE-05DC653D2D4B@vmware.com> <20180129224124.GU26209@tassilo.jf.intel.com> From: Jim Mattson Date: Mon, 29 Jan 2018 14:49:51 -0800 Message-ID: Subject: Re: [RFC,05/10] x86/speculation: Add basic IBRS support infrastructure To: Andi Kleen Cc: David Dunn , Eduardo Habkost , 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 , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , Thomas Gleixner , Tim Chen , Tom Lendacky , "kvm@vger.kernel.org" , "x86@kernel.org" , "Dr. David Alan Gilbert" , Fred Jacobs , David Woodhouse 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 And if we expect to introduce Cascade Lake into the pool in the future, we use a Cascade Lake model number? It sounds like you are suggesting that we set the model number to the highest model number that will ever be introduced into the pool, at any time in the future. That approach would also fail the 'is_skylake_era()' test. (Not to mention that we have no idea what Intel's highest compatible model number will be.) On Mon, Jan 29, 2018 at 2:41 PM, Andi Kleen wrote: >> Even if we expose bit to indicate that FMS matches the underlying host, when does the guest know to query that? The VM can be moved at any point in time, including after the guest asks if FMS matches host. > > There's no way to enable these mitigations later, so if you always > have to enable the super set of all the mitigations for all the hosts you > might be migrating too. > > As of currently that means if you want to ever migrate to Skylake you should > set the Skylake model number and you're good. > > -Andi