Received: by 10.223.176.5 with SMTP id f5csp3684190wra; Mon, 29 Jan 2018 17:38:29 -0800 (PST) X-Google-Smtp-Source: AH8x224LKoQ8z/x/lmNqvFuXcwLM2g7eg5CTBIKDsVebd+d8DJwrPLszdFHWdnbasHbLVjMsZ5av X-Received: by 2002:a17:902:148:: with SMTP id 66-v6mr15159115plb.266.1517276309201; Mon, 29 Jan 2018 17:38:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517276309; cv=none; d=google.com; s=arc-20160816; b=eXol3G3pZunLdtVdLu5HgdTam2vwTT5tzgX1AKjdCySr7RzmbMVtrBwvk1f4IeYII6 CiNJlTlVkAbGAooOOb2XOucAZ3QeiAXcEqEJTacKjBrpv8EHFe+HrzGJ9oMUm9a6/XZU ibRW2orCgxunsN0L4YxQS49LopZC9kkRXqp+hVmgvPqqekyvyC3B85C7nOLYwdX1sqWL kvfqeNGT8fMoGAerX6ox7RPlx7AhyoPwan03CKQntYT2efWWTnMVxZT2OgSX35CBx8X6 oo0APPRFl9gQcnYJs5JIYD12SM3o0mDNa0ct5MLxf1ZPfM0DiD4oJI6gxGjPBWV+tMFG FE7g== 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=ucJLcSEetWtecZj3/Gkjtp7eRLwmHlBKI891jLvDeA4=; b=pwfwYReCTNXSJGnwhj0lsjl91yt/SLiMhZefcQ2D5X+G+6UTY1BXdxEbX2hI4XuuH4 WXLarhqJvQjED1U+CFXwZGlOF251jKw13KfY9VEZOGCCf0+1UiO+/NlgyhklduaOSNk4 dzHQU3/Sg8zXqfNkCjMAtVEapOeiGV5LdVn9gRfaSlJ8XctOoZlr4OHclJa0LrHps2jh jXS8MkVEez7EUgXRQ12+I7RmY4coirCQyKvBcfWt+4bhr0I731oihboRlXVrVLuwAbzR EZuoGzDxhbTe7Nio4/kI9FVHHUpaWrMt5MT+qWfJkvzGWMZmMEOC8Dpgmv5nPG2x8oia judg== 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 m197si8150328pga.206.2018.01.29.17.38.14; Mon, 29 Jan 2018 17:38:29 -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 S1752302AbeA3Bht (ORCPT + 99 others); Mon, 29 Jan 2018 20:37:49 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49148 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751539AbeA3Bhs (ORCPT ); Mon, 29 Jan 2018 20:37:48 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B195E28202; Tue, 30 Jan 2018 01:37:47 +0000 (UTC) Received: from localhost (ovpn-116-57.gru2.redhat.com [10.97.116.57]) by smtp.corp.redhat.com (Postfix) with ESMTP id AFB3E608FA; Tue, 30 Jan 2018 01:37:46 +0000 (UTC) Date: Mon, 29 Jan 2018 23:37:45 -0200 From: Eduardo Habkost To: Andi Kleen 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: <20180130013745.GF21702@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> <20180129222512.GT26209@tassilo.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180129222512.GT26209@tassilo.jf.intel.com> 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.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Tue, 30 Jan 2018 01:37: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:25:12PM -0800, Andi Kleen wrote: > > 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. Why it isn't an useful result to enable the Skylake workaround if unsure about the host CPU? > > 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. It's already possible, until we find another bug in another CPU model that also needs to be worked around. We can't represent "please work around bugs in both Skylake and Westmere" in f/m/s. -- Eduardo