Received: by 10.223.176.5 with SMTP id f5csp3511982wra; Mon, 29 Jan 2018 14:26:14 -0800 (PST) X-Google-Smtp-Source: AH8x226EtkBIGqoX3mI3p53p2B/13jFiolsjDnsvWj885ChhlVLVrBkK8WwGQFvFCjc5wtyNcvkv X-Received: by 2002:a17:902:25ab:: with SMTP id y40-v6mr24185762pla.140.1517264774029; Mon, 29 Jan 2018 14:26:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517264773; cv=none; d=google.com; s=arc-20160816; b=Iq38d4r580l8MYlVSPZ2NSFpSkN9cRqnEx5dN9MSrRCBkSLdORd2uKKG3V2pZ4NTUe GobQf+s7KNxnyqPiHLQW0LmolkdMBGegLGEgmwwXgnDrzHBZjgOGzzMz6qr/wHU2JT7T b1f3W0pfc8T+xh9MEsDZqRLDPMGq+z4Swu9U9PX3CdgGS1YUPZnllsca3kmeMnS0btF7 ynEGzgeFjwXP23IyI9Ce14AGQSEkgJPeQY6egGaWN7xtKzPvcBnRa9FUSbGGAgd/qhAx uVIAVUn0mZJZofz6fgXVGl8CG8W51l2lcSlkgVe56vyGDCp18twTuvLPZALmiy22Gri6 f+1Q== 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=IGwE+63RGW5QADyq5ChPUnreXOXBk3bjqoL4jh5APp4=; b=tS3aTMJQdO9uZ5Ljat/Udz2PIMFTHxmxKJno4i02AOTYZkQaRLvpRt1sGMw3h4ZaRP paWYLhhKpdIHpbQlFkj2uV3GBOTJHj0+7DoZrzs+jpH+xyiWI+zBdzXO2KHRm5GEmJwD pfB1IT9SrdMmgg8E+kjEd5zpxZWg2K+HDIrEjIia7PvGsmU4yRx1Ub72wgvzwSj7Usv6 /b5XkfMkWE7O7nnNPeeVXcw2G6I6vYJ8ln7wZUO5fvB4SZCgvhu9p0cHbCSVXLdGE/V/ 6D4CXTXR5PML1y+EHuz0j3Wk7Ltmq9h5j8VLpGFB58NtTCAHc3/OgTsSgG5/ZqL42+BH eweg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t10si688856pfk.153.2018.01.29.14.25.52; Mon, 29 Jan 2018 14:26:13 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751608AbeA2WZY (ORCPT + 99 others); Mon, 29 Jan 2018 17:25:24 -0500 Received: from mga11.intel.com ([192.55.52.93]:8872 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751398AbeA2WZW (ORCPT ); Mon, 29 Jan 2018 17:25:22 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Jan 2018 14:25:22 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,432,1511856000"; d="scan'208";a="14024316" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.35]) by fmsmga008.fm.intel.com with ESMTP; 29 Jan 2018 14:25:21 -0800 Received: by tassilo.localdomain (Postfix, from userid 1000) id 38081300A86; Mon, 29 Jan 2018 14:25:12 -0800 (PST) Date: Mon, 29 Jan 2018 14:25:12 -0800 From: Andi Kleen To: Eduardo Habkost Cc: Jim Mattson , David Woodhouse , Arjan van de Ven , KarimAllah Ahmed , LKML , 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: <20180129222512.GT26209@tassilo.jf.intel.com> 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: <20180129215025.GX25150@localhost.localdomain> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I agree with your point that the common hypervisor practice to fake old model numbers will break some of the workarounds. Hypervisors may need to revisit their practice. > > 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. This would be only useful if there's an useful result of this non trust. But there isn't. Except for panic there's nothing you could do. And I don't think panic would be reasonable. The "Skylake bit " or "not skylake bit" doesn't make any sense to me. If a hypervisor wants to enable Skylake workarounds they need to provide the Skylake model number. If they don't think they need them because the VM can never be migrated to Skylake, then they don't need to set that model number. So there isn't any need for inventing any new bits, it's all already possible. -Andi