Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp567482pxk; Fri, 11 Sep 2020 14:35:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8yeFSHF5FMsuM1hUTFXffdLMgdOR3SW5O1WrFD4G5Tp5Lv/0QOfsAyyxbWnt0StjNF60n X-Received: by 2002:a17:906:facb:: with SMTP id lu11mr4079910ejb.249.1599860109527; Fri, 11 Sep 2020 14:35:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599860109; cv=none; d=google.com; s=arc-20160816; b=cA2J7xy6npX7h9psRb2OZziO2xN6XRU3Hxfs71WbOV/veEaupT7eKj6seKMJBR0D28 lZohe/ue/a6RRONKTTHKtE1WYGXaE2AM+t+Iula0SEI3qR09CEsP6SBQlbUNoDS6dhCO pbR6owsn4xB1/2OqTT40Mm3310D8uhv2Kah+WXjJ467I8ayvD+1NLzROX1isGwVH6syc dMbarSurwsSheEVPJYvXyrfWJ5ck190+JnZwwblhfl7YAq72rP2ugenpsqE6KQONlvxO mQdqTCPG0HKegPQPdP7xXKPVC7uIyhiU1VBVZnMVRscJFk72NQIu13FUMSamRzLtaKh9 lA3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=zcRbcG6lU7+mJahNszBtN5sPZaojMVrjdXUyyVeewfY=; b=i2OpERCFeOzR8JGkHcW87dik3MLnvnvWqn0l+hNBwPVN/2R82t/WnhrTiun/HarcLC KUsaen9f4z9BeyqpO7HzUeGcCp7A3qLDThTlh21UiYcQXuI+oq0Kr8HkRsdmrS+aetOo OgmqNE+1+cFGmJvdQEi0LY1Z85p/9Ve2s8ykYYybFqXCtZd4sMmYVIM9cL39g4SsRgyF BgZLG3impmgc+QvzYf9JpqZ5IFlwgl0m7xPJB3dirqtMUUKtj0VR5GekPP7BOj4/j2Ou 9G0uDd8yUJo2A7OIuCcvVWcobJNFLQrV8ALfZaQVjyBd6czg8KFrVXRdJ9lsAlCsNbT8 e/vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=OiL5ixRo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m18si1920545eja.292.2020.09.11.14.34.46; Fri, 11 Sep 2020 14:35:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=OiL5ixRo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1725888AbgIKVeH (ORCPT + 99 others); Fri, 11 Sep 2020 17:34:07 -0400 Received: from mail.skyhub.de ([5.9.137.197]:58206 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725847AbgIKVeE (ORCPT ); Fri, 11 Sep 2020 17:34:04 -0400 Received: from zn.tnic (p200300ec2f162200a8246000ea14139e.dip0.t-ipconnect.de [IPv6:2003:ec:2f16:2200:a824:6000:ea14:139e]) (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 3CCD71EC052C; Fri, 11 Sep 2020 23:34:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1599860042; 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=zcRbcG6lU7+mJahNszBtN5sPZaojMVrjdXUyyVeewfY=; b=OiL5ixRoVfLlQ6tdZO7jYJxEvtd0b+iA34JYb3cQncDCmToqW2YtfHMFP7FQ8bzWJY8Cgh g+gtpmIhgB7n6IzZIkqkqMXI7gcXG/Q+pRqqmgdx7waA9Ij+qZUIViHBxuy2K/EoSOsn7D DmcZNogZpGQc1wlK5oteJmPqFQCBDCc= Date: Fri, 11 Sep 2020 23:33:56 +0200 From: Borislav Petkov To: Krish Sadhukhan Cc: kvm@vger.kernel.org, pbonzini@redhat.com, jmattson@google.com, tglx@linutronix.de, mingo@redhat.com, x86@kernel.org, sean.j.christopherson@intel.com, vkuznets@redhat.com, wanpengli@tencent.com, joro@8bytes.org, dave.hansen@linux.intel.com, luto@kernel.org, peterz@infradead.org, linux-kernel@vger.kernel.org, hpa@zytor.com, Tom Lendacky Subject: Re: [PATCH 2/4 v3] x86: AMD: Add hardware-enforced cache coherency as a CPUID feature Message-ID: <20200911213356.GC4110@zn.tnic> References: <20200911192601.9591-1-krish.sadhukhan@oracle.com> <20200911192601.9591-3-krish.sadhukhan@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200911192601.9591-3-krish.sadhukhan@oracle.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org + Tom. On Fri, Sep 11, 2020 at 07:25:59PM +0000, Krish Sadhukhan wrote: > +#define X86_FEATURE_HW_CACHE_COHERENCY (11*32+ 7) /* AMD hardware-enforced cache coherency */ so before you guys paint the bikeshed all kinds of colors :), Tom (CCed) is digging out the official name. (If it is even uglier, we might keep on bikeshedding...). Once you have that, add the "" after the comment - like X86_FEATURE_FENCE_SWAPGS_USER, for example, so that it doesn't show in /proc/cpuinfo as luserspace doesn't care about hw coherency between enc memory. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette