Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp2667620imi; Mon, 25 Jul 2022 05:05:40 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vyVc6GpacEWP2RnDlGLrAuf9OE/2aJVXqQiW1ZFmTK558e8tO7PKsBj8OESts8ioB/kak3 X-Received: by 2002:a67:f913:0:b0:358:54e8:d2c2 with SMTP id t19-20020a67f913000000b0035854e8d2c2mr1666171vsq.21.1658750739937; Mon, 25 Jul 2022 05:05:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658750739; cv=none; d=google.com; s=arc-20160816; b=0jEvdEF4rFTbQCWFG722kivDsI7NfFsU6+/mAnSYAGAOd6lvaSllqT4W7Y/nD3/zWe tXYLiiOx7ZAqPgtWGiF71CXCV+hHUykZZSXkJHQZK3JYW6zzz8dOaKJD+73m1BCokkGl utmXGDaXML+0YTBRe9H8IxiDE9GFuEuiu5HdX4ivPPja2Hs3GreTUqTE5vwKYbj1kB+9 JusU5MBksZtgvtB4YWZx2n5wU3483/z+p5BJuDEBEUrI0u5HoPVKEdJo4HcWLMxHwCAm 8s9Z7AkbRjZCxKM4E9mGpUQM0tuB5IHjWk5S9Wls7avsQ7YTIsoYfffyWvVmefcBc74m wexA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=AFIAmf7BQ6f5Kr4XRPD9+mUvKhE7A7vZrO2eMgAdFeE=; b=cRmsd9UMqzSYZWMuEcoCopFZYN8Rf2MPN5+MD0gPWS9OOGW9xKQ9aOSa6zfIttNGNr j2llOCaaTnefauF5Lg/1mKwFWkg35rP7T8vrE2PhIpK/GNDJKrPt1aLK6D9UZ8J/0UFq wdVVSXB75PmZQaMzOKJqdLC5ez05tHzPg+FZftXLeMxDIOHyKNhAhf3q4X4ChvnKYoz1 B/UcKrlG968sL8N0IoOeapukWgVxbi7qfHWsHv9f6gEETdeYRSfW7aMk1pm3k3JTKyv/ wVHmXmECvEG9XLviYHmhfj7aDoa834gtDwuIiuzm0zdj43cvG0gJ/xuD+22a2UgRHOZX 0pnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=V1C1msUD; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i1-20020a672201000000b0034bb8362b00si1310438vsi.647.2022.07.25.05.05.22; Mon, 25 Jul 2022 05:05:39 -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=@intel.com header.s=Intel header.b=V1C1msUD; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233220AbiGYLFw (ORCPT + 99 others); Mon, 25 Jul 2022 07:05:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231513AbiGYLFu (ORCPT ); Mon, 25 Jul 2022 07:05:50 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D6B01208C for ; Mon, 25 Jul 2022 04:05:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658747150; x=1690283150; h=message-id:subject:from:to:cc:date:in-reply-to: references:content-transfer-encoding:mime-version; bh=ixXvROZDu+Emrv/qHHT+UatmUz6QD6tkz4g3J0IDh4w=; b=V1C1msUDBDza5OLEhnWKxHEk0ZnlrmJkF6rELSvFzFztUb3f+r4NcWCr kRv8HmpSiEI/O1iYJb3arPQMJJQ/f+VbON6jVstaieriTyPNZgmuigEb4 OLGxQS1wAGfo9j0U8WbZqOhlMu6RV1D1sTSoXmItfXpmRa4xl2pbKyCXs 7N6BbgtIbq1fq4DcoFkPAdWw2ev1NBR1j3T7/y81ew52Ee9uaPQBQjtlA 2sbVaByH0i/Zo3HcYCBexNqT+IDSqRBm7N6mIwJjDMdR/0Z70B2a34SvY PGE9XvfP0MEuL9uQQ/yV8M1CMXwMWP+Ca6DOwePunHMt6+Bj4CGo8PXFC Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10418"; a="268064251" X-IronPort-AV: E=Sophos;i="5.93,192,1654585200"; d="scan'208";a="268064251" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jul 2022 04:05:49 -0700 X-IronPort-AV: E=Sophos;i="5.93,192,1654585200"; d="scan'208";a="667450151" Received: from edere-mobl1.amr.corp.intel.com (HELO khuang2-desk.gar.corp.intel.com) ([10.209.168.34]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jul 2022 04:05:46 -0700 Message-ID: <5905d2772ba3ba015f386787fa0b7a8fade69005.camel@intel.com> Subject: Re: [PATCH v8 5/5] x86/tdx: Add Quote generation support From: Kai Huang To: Dave Hansen , Isaku Yamahata Cc: Kuppuswamy Sathyanarayanan , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H . Peter Anvin" , "Kirill A . Shutemov" , Tony Luck , Andi Kleen , Wander Lairson Costa , marcelo.cerri@canonical.com, tim.gardner@canonical.com, khalid.elmously@canonical.com, philip.cox@canonical.com, linux-kernel@vger.kernel.org Date: Mon, 25 Jul 2022 23:05:44 +1200 In-Reply-To: <18578c5a-7a35-ab20-467c-80141b0410a8@intel.com> References: <20220609025220.2615197-1-sathyanarayanan.kuppuswamy@linux.intel.com> <20220609025220.2615197-6-sathyanarayanan.kuppuswamy@linux.intel.com> <403cfccb-7fff-ab0b-8ebd-e5b04e631571@intel.com> <20220722190524.GA3299911@ls.amr.corp.intel.com> <18578c5a-7a35-ab20-467c-80141b0410a8@intel.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.3 (3.44.3-1.fc36) MIME-Version: 1.0 X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE 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, 2022-07-22 at 12:13 -0700, Dave Hansen wrote: > On 7/22/22 12:05, Isaku Yamahata wrote: > > > So, the quote portion of this is basically a bidirectional blob sende= r. > > > It's to send a blob between guest userspace to host userspace. > > >=20 > > > Do we *REALLY* need specific driver functionality for this? For > > > instance, is there no existing virtio device that can send blobs back > > > and forth? > > It's virtio-vsock. If virtio-vsock is available, the communication wor= ks. > > However, some users would like to disable virtio-vsock on their environ= ment for > > some reasons. Even virtio at all. Especially for confidential computi= ng use > > case. It's their choice. It can't be assumed that virtio is available= . > >=20 > > The goal is VMM-agnostic (but TDX-specific) interface for that. >=20 > You're basically saying that every confidential computing technology > should have its own host user <-> guest kernel <-> guest user ABI. > That's insanity. If we do this, we need *one* interface that says "talk > to the hypervisor" that's common for all hypervisors and hardware > vendors, or at least more than *one*. >=20 > We don't need a way to talk to hypervisors for Intel systems and another > for AMD and yet another on whatever. Maybe the GetQuote support can be a "Intel driver" with a dedicated Kconfig option? Not all customers want it anyway, so having a Kconfig option can a= lso reduce code size/attack window. --=20 Thanks, -Kai