From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3EAFBC05027 for ; Tue, 24 Jan 2023 01:19:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232677AbjAXBTF (ORCPT ); Mon, 23 Jan 2023 20:19:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232732AbjAXBTC (ORCPT ); Mon, 23 Jan 2023 20:19:02 -0500 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF98F126D4 for ; Mon, 23 Jan 2023 17:19:01 -0800 (PST) Received: by mail-pg1-x52d.google.com with SMTP id 7so10352984pga.1 for ; Mon, 23 Jan 2023 17:19:01 -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=rOxlYQn5IVTbZcsZT8BtGideAkmVidS2Y3/OPz6N7C0=; b=eXFHzJcyhOw7VhLciS/S1ypBXdK588msqu3ys98NiGGmaI8RAljiz8T6BCKnQppN6m z12tOKl7GPpJ0efR4Qetye6eByjbqr+OgwmY23AwF0cj7XXwUfqmwKP+PDOC19PSC9OZ 2iCcaMAHTb7CokUSejoDSOy6O4fifCsq/63ArbQYuOhuk7x2HaCDTaBi/IsY5bHE93hr b4Wdm5KCDkdnoVDWs4oKnLtKvkCwQj62BRrsm7cfedwpEOCNqHlp1BFGiuX99myu/RuX PmPN2ntZnHqE50voa+YCcx3HfKQAjuhkAE/QJUg8SRbrPDuZ/nE3DVkMboUL1qqV4C0B jWsA== 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=rOxlYQn5IVTbZcsZT8BtGideAkmVidS2Y3/OPz6N7C0=; b=4vuO0AAnniuVzLBf8xWlLKoi5H1cUW6oStkhTMNXEHllHwrZWBaNEq14vMZl+rioDH nWT1ofJS0K3DIVnSh7gtHlk7AKaWidLqa+ydv5ocNVZP9eU+oJ+fTTud8qd2pCSvEyUC JLvO+HxXb7R4A8fHzzDodSzTsMW+xNf29+jAVpRynXNxGtA0Z1frQtq/rdVQBtQtYc8w yWhbD+5Nk5Nui7VyLoqfwwCjCpr8fVBdYYHl22l/CfXKpkV6it9ZvHFR0T/HeKNdREVY m/QPTAIJj/c4nmtx2zgGBSuljApcTg/fJAnY8HcK/mFEfhTOfRGWiJRZheqbtBCwhBDk PPeQ== X-Gm-Message-State: AO0yUKWqQhB7ZfUM/dbiHIVKutIbpLpJS632UKoujrps6KthpOsDdbr8 8U4DzQj9GJcODk8x4ypxJMb7Iw== X-Google-Smtp-Source: AK7set8MB8x5JTZulDndzboujvV5nEoTMycNiopxs/kJ16Via3RHL9uyHhOy++u9vGcZVbFW0KsmgQ== X-Received: by 2002:a05:6a00:134c:b0:581:bfac:7a52 with SMTP id k12-20020a056a00134c00b00581bfac7a52mr11256pfu.1.1674523141203; Mon, 23 Jan 2023 17:19:01 -0800 (PST) Received: from google.com (7.104.168.34.bc.googleusercontent.com. [34.168.104.7]) by smtp.gmail.com with ESMTPSA id c9-20020aa781c9000000b0058de2c315e6sm218413pfn.158.2023.01.23.17.19.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Jan 2023 17:19:00 -0800 (PST) Date: Tue, 24 Jan 2023 01:18:57 +0000 From: Sean Christopherson To: Kim Phillips Cc: x86@kernel.org, Borislav Petkov , Boris Ostrovsky , Dave Hansen , "H. Peter Anvin" , Ingo Molnar , Joao Martins , Jonathan Corbet , Konrad Rzeszutek Wilk , Paolo Bonzini , Thomas Gleixner , David Woodhouse , Greg Kroah-Hartman , Juergen Gross , Peter Zijlstra , Tony Luck , Tom Lendacky , Alexey Kardashevskiy , kvm@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v8 0/8] x86/cpu, kvm: Support AMD Automatic IBRS Message-ID: References: <20230123225700.2224063-1-kim.phillips@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230123225700.2224063-1-kim.phillips@amd.com> Precedence: bulk List-ID: X-Mailing-List: linux-doc@vger.kernel.org On Mon, Jan 23, 2023, Kim Phillips wrote: > The AMD Zen4 core supports a new feature called Automatic IBRS > (Indirect Branch Restricted Speculation). > > Enable Automatic IBRS by default if the CPU feature is present. > It typically provides greater performance over the incumbent > generic retpolines mitigation. > > Patch 1 [unchanged from v7] Adds support for the leaf that > contains the AutoIBRS feature bit. > > Patch 2 moves the leaf's open-coded code from __do_cpuid_func() > to kvm_set_cpu_caps() in preparation for adding the features in > their native leaf. > > Patches 3-6 introduce the new leaf's supported bits one by one. > > Patch 7 [unchanged from v7] Adds support for AutoIBRS by turning > its EFER enablement bit on at startup if the feature is available. > > Patch 8 [unchanged from v7] Adds support for propagating AutoIBRS > to the guest. A few nits, but otherwise looks good. Thanks!