Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2083546imm; Tue, 10 Jul 2018 12:59:19 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfLV+SeaTSX3KAoq9t+uNVfeoEtj8Fj+sbdn/BVVAjCHXf5KCZspxPjqQXbHTsddVS1R8dg X-Received: by 2002:a17:902:5a83:: with SMTP id r3-v6mr25507202pli.78.1531252759444; Tue, 10 Jul 2018 12:59:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531252759; cv=none; d=google.com; s=arc-20160816; b=uZ3cghGxAUsggWAfwk4fCGyRucIQdDulAkrpjumYCwP//rueZK5CnMKvXP+U3zV1TO V22uXOGQ0PxZV3XYIRJMf33Hht5betCrVqxFtC74cChZvGCTkE+cb0T88L9kG8awqhJ2 YnQERbuimZnkxT5CguY9qNhbPauUXCnxtdV9L7YuUojOoxlRBcVR6FncRe5J14qDTVLO CKC67IWT+Vua35mu4OgbqAlNhMOSz/FBqItrij5xTUYVzpo6jhRM4eUgiXc9giGeu7xR 3i3baLfnS5MqTgwG6krUfif7vqt0APWz6uy5QNG+A5xdpBKdJR1PhYqVhN9bvAa8PHXI IUrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=6ZA3/7aXstZpzhH1UVbvdogjLFFCjhP07kTvnQtOV7g=; b=pG6FTkbbzeqV9jxZMp2qiqRJVRfyL0KyCs7IHaaDerMnItTAqQ6fJaUK7pmOkoJfH1 BqyOG14qnpdumi7up/tGfNIeWiEVdAyj1Wb44kxdBQrQWBsJ6GkCt6U3WPA3AQEWba0K AIFUKlELqAlEEAxkr6gC9imce26WuljzqEJWSRDAZ1owqMEzNgemT+dlfpCe1Rf9/jD0 dsExWlyWwvLGYb7WVpnCl6Tvnkn0moOYhYPOn4oHB3X5aE9FdgFk4qv+51V6JTvOU2Yk EKLdwZAf5+aX574QaJFoyPWH2zfSCFYJIHR/ekK9id6xS6f/rFtbK5gXEvd0ZtgPV9Im hBvQ== 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 143-v6si18828250pfa.178.2018.07.10.12.59.04; Tue, 10 Jul 2018 12:59:19 -0700 (PDT) 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 S1732736AbeGJTsT (ORCPT + 99 others); Tue, 10 Jul 2018 15:48:19 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:37655 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732205AbeGJTsT (ORCPT ); Tue, 10 Jul 2018 15:48:19 -0400 Received: from p4fea482e.dip0.t-ipconnect.de ([79.234.72.46] helo=nanos.glx-home) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fcybf-0007GC-B9; Tue, 10 Jul 2018 21:47:27 +0200 Date: Tue, 10 Jul 2018 21:47:26 +0200 (CEST) From: Thomas Gleixner To: Dave Hansen cc: Fenghua Yu , Eduardo Habkost , Ingo Molnar , H Peter Anvin , Ashok Raj , Alan Cox , Peter Zijlstra , Rafael Wysocki , Tony Luck , Ravi V Shankar , linux-kernel , x86 , Vedvyas Shanbhogue Subject: Re: [PATCH v2 1/4] x86/split_lock: Enumerate #AC exception for split locked access feature In-Reply-To: Message-ID: References: <1530282807-66555-1-git-send-email-fenghua.yu@intel.com> <1530282807-66555-2-git-send-email-fenghua.yu@intel.com> <20180704200742.GD7451@localhost.localdomain> <20180710184506.GA37857@romley-ivt3.sc.intel.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 10 Jul 2018, Dave Hansen wrote: > On 07/10/2018 11:45 AM, Fenghua Yu wrote: > > On Wed, Jul 04, 2018 at 05:07:42PM -0300, Eduardo Habkost wrote: > >> On Fri, Jun 29, 2018 at 06:23:35PM +0200, Thomas Gleixner wrote: > >>> On Fri, 29 Jun 2018, Dave Hansen wrote: > >>>> Is this MSR not really model-specific? Is it OK to go poking at it on > >>>> all x86 variants? Or, do we at _least_ need a check for Intel cpus in here? > >>> > >>> That definitely needs a vendor check. Also the whole code needs to be > >>> compiled out if CONFIG_INTEL=n. > >>> > >>> Aside of that this wants to be enumerated. CPUID or MISC_FEATURES and not > >>> this guess work detection logic. Why do I have to ask for that for every > >>> other new feature thingy? > >> > >> Yes, please. KVM hosts normally expect guests to not touch MSRs > >> unless we explicitly tell them the MSR is available (normally > >> through CPUID). This is important to ensure live migration > >> between different host kernel versions works reliably. > > > > The problem is the hardware design for the feature is complete. The > > hardware designer cannot change the feature enumeration to CPUID or > > MISC_FEATURES. Setting a fricking bit in a CPUID leaf or in a MSR cannot be done anymore? That's just hilarious. > Let's be honest, though. That's not *hardware* design; that is a > microcode update. We've seen what microcode updates can do _very_ > clearly with all the security issues. We (Intel) can surely fix this if > sufficiently motivated. No? Amen to that. And please tell your hardware people that they should stop creating features which are not enumerated in one way or the other. That's just a pain all over the place. Boot code, kernel, virt, tools .... Thanks, tglx