Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp1495124rwl; Fri, 4 Nov 2022 14:57:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5hyZCuylsTWLLbIxSghMj0pl8LKNzje6tyvi8qeZkr3CIDgQxZeiTt26Q8F7uaaAntzE/i X-Received: by 2002:aa7:c9c7:0:b0:463:4eff:a07 with SMTP id i7-20020aa7c9c7000000b004634eff0a07mr29636532edt.88.1667599038005; Fri, 04 Nov 2022 14:57:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667599037; cv=none; d=google.com; s=arc-20160816; b=SeuEV34IxELRlHN5b1QyuEx+i6Q0V28z/BNj9E8FPHWrva2Peq1GdWyA5XQSs9TsSq g+CO52DhXWKIVjrSUoDpt4PFsRUJpj8ybXr+AKTFTvGE0ZZK++Pxo1qxlFFxbyYX40WJ wo24MMzDHu3pP8SrUBAT5gQCahE2e3Zww0EIgIJX1fhzRtVnBqtu35OP2M5+Fly/GDPM C/q+CJmylUOpUb80Jt1AxY1aWTp0QPO9JYXKN1t1fHn1s0mE0jrBgafDf28zmLltEOdo fdFB52nKBrtWb2nhp8HZ/QTZjhDNFjuuYqH76zu+xX720h5pZO1N7J2NXho2BzjrzEXJ 7Xhg== 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=OY27dLdiYfuU1sMogPWR57JBMYDSBf0CGGnxQqALvZk=; b=txk3MPzlT9PIr7Oc5Vn6vHyaF8axhHW0O2uAHiNMG188kP2N+BAKX1pYzAFO5KbW1h MnT0x0hVRo8gPS5RRycA5+6Ra/lUt89dypD205PjMYYAPEBCzEI0KBXO9XCldHahv+iS 44dCeu8fHr+zFmRGroRXb73skQgGLp6dUPuSwniTPYveAYyMxyNlO6/exOV760iuGDt0 yOGLPBiE61Jm1iG/Z8xnsAkVBfFaAfhKcAt4bKEBOqpRoNULM+Akru8xWf5NjdU9D3f9 0uI2cNZCf8R3dvuEwBHbi6Cxoza33XqsPnokQDKnqLZPJ6ST7XK4UxL9iiwBskztIMMZ 4tyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=M4reb3CZ; 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 sg32-20020a170907a42000b0078d9d69ae0dsi144378ejc.877.2022.11.04.14.56.52; Fri, 04 Nov 2022 14:57:17 -0700 (PDT) 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=M4reb3CZ; 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 S229947AbiKDVtH (ORCPT + 97 others); Fri, 4 Nov 2022 17:49:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229609AbiKDVtF (ORCPT ); Fri, 4 Nov 2022 17:49:05 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDE864387F; Fri, 4 Nov 2022 14:49:04 -0700 (PDT) Received: from zn.tnic (p200300ea9733e7a4329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:9733:e7a4:329c:23ff:fea6:a903]) (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 41B801EC02DD; Fri, 4 Nov 2022 22:49:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1667598543; 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=OY27dLdiYfuU1sMogPWR57JBMYDSBf0CGGnxQqALvZk=; b=M4reb3CZD/GqNEeUk3iLuQvcb+nXQ39mKduU8Bq+FxTd2zkulUL4kyhHVJmx0SbLd58Ba5 i7ZRHxIjFjuJLc5d6WY8hTWPaBsU3p5tHnXTGeivWTo0eXDv7i8BAChYC1aC540u0TPeNV 4udSyNebF4KtwqHHGxx6E8EWULZFNZ4= Date: Fri, 4 Nov 2022 22:48:59 +0100 From: Borislav Petkov To: Kim Phillips Cc: 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 , Babu Moger , Tom Lendacky , kvm@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] x86/cpufeatures: Add support for cpuid leaf 80000021/EAX (FeatureExt2Eax) Message-ID: References: <20221104213651.141057-1-kim.phillips@amd.com> <20221104213651.141057-2-kim.phillips@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20221104213651.141057-2-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 Fri, Nov 04, 2022 at 04:36:49PM -0500, Kim Phillips wrote: > AMD Zen4 processors advertise features in this leaf. > Add the leaf and its Automatic IBRS feature bit. > > Note: New whole leaf (vs a bit) due to propagation via KVM > later in this series. No, not a separate leaf - use scattered.c For an example what to do for KVM, see https://lore.kernel.org/r/20221103025030.78371-1-jiaxi.chen@linux.intel.com Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette