Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp4161582pxb; Mon, 21 Feb 2022 13:40:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJxs9EQ4gBJWmjjurAH86q+zIxPBqB49C7ctNZAeB1sTXj1z5vS8lODqXaRcGQNOVCUyhEG9 X-Received: by 2002:a17:90b:4b0d:b0:1bc:4cdb:ebe3 with SMTP id lx13-20020a17090b4b0d00b001bc4cdbebe3mr870301pjb.176.1645479600773; Mon, 21 Feb 2022 13:40:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645479600; cv=none; d=google.com; s=arc-20160816; b=FmJy840m+sC38F8QiB24EilPogisMfo/cEHLKhGIQLSFi/pKLKPpwsQkuJzYqVSXoB x6QAo+trc+ueToJuso7Ufz9iMnjFuqlOkhKyYw+EqKZMdV8NnxnldaAa/nE4WVm/r6pO ZPwd12+LFHRIB9sdDFx/hnX7yfwVg17rF6IqnV+/ejnG3iHFyVxZzfU+KHZgPmPSMgEL HVnIdzJJQBVTKj6o1Q9qzD35/lELmlO40SCqLAcjBtd65Bo6GdE1keNS3sjc0pjjQsiL jjJbjJX8cyofZjFGp1/6aqXN1MBqoGrZ1b0XAa3c1JNgUrJklqDRhLm2lIqM/pM317Ue 2U+w== 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=G8yP8d3UkjcXD9ochKrIpwMp/vR+RVz3kP09JYxfJtE=; b=xAio+Gr8tcIyC85Fu5nlA4q7ESA51fkUajoW+paJ8k512h5/JKbX91ejMifojxCEX7 Yf/Z8CzhJdCzJuKJc5eNqsRnQUUjc5LhPGUKdtWARS18vwJpXbO28bhsx9yrj5q1IFHx /YHXp2XIoNaA9iCOKHPx3XiY8J3oXxxjjoUpitEEwTEq8Dq+P2SC34uwP3ZO4J+GvoZX Z6TDVyIWqFqW0dIF1wf8GOlSkU6ffjYq+Hq9Xw2gKV/i46Xcn/AO/IgHTPJ7ajakOcuj GvasHoHQH4Gqpza1sr36Q7nqb3+AaIrdFEjlPmXEoSJ7kCuJIC+p7Mji3kW8g9aCPe9V fqhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=UQtOjBpO; 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 ch24-20020a17090af41800b001bc56ad538bsi386302pjb.188.2022.02.21.13.39.45; Mon, 21 Feb 2022 13:40:00 -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=@alien8.de header.s=dkim header.b=UQtOjBpO; 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 S1357253AbiBUMFz (ORCPT + 99 others); Mon, 21 Feb 2022 07:05:55 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:37144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357241AbiBUMFs (ORCPT ); Mon, 21 Feb 2022 07:05:48 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42D00201A7; Mon, 21 Feb 2022 04:05:25 -0800 (PST) Received: from zn.tnic (dslb-088-067-221-104.088.067.pools.vodafone-ip.de [88.67.221.104]) (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 A9FD41EC01A9; Mon, 21 Feb 2022 13:05:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1645445119; 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=G8yP8d3UkjcXD9ochKrIpwMp/vR+RVz3kP09JYxfJtE=; b=UQtOjBpObJD/bt7L3zvjvwkh0kLrD6l+caudCh4+dNXI2/g+LicZs+AJ4DbKLLTJYlqibY kkoTuMYT+u94uOIxxjkSQeo8fYov429fwf3aFvQtraA8WRz4Es1ZwN+PZYwVNStlHv/q+S gBpXi/WYdHPMxkbih3ICruVP/1h1OCs= Date: Mon, 21 Feb 2022 13:05:27 +0100 From: Borislav Petkov To: "Kirill A. Shutemov" Cc: "Kirill A. Shutemov" , aarcange@redhat.com, ak@linux.intel.com, dan.j.williams@intel.com, dave.hansen@intel.com, david@redhat.com, hpa@zytor.com, jgross@suse.com, jmattson@google.com, joro@8bytes.org, jpoimboe@redhat.com, knsathya@kernel.org, linux-kernel@vger.kernel.org, luto@kernel.org, mingo@redhat.com, pbonzini@redhat.com, peterz@infradead.org, sathyanarayanan.kuppuswamy@linux.intel.com, sdeep@vmware.com, seanjc@google.com, tglx@linutronix.de, tony.luck@intel.com, vkuznets@redhat.com, wanpengli@tencent.com, x86@kernel.org, linux-hyperv@vger.kernel.org, Brijesh Singh , Tom Lendacky , Tianyu Lan Subject: Re: [PATCHv3.1 2/32] x86/coco: Explicitly declare type of confidential computing platform Message-ID: References: <20220219001305.22883-1-kirill.shutemov@linux.intel.com> <20220221114451.mljggcmadgvrrxbv@black.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220221114451.mljggcmadgvrrxbv@black.fi.intel.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, T_SCC_BODY_TEXT_LINE 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 Mon, Feb 21, 2022 at 02:44:51PM +0300, Kirill A. Shutemov wrote: > Hm. Isn't 'vendor' too generic? It may lead to name conflict in the > future. It's a static variable visible only in this unit. > What is wrong with cc_vendor here? I noticed that you don't like name of > a variable to match type name. Why? Because when I look at the name I don't know whether it is the type or a variable of that type. Sure, sure, it depends on the context but let's make it as non-ambiguous as possible. > Currently cc_platform_has() relies on hv_is_isolation_supported() which > checks for !HV_ISOLATION_TYPE_NONE. This is direct transfer to the new > scheme. It might be wrong, but it is not regression. I didn't say it is a regression - I'm just wondering why. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette