Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp4664462rwb; Tue, 17 Jan 2023 04:03:03 -0800 (PST) X-Google-Smtp-Source: AMrXdXu7li31WHugeXd0AU+6Yjltcnglvmy9x8yz631913iZI0AmQCx8x2hSNwDCUjET3YkpukyQ X-Received: by 2002:a17:906:855:b0:86e:f88:c098 with SMTP id f21-20020a170906085500b0086e0f88c098mr2885834ejd.70.1673956983150; Tue, 17 Jan 2023 04:03:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673956983; cv=none; d=google.com; s=arc-20160816; b=atJFzywHbDAp6t8Kn0T2nia3zzaTasei9AVSwW70aq07v0+Ri4JSf1/pji1JgTSb8H aElB6vnn6trLEcV7ZtH+ogFzheB64xZoBTHMXQVjx/bL1opF5or/u7T9VoyTLUNAvyr6 u6TnXWHY7to74v9WLbkm4sL92fTEO31jJ9+FCvbjpKv6IWSHo9G/+E+aj12kF7hobkR1 RwqX6LU1zJVCXTxjIXweWY43X1L8fGFz6gbQUFEUl/v/EzZRSPFOcuIc21z7jVgyqqaw ShSlemUWJUwvG+JWqBUH+8/zl9OJpKZMUmgHm2d9uNJXmpCafTs9L+9zJJt88WyDfH+E uxgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=EzEq0Nv/DDJ1PRGvIJ8dUuiGUaHmCTgowpM6A+bZV48=; b=z7LntrrGh2k1c5fL+nZqhiVp2ExgqyYT9brzGhKfUnV7pe3WQ/vJcfVhWNIYNAk4X4 Qx8ZH+BWTpKUqlro7FaTLUyLPGpsKFF487a9bQ+loeRmtP9jr+kZSndOjfr+ecmZ4NSS TjBgyeoyMzSTumzX/nDG/QJcA7OmBGOMxwqseEyOMwjQGNMYw+RF3qEBFdrl72LjA6EC 3wkwpYixkI6ch4Xpc0VoidIuR44FapTCH+deEYB9XWQqIezDrl+lup37zafDYuKZKthX 4AAUVgLlzmw49QNal89D36k6ACyX7yJNEwRvpLHjOX85psw043jX2gSATbYGfrF8AhA0 CDKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=DbSYv0J7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id he14-20020a1709073d8e00b0085d6d5c0de2si24645169ejc.593.2023.01.17.04.02.50; Tue, 17 Jan 2023 04:03:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=DbSYv0J7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236944AbjAQLzJ (ORCPT + 48 others); Tue, 17 Jan 2023 06:55:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236893AbjAQLy7 (ORCPT ); Tue, 17 Jan 2023 06:54:59 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECD0732E62; Tue, 17 Jan 2023 03:54:57 -0800 (PST) Received: from zn.tnic (p5de8e9fe.dip0.t-ipconnect.de [93.232.233.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 7D9C31EC05F1; Tue, 17 Jan 2023 12:54:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1673956496; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=EzEq0Nv/DDJ1PRGvIJ8dUuiGUaHmCTgowpM6A+bZV48=; b=DbSYv0J7+Weay6rxHomE8SkUNrWBXRpDfz8ErjXf/A2VDmLZ+Zgv8MikctMsn/eGzYHTFl OS8uLfvGRyf5A6dUIvBI+70YBbP7UatR2Mz6xKnNQelg8GsPzhbppZcUw96Q3bcGCWxGb/ gkLT543mMMKjUSMYDp6vCBL1YEgIuA0= Date: Tue, 17 Jan 2023 12:54:48 +0100 From: Borislav Petkov To: Paolo Bonzini , Sean Christopherson Cc: kvm@vger.kernel.org, Kim Phillips , x86@kernel.org, Boris Ostrovsky , Dave Hansen , "H. Peter Anvin" , Ingo Molnar , Joao Martins , Jonathan Corbet , Konrad Rzeszutek Wilk , Paolo Bonzini , Sean Christopherson , Thomas Gleixner , David Woodhouse , Greg Kroah-Hartman , Juergen Gross , Peter Zijlstra , Tony Luck , Tom Lendacky , Alexey Kardashevskiy , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v7 0/7] x86/cpu, kvm: Support AMD Automatic IBRS Message-ID: References: <20230116230159.1511393-1-kim.phillips@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230116230159.1511393-1-kim.phillips@amd.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 16, 2023 at 05:01:52PM -0600, Kim Phillips wrote: > Kim Phillips (7): > x86/cpu, kvm: Add support for cpuid leaf 80000021/EAX (FeatureExt2Eax) > x86/cpu, kvm: Add the NO_NESTED_DATA_BP feature > x86/cpu, kvm: Move the LFENCE_RDTSC / LFENCE always serializing > feature > x86/cpu, kvm: Add the Null Selector Clears Base feature > x86/cpu, kvm: Add the SMM_CTL MSR not present feature > x86/cpu: Support AMD Automatic IBRS > x86/cpu, kvm: Propagate the AMD Automatic IBRS feature to the guest > > Documentation/admin-guide/hw-vuln/spectre.rst | 6 ++-- > .../admin-guide/kernel-parameters.txt | 6 ++-- > arch/x86/include/asm/cpufeature.h | 7 +++-- > arch/x86/include/asm/cpufeatures.h | 11 +++++-- > arch/x86/include/asm/disabled-features.h | 3 +- > arch/x86/include/asm/msr-index.h | 2 ++ > arch/x86/include/asm/required-features.h | 3 +- > arch/x86/kernel/cpu/amd.c | 2 +- > arch/x86/kernel/cpu/bugs.c | 20 ++++++++----- > arch/x86/kernel/cpu/common.c | 22 +++++++++----- > arch/x86/kvm/cpuid.c | 30 +++++++------------ > arch/x86/kvm/reverse_cpuid.h | 1 + > arch/x86/kvm/svm/svm.c | 3 ++ > arch/x86/kvm/x86.c | 3 ++ > 14 files changed, 71 insertions(+), 48 deletions(-) KVM folks, I'm going to route this through the tip tree, along with the KVM bits. Holler if we should do something else to avoid any potential conflicts. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette