Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1921588rwb; Thu, 19 Jan 2023 17:53:01 -0800 (PST) X-Google-Smtp-Source: AMrXdXtyLS2zhVdMGK361Is/bWIUVdWS78UzBdarfyL3/69L5wa2gFQCIyBhCfPxb8PjTqvZMxZm X-Received: by 2002:a05:6402:28ca:b0:499:c294:77af with SMTP id ef10-20020a05640228ca00b00499c29477afmr13165781edb.12.1674179581380; Thu, 19 Jan 2023 17:53:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674179581; cv=none; d=google.com; s=arc-20160816; b=qvsSpobFvHsZv5jil+I7LEolP5QbQX+D8WeX+dnfMoWwPYFKDgfhM4sBx7ekuVK6vq FaG6nw5zZm9UqvNEL1cs5pj4KCT/IVDI7bsNWCABCtU39O0pjCMhYRPsbmsGX3hSw9Mz C6Yma9lwPKr488oBFykC0Ndlb9XOnSuLPN9HHwOsryqm7iFRmYQw8DY4tEaekTV1/eaB aWmp/qARammEOQ53UK9aC7C/J3fD+TKcskbrqFKskDnZ9Yso5tC+jCzivvZfQj6UuBum GHvJU7Fcu+2wtV9WW4t/lSxx472lK9WKvzKM4iHwI7bngnohL0uYsbqPRJE+vjJYa7xH YhHA== 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=Lg0CzDuQy4V1JV2pIlemk74MHa85PjPJTHngrqfHjrE=; b=aPDM2SG7DwB00Ea7JXqzjGPggyGfCc894cuAlmWLtuHidrz/enjmrOzDszF016KbLg 4Uvy7f+kNOZy6RX5RAL8+btGST2SendWhy2/p+KPQojR1WZvhpHg6xuOgU5K+s5CqhHH JG/TRquLJzSEysiz8C+6yUQ3QyzA4qjilnKfkgoaFb+nAfdAaQnkqw6KBx3avtmyfXm5 0Oh9I+EQva/1vWgVnopqpZeIvyjl4A/n/xzxcNLB89s/fF6gaDPNH8eqkvjohjo0mu3J j8OwwVfRHL4stvn9EAp89pzDYlhmVLkovJfepTYGwPqDf4yNl7WZrxzu9820h1rJalNg 9gkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=ImZO6fhq; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b20-20020a056402351400b0047d7499c995si48391545edd.134.2023.01.19.17.52.48; Thu, 19 Jan 2023 17:53:01 -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=@google.com header.s=20210112 header.b=ImZO6fhq; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229447AbjATBkX (ORCPT + 46 others); Thu, 19 Jan 2023 20:40:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229492AbjATBkV (ORCPT ); Thu, 19 Jan 2023 20:40:21 -0500 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57CB79EE24 for ; Thu, 19 Jan 2023 17:40:19 -0800 (PST) Received: by mail-pj1-x102e.google.com with SMTP id lp10so804465pjb.4 for ; Thu, 19 Jan 2023 17:40:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=Lg0CzDuQy4V1JV2pIlemk74MHa85PjPJTHngrqfHjrE=; b=ImZO6fhqVqvCqs7rXFaCOuWNTnnC9RvQXYi9jvRLJEucdXDUti7JkfHu8O7Jl0o1GR +2I8c9hfOjkyjtdGDJYnmeqRq+CZCntKqF/JgZKW3QCMWkTkodvRvyA6NehFi/fNR3JR q5vS5fZwKy7YcH0ChMeMVdcGr2HFhMgWJGSw7hGGFEgmghvWJ4WYsqA5bnIfUDAJCoDP FwTqdndfEXhPnjjsPP00SboMIZGbc8abyDGrB7OwQri1BMYBF6e1DCtOrs+y4cyJKnkf g7z3MLrTGb9cTVHMZQkXmHC6qF610iMQCpr0zmjZ3iQ16ASnhWUzl5F9fg94FHRmVKaR DpJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Lg0CzDuQy4V1JV2pIlemk74MHa85PjPJTHngrqfHjrE=; b=i1NQ+PISgEvjH9xXutcmL6w2s0wJnPW/vZ3GSmyY0og3pWIwPxnxDksyHLOWWPxxq2 KXx//JGdtDurAxtXVpiPHRAKlJruIgpRiR3IZUvSRe9w+dF/zVu/9K664sR54n0OTC0i WeDqBaLPbgrV3j8VNsILbQQYDDYkEIrf5j4RSdS404UQAv2c5EycjtyZfczNgN7q/YTd tzdc5kS1qJYOXON/uPqRNdcD3tXSizDKekgyQR/qhW/43mqSRI3X9AFDlXdfgNHL0Wav ZLoTBid2ng7lyT6OIpo70BuS8aeyoiW90X8ZJJZey+x7bn4lbD4bPFHpx67OP0ckz18Z bEsg== X-Gm-Message-State: AFqh2kpM/4VqLcB19rRwAyOMzsOQEWfT5dTj3jMxzm1oaWO5NQTuc4tU vr5c6obvf5pZQ0GkFLyCrxIg8g== X-Received: by 2002:a17:902:eb45:b0:189:6624:58c0 with SMTP id i5-20020a170902eb4500b00189662458c0mr10964pli.3.1674178818663; Thu, 19 Jan 2023 17:40:18 -0800 (PST) Received: from google.com (7.104.168.34.bc.googleusercontent.com. [34.168.104.7]) by smtp.gmail.com with ESMTPSA id 35-20020a631563000000b0044ed37dbca8sm21340893pgv.2.2023.01.19.17.40.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Jan 2023 17:40:18 -0800 (PST) Date: Fri, 20 Jan 2023 01:40:13 +0000 From: Sean Christopherson To: Borislav Petkov Cc: Paolo Bonzini , 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 , 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=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable 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 Tue, Jan 17, 2023, Borislav Petkov wrote: > 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. Sorry, completely missed this. There will be a minor conflict in KVM's reverse_cpuid, but it's trivial to resolve. I don't anticipate any other conflicts, so taking this through tip does seem like the best option. If possible, a new version to fix the bisection issues in patches 2 and 3 would be nice, but again it's not a big deal. The breakage is very, very minor.