Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp947431pxp; Wed, 16 Mar 2022 22:16:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8Hfrj9kYfkoWphm0ylIS349A9nokYtTKrqQak4+0UdAog1TfX0unTwR8spsqXXQHMDxT4 X-Received: by 2002:a63:1651:0:b0:342:b566:57c4 with SMTP id 17-20020a631651000000b00342b56657c4mr2327164pgw.258.1647494195855; Wed, 16 Mar 2022 22:16:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647494195; cv=none; d=google.com; s=arc-20160816; b=kmuSFKi3NO2DsQHEFr/7FdivoqgEi7cx6CU+QgFMR5YNezOkM2sG2hlov/omlMZJRL 8rwWq/Jss+eapjGdPwjg9Wp66d0b/eibOjB6ZznUAtSLJ2l5thmxBd23ET7CQ6DsmJMl Xw97RrsopHG/iQNQjUbPJC+d1JOWOKkySNgumZT0KmCBwqOAHzKSHt8A78ow4KC7Rn56 Ve4zHfqBvNnQqmozajPkblJzzqy8WWTy2tkPCLG0bp4BbrqnZZhaE0IpKGGv5lvItZQa NrWpmE8KhM9XGcgY9KVorscLvb2u0bNeS5o9V5tdleVM9dd7MtC8Ej9SACltF2BFgxWK j6OA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=4KycLN+zwkp0NDy4fij4Hxc1tQcCVHHKFILk+WUWitU=; b=CGNog03io85452miGlqN489DK7chcUfkplLJ5QGGBI6lu+MuMqV+kqGW1qKXa8sA68 K6e7bZll2RWO1b9Wn//zWXruNyEg4mO49YsmwwZ72PH9pgAtkpW1yPB5kGx3WYsmUsv3 YPaS0PczGt4R3dLLLumfkb4TRyYW7osKp8eNrhXyTIAHKIq5dbu37V38jX4l6Lj7Lk8z BgkQd4HdSC+0zLKmz4IfNrH06biH6RCG/IA5MVhX7ETS6epKcI5KRmwf6hcZKYDI8w1R SsRqhzLmJuANQcuQEdfr+p8fNvWd4n/ZZwui1auxiEFCq7CTE6o2EPMLQADcO1P2sLat IC5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LACXnHid; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id v10-20020a17090a634a00b001bf756ef81csi1182544pjs.139.2022.03.16.22.16.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 22:16:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LACXnHid; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 636ED1EFE29; Wed, 16 Mar 2022 21:24:51 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352036AbiCOVsu (ORCPT + 99 others); Tue, 15 Mar 2022 17:48:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235064AbiCOVst (ORCPT ); Tue, 15 Mar 2022 17:48:49 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3865E4B842; Tue, 15 Mar 2022 14:47:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1647380857; x=1678916857; h=message-id:subject:from:to:cc:date:in-reply-to: references:mime-version:content-transfer-encoding; bh=sxJ0PeNFpa8k8NqCl/p0Z4qDp7WiPd3vqrAMJehfQmo=; b=LACXnHid7Y5b8ru8cLRrVZYZu+1dqfnT8makL7oB1mPROiMAVE6/1evK kJ/P03bXWRIcxUjIsXrNxzqN8M6JDELCeVgF20eBlal+vrlV5bfIixZnq mM3eA5GHot8eDFGV4rbAJOF+7ynw45IwVmhWFYhDwJjNH5FwHH1PAFukW 4k+g/yOHaA630K9ZQmfFzKSdUWJEb9ivON2bmSIwuLko9ihbs/IGnVINw w3ctcchxITDIflNvDs8gqVPimxf8VCB677bWAHjaiYIbl7FKrnIHgLmss oAZGPT5rEG6wQ1StzrONSY+Xq8gwlJggRMDVD+OUlFWQQTozFgAiHZNd5 Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10286"; a="256153206" X-IronPort-AV: E=Sophos;i="5.90,184,1643702400"; d="scan'208";a="256153206" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Mar 2022 14:47:36 -0700 X-IronPort-AV: E=Sophos;i="5.90,184,1643702400"; d="scan'208";a="549751434" Received: from mtakoush-mobl1.amr.corp.intel.com (HELO khuang2-desk.gar.corp.intel.com) ([10.254.51.132]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Mar 2022 14:47:33 -0700 Message-ID: <9b90aaac2d55674550d35ce5a4ddd604825423c3.camel@intel.com> Subject: Re: [RFC PATCH v5 010/104] KVM: TDX: Make TDX VM type supported From: Kai Huang To: Isaku Yamahata Cc: isaku.yamahata@intel.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Paolo Bonzini , Jim Mattson , erdemaktas@google.com, Connor Kuehl , Sean Christopherson Date: Wed, 16 Mar 2022 10:47:31 +1300 In-Reply-To: <20220315210350.GE1964605@ls.amr.corp.intel.com> References: <0596db2913da40660e87d5005167c623cee14765.1646422845.git.isaku.yamahata@intel.com> <18a150fd2e0316b4bae283d244f856494e0dfefd.camel@intel.com> <20220315210350.GE1964605@ls.amr.corp.intel.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 (3.42.4-1.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Tue, 2022-03-15 at 14:03 -0700, Isaku Yamahata wrote: > On Mon, Mar 14, 2022 at 12:08:59PM +1300, > Kai Huang wrote: > > > On Fri, 2022-03-04 at 11:48 -0800, isaku.yamahata@intel.com wrote: > > > From: Isaku Yamahata > > > > > > As first step TDX VM support, return that TDX VM type supported to device > > > model, e.g. qemu. The callback to create guest TD is vm_init callback for > > > KVM_CREATE_VM. Add a place holder function and call a function to > > > initialize TDX module on demand because in that callback VMX is enabled by > > > hardware_enable callback (vmx_hardware_enable). > > > > Should we put this patch at the end of series until all changes required to run > > TD are introduced? This patch essentially tells userspace KVM is ready to > > support a TD but actually it's not ready. And this might also cause bisect > > issue I suppose? > > The intention is that developers can exercise the new code step-by-step even if > the TDX KVM isn't complete. What is the purpose/value to allow developers to exercise the new code step-by- step? Userspace cannot create TD successfully anyway until all patches are ready. -- Thanks, -Kai