Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp757759pxb; Thu, 19 Aug 2021 10:27:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwksNd2qlpArGWLtklNRNyP0jz+P8G4Ohan85+rqXoSg2tIYQu2SZ7fomP+7KMCSERiZZ5a X-Received: by 2002:a92:1944:: with SMTP id e4mr10646800ilm.186.1629394028170; Thu, 19 Aug 2021 10:27:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629394028; cv=none; d=google.com; s=arc-20160816; b=CaH8iq3gsAk1fHH0mPG9Iit/5bVkuvzdfgnEYWfCz7xqMTkwLP26LXsNBmi23p9ubr uPBdq46yHzEztLFBIa4CT62B5xyToXIKk2n3e7XFyAw4Z/LU8hA/BBNEY1HV3BGG8f+W HsMiY2EhFvuTKVyhHIAx035c+U7AmnEpRighZ0nIbpZplIWAtI1RPiyN2Vx8eAe3zKHQ gW6J8MTrTrHWn9itypfSiQB6XJePPwha7+y2eTqND6X9emkJY33Fi5w3PKMFdrNyNXsK g/mEZAqh56xwblad8OfT2dW5jJeJUNi+sQuXBQjs3OySj38nSnYLzuLPJjgcFWFxCGSz KtjA== 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=/gAtsE7QtBH5j9ttL3SuPKWfuXAyQgTTaUQCvmLoufU=; b=IzsP8NFcu8IjsjHrCmjLPxVyjp7la8wAk9J8jfUXxKR6MfQM2uGn4Z4E4WjYrM20Ti +ysOhFDSFFstGaLs947jbRHoSdzNLqP1Dp/jwVVQ+n/VapiNbLqtDXLq6slg+93Ts6EF Cqodd7Zy+B8FkXOBaj9YtjMMrI4NWFLQ9wvtvW2hNcZ7cF8Zd8LkUKP6nW9i8pKoOoiA w6opxcMutcT7qdzTCPQE6PqtWWLViYzrBOdQpC2DoGECwewJrFNms5XfCjdMHrD+jq+Y 4ycgPIiq1F2c6X9aqdEWVv1zcGvl/DCdifB7w+QuwaadnxkJQWZmSDEM34nE39XIfkoh 8aJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=QQBp8NHu; 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 s1si3956138jat.65.2021.08.19.10.26.55; Thu, 19 Aug 2021 10:27:08 -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=QQBp8NHu; 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 S232885AbhHSR0f (ORCPT + 99 others); Thu, 19 Aug 2021 13:26:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231134AbhHSR0e (ORCPT ); Thu, 19 Aug 2021 13:26:34 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACDBCC061575; Thu, 19 Aug 2021 10:25:57 -0700 (PDT) Received: from zn.tnic (p200300ec2f0f6a00894cffc8901d9ad3.dip0.t-ipconnect.de [IPv6:2003:ec:2f0f:6a00:894c:ffc8:901d:9ad3]) (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 2D09E1EC04F3; Thu, 19 Aug 2021 19:25:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1629393952; 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=/gAtsE7QtBH5j9ttL3SuPKWfuXAyQgTTaUQCvmLoufU=; b=QQBp8NHuP+11G06yi7BdGA+HaVdnbkry0TMbR80aBtGTWa+AS2GGnsUl92jeGasIkZJxjG vbA27TU+69/cDt/R71KHjVUhLNS00XEkqnozCdieagZOK0jWv65x9AAvusLIXItaBgTbsA IoE8XMNOekYHfnDaNqS/LMVqj09wsDs= Date: Thu, 19 Aug 2021 19:26:31 +0200 From: Borislav Petkov To: Christoph Hellwig Cc: Tom Lendacky , linux-kernel@vger.kernel.org, x86@kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, iommu@lists.linux-foundation.org, kvm@vger.kernel.org, linux-efi@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-graphics-maintainer@vmware.com, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, kexec@lists.infradead.org, linux-fsdevel@vger.kernel.org, Brijesh Singh , Joerg Roedel , Andi Kleen , Sathyanarayanan Kuppuswamy , Tianyu Lan , Thomas Gleixner , Ingo Molnar , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Joerg Roedel Subject: Re: [PATCH v2 03/12] x86/sev: Add an x86 version of prot_guest_has() Message-ID: References: <7d55bac0cf2e73f53816bce3a3097877ed9663f3.1628873970.git.thomas.lendacky@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 19, 2021 at 10:52:53AM +0100, Christoph Hellwig wrote: > Which suggest that the name is not good to start with. Maybe protected > hardware, system or platform might be a better choice? Yah, coming up with a proper name here hasn't been easy. prot_guest_has() is not the first variant. From all three things you suggest above, I guess calling it a "platform" is the closest. As in, this is a confidential computing platform which provides host and guest facilities etc. So calling it confidential_computing_platform_has() is obviously too long. ccp_has() clashes with the namespace of drivers/crypto/ccp/ which is used by the technology too. coco_platform_has() is too unserious. So I guess cc_platform_has() ain't all that bad. Unless you have a better idea, ofc. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette