Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp2849348rwa; Mon, 22 Aug 2022 15:18:12 -0700 (PDT) X-Google-Smtp-Source: AA6agR4A9iI3cD6l03yZm5SLaxGmCHQ/KJcekvxL85l0j18L40TGO/a/estEvaEH2KmwZKfhlONa X-Received: by 2002:a17:906:845c:b0:730:bbf1:196a with SMTP id e28-20020a170906845c00b00730bbf1196amr14494820ejy.13.1661206691986; Mon, 22 Aug 2022 15:18:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661206691; cv=none; d=google.com; s=arc-20160816; b=EwaaAkFevM9RzPrptwJFSJMxJrNu2+SoMwMaG/yBB/A0SbWy4Y4DukaJRUsnZ/hABk KK5XYCz9p5fOGjwwvAnhs60vrVcjRHJEYsKNf45r2fynv1jmJjwtDTTZ2YdiBnZBUoG8 2GcGmWRBSNRuoO8fT18jUlz5TIVgu/tQaqlIV97lb/n0oaaXWDquikw3rA+Qd17KVRBT wTaRAqx5o0B4px1iAMWOpbkDMKE+LOUWCK/pDHvPQm3AhqDnYYqI5mFxfeRpwCsFXj8w YgDwol3NXcWqP9dqxaYgjx28ZYljYYi3PU9nBl6a6yKHEDZxF+NvRqKulpXWFMLtRxJx ENzw== 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=GM4p6K/MhEh+Um7C63wrny15ZaDe+tYLO6GoXOH8A5M=; b=0L7iuVekFHE7fQ7y7OJ0dCEuiOuzRorAYDjy1XMV++cp1QIT2Xxy0FpKlTv9Lm9Wxf DRWR7KWHmZYkwQ89vkRa2MMKeQOn0QK2ASFlZj3mPRSadr++XsQHcPusiL4sDvHY4PiW WkTCCOWXNVQMKSZbkGrIvPIuk/FEhhE+xz0wLHvRa565IqKRIEIdQJVNJZwSeyKmBZFD MHLQIB37O5I7s8yxnKfg4nvXmClzeuKt2b1iC96fHRApSs0m5Q7gIeCPSHlQ6fLA92gu jicEtrWUhbcu8t7RgX4j2l3UCmWrmAZ2QDorWjH+31LC4m6D9GOAHcJy0L7f6r5uY846 JCVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=Ppb7yfgj; 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 ga10-20020a1709070c0a00b00730c1b3c154si13587682ejc.663.2022.08.22.15.17.45; Mon, 22 Aug 2022 15:18:11 -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=Ppb7yfgj; 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 S232271AbiHVVhC (ORCPT + 99 others); Mon, 22 Aug 2022 17:37:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235750AbiHVVhA (ORCPT ); Mon, 22 Aug 2022 17:37:00 -0400 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 520EF53001 for ; Mon, 22 Aug 2022 14:36:55 -0700 (PDT) Received: from zn.tnic (p200300ea971b98b2329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:971b:98b2: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 C407F1EC0645; Mon, 22 Aug 2022 23:36:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1661204209; 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=GM4p6K/MhEh+Um7C63wrny15ZaDe+tYLO6GoXOH8A5M=; b=Ppb7yfgjpCchvGQteNdVjlB+M6JUQ/bofHi7hNfrNlKVfajCRCT7zMOzGvN6vEHD+JYUJV 5h8W4JbFig1Ga5oYPPeG3CGHSRXCPXMd2Rs1txBFhSgItSnnhLM1FyD9J3xeaI9DtXLGNm 6OUnVRETaEtFwG4dHthEpNTLQJua6zw= Date: Mon, 22 Aug 2022 23:36:45 +0200 From: Borislav Petkov To: Dave Hansen Cc: Kuppuswamy Sathyanarayanan , Thomas Gleixner , Ingo Molnar , Dave Hansen , x86@kernel.org, "H . Peter Anvin" , "Kirill A . Shutemov" , Tony Luck , Andi Kleen , Kai Huang , Wander Lairson Costa , Isaku Yamahata , marcelo.cerri@canonical.com, tim.gardner@canonical.com, khalid.elmously@canonical.com, philip.cox@canonical.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v9 1/6] x86/tdx: Add TDX Guest attestation interface driver Message-ID: References: <20220728034420.648314-1-sathyanarayanan.kuppuswamy@linux.intel.com> <20220728034420.648314-2-sathyanarayanan.kuppuswamy@linux.intel.com> <20abfa00-b70c-f151-9ee4-5668f09f4ace@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20abfa00-b70c-f151-9ee4-5668f09f4ace@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, Aug 22, 2022 at 02:19:44PM -0700, Dave Hansen wrote: > This actually shows up to apps, though. Blergh. > They'll actually be opening /dev/tdx. When the other driver comes > along, they'll all need to change to /dev/tdx-guest. That seems a bit > unkind to those poor app developers. So do you really wanna call the attestation driver "tdx-guest"? But that's not really an attestation driver - there's tdx/tdx.c which is all the guest code and there's an attestation "driver" in it. So maybe this "attestation driver" thing is just an additional "ability" of the tdx-guest driver. Might wanna take out your cristal ball and think what you wanna call it now so that it doesn't change because... > BTW, do we consider these kernel names be part of the ABI? Seems like > we should. ... yap, that. If apps open this, then this is an ABI and cast in stone. I'd say. Which makes my initial suggestion of calling this whole guest functionality a "tdx" driver not such a bad idea... Depends on whether there will be a split at all or it'll continue gaining more functionality. Or so. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette