Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp934755imi; Fri, 22 Jul 2022 12:59:17 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tD7pDjZFzTM2yGPQ5QbRndQa5UYaTUU23D9H89xRRbGcJzpvFL9OAH0yqqhzMsiSd4tjyG X-Received: by 2002:a17:90b:4b4d:b0:1ef:a2c2:6bcc with SMTP id mi13-20020a17090b4b4d00b001efa2c26bccmr1364462pjb.186.1658519956873; Fri, 22 Jul 2022 12:59:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658519956; cv=none; d=google.com; s=arc-20160816; b=Po8PY46FIosvkTuWwTB9C/lnBkP0V6tXCBfYkiGUbZR34eMp4GitZEZr+eitBDr9Zr aU4rfDCPuNu1su/ck2w3DQjXQLsljP6v32a+r6wxpH+GWDVFOf73ZexCxqzEru0CH5ju ODHz9LrYdhpYv1pbr4aytCdJedffu0jauHxYFsQu2/FeSZOaWrGxNs/8tsndDardXurX 3hsd4SVWU3nDCYIjFS3gRlr5PeitXQ71jMM3KBvsCDF3zd+9F6FZ4RL9EI8wRlhS5tfG 1w0EuQXGCFbRfElF2i6BakSjYStyxNDWJrl254kma3UhIjTrMlOqSmZaT4b28ha7LeUz 7wAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=yUlLiI1f7ZvnSvhBEws7ER60MBoJ69KaK6U3aL0fHRk=; b=UIRwXoIA/wyBESS7xQHD9BEtCSqj8BaujVgtS/tagMyCc/Eg6seQHTL5Z5A9cRZV/m 9km6Vn0GPB3vWWhGusc0LDc5o/tNsz9k9Om109i/cWhBrPSaCZe7LtNZ7X3yWPHNsZGn WHJr5O2qnaBb782l5W8T5c9ULx501xEaue7CFWl5I/vX6dE+wQWC0igSqfrhmoUhSIps KjG9nC7jShgSGpTTyAzXqxgq4+tCGpsLoTueWKMTRtPDNPcscCHboOwC55gXFhYZ4nP5 32H8cxy8VynF5HY2egSy0mPTim7MyV1K9N7uNW20JNpCMuiSLgfvY17BkehUqoTYrcyX rhkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="ZyF/9Nos"; 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 x189-20020a6386c6000000b0041a5a805d93si6096294pgd.25.2022.07.22.12.59.01; Fri, 22 Jul 2022 12:59:16 -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="ZyF/9Nos"; 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 S234227AbiGVTNo (ORCPT + 99 others); Fri, 22 Jul 2022 15:13:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231304AbiGVTNn (ORCPT ); Fri, 22 Jul 2022 15:13:43 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5E898E6D3 for ; Fri, 22 Jul 2022 12:13:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658517222; x=1690053222; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=YoJQ8g3alU7LX3m6yJN6hMCGycY7i0kWZrAaTQOKp5I=; b=ZyF/9NosOSo5Se8zTWt9L2nrNOoWjnt8q/yuv9Cq46McO7UwKmyO6sAT 0oFAC3u0PeNmfJ5+vYBFoJceWmJjq8y9+xId0Lmj48ZlwBGyEMD2N4DVd 3UoaEWlGWL80hYOI3jwkbDnKVLUPy2kFI4jYPK36ExWzgxmYGOlPlCfnE 8xx6jhoMsJ5vPRT8MzVYnr97i/K0h0uH2UlWF3O2RlDy+DbEE9bZQKFtS G+W0Re+edhTip8vjHgOVSPQR+hEacfhLrm3uv4MPvwO8TAlDrNpsFCxfd gJ9PO9Bjaxr7VaDqVdapaNhJ9ZFh78fRRvHpsUFlHu6HX7b5j9p2EvqCW w==; X-IronPort-AV: E=McAfee;i="6400,9594,10416"; a="349088845" X-IronPort-AV: E=Sophos;i="5.93,186,1654585200"; d="scan'208";a="349088845" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jul 2022 12:13:25 -0700 X-IronPort-AV: E=Sophos;i="5.93,186,1654585200"; d="scan'208";a="926157886" Received: from jnoah-mobl.amr.corp.intel.com (HELO [10.209.71.211]) ([10.209.71.211]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jul 2022 12:13:24 -0700 Message-ID: <18578c5a-7a35-ab20-467c-80141b0410a8@intel.com> Date: Fri, 22 Jul 2022 12:13:23 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH v8 5/5] x86/tdx: Add Quote generation support Content-Language: en-US To: 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 , Kai Huang , Wander Lairson Costa , marcelo.cerri@canonical.com, tim.gardner@canonical.com, khalid.elmously@canonical.com, philip.cox@canonical.com, linux-kernel@vger.kernel.org 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> From: Dave Hansen In-Reply-To: <20220722190524.GA3299911@ls.amr.corp.intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, 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 7/22/22 12:05, Isaku Yamahata wrote: >> So, the quote portion of this is basically a bidirectional blob sender. >> It's to send a blob between guest userspace to host userspace. >> >> 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 works. > However, some users would like to disable virtio-vsock on their environment for > some reasons. Even virtio at all. Especially for confidential computing use > case. It's their choice. It can't be assumed that virtio is available. > > The goal is VMM-agnostic (but TDX-specific) interface for that. 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*. We don't need a way to talk to hypervisors for Intel systems and another for AMD and yet another on whatever.