Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3891855imw; Mon, 11 Jul 2022 18:59:19 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vQcppjZsbSivbhDuCkNZQQYxVoYTdsFsowgAx9vaF/0FbMvp0RRECk+KOblmR1Se6ut10y X-Received: by 2002:a17:907:1c8d:b0:6f2:eb2:1cd6 with SMTP id nb13-20020a1709071c8d00b006f20eb21cd6mr20701969ejc.568.1657591159626; Mon, 11 Jul 2022 18:59:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657591159; cv=none; d=google.com; s=arc-20160816; b=vJQpk0PdJl+jve1mmQBIWiN5jSBX2siOutHpzM12Oa2/hFrlTIrz1Yd6qkT6BOTEBJ ZztYtanfEcpQs9ez8ycs3TXEp1cGggubL96l5edcWca2DqPMor1UOeH7KFL5CQLCPc73 eggyRxuU0phbpp6wQEGbcgpN+tTGCm12rom8WNHvjMzUTZN/9AtjzaUurSH8dQ58i6sY g3wav7mLj2NYoqA6X2fSEuuhgGY+TUioO/TKL54x4dmOmfbtBqP8McFwQIw2E55uNcSf E5OqiAKVq7VC1kg2wsQc/FquxN/UFRdP+AWvjdPSI4XO0dK3PSIpszwx8YVYSMobcX6V 98nw== 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=AGvha80V0MRiN4HscNR3tkUtu2VilgnnAfsi2jxRBVA=; b=XPEHdUKIUOBQedMgmXSm91IDgc68KgRoayAe8W5A+hd2GspdcpBMnVhjdoovCfTdJH +Qs9H9aSetg3zmhPvbR4eyY+RV3b6mgs0+eMcm7V/BCiegNRgG+eCkuqlVCCM7GdLHc4 v9kZw9Btqk0oSih397kN0QPfk6F2SOm8NpbJofmdQsF+PhlF/NmlQ5e0IbOjGlKjdNCp gUsijWxt3vTv75yuJuxe4/IHoH9TfJp3igt2IV9Mq4p5GCfL1EZ/lWDyLgD075ZVzy5c inlRTo/zkWN1uqpsA+VLUihMbAW0wwM3EOSmE13JAnW9upDJYF0If11P228AqD5ajVv/ K6fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jv1jywBo; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w8-20020a056402268800b00437a041e39fsi13027042edd.18.2022.07.11.18.58.55; Mon, 11 Jul 2022 18:59:19 -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=@gmail.com header.s=20210112 header.b=jv1jywBo; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231804AbiGLBGw (ORCPT + 99 others); Mon, 11 Jul 2022 21:06:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231339AbiGLBGu (ORCPT ); Mon, 11 Jul 2022 21:06:50 -0400 Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFDC527FFF; Mon, 11 Jul 2022 18:06:49 -0700 (PDT) Received: by mail-pg1-x52b.google.com with SMTP id 72so6264737pge.0; Mon, 11 Jul 2022 18:06:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=AGvha80V0MRiN4HscNR3tkUtu2VilgnnAfsi2jxRBVA=; b=jv1jywBoSaitglhyd6Vh/crbdp1Vd1GQ8+y0MhQVwocuEccPS3ws3FKZOMwhN6kUgP AgOjibYm56vDdDYeSBzLSkCYUa89t/iOaZMI9lDcauHExUL6oAZ2uVWtzXGVyFxaEXwY BIYhW/RX+bRKrhxZ2rtRf2D3jsurwYyuIap9Xz+TcfoOqz40TwG5N2KAxGhFh2CTMJYR a6bzLjed1txFFHml4fj+VJQzZRCCenzUa6dMYdxMdwQpeW/FM5dRy/EILjDvzD7VDADK 2D4QJijAqRs1CEJxfle601ESXWgH9etqqyVnUmZyBnJpMVo3C7+ZsJ7c0xnn+4jcVGhf M7LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=AGvha80V0MRiN4HscNR3tkUtu2VilgnnAfsi2jxRBVA=; b=YXpWtaEVWF1CVi359DmOD/we+bcVE9ImyFd+4SNHUDqQnuhBmXp8tzn/n6LDBWIelw tbs7ut1Cg8pJivDyK2djuGO2H4wjZCt/H+j3KxJgb0ckhgA5AJSw/N0YHbpDoV/eQrz3 jAR1mTviAhxNImEEas8ab9imm/mL2rgRniPCA3A0kHIQ4GgdEdIO9JyN2GaIZ7Npkhx1 6SGKJMZOi3vWYowJyqrGBOARI5acsvbO8BXDy0xM59OOfE6C5vIvcCw8ylMXulUawx9c 6cHGtveOhTvrtSGV9lXUhtbEw2L3zyCa/5oDvwWZeKmzWsVdKsk/rD6bl+0dcOrH6ZOx Sztw== X-Gm-Message-State: AJIora9dVZ0fPCRfmeZfWlggme/9DaPfvsZ975uDcuAuBmHB3e3mEupG ZMgStHE4qxpME22qcLvvhBI= X-Received: by 2002:a63:2684:0:b0:415:18d8:78dd with SMTP id m126-20020a632684000000b0041518d878ddmr18866628pgm.33.1657588009396; Mon, 11 Jul 2022 18:06:49 -0700 (PDT) Received: from localhost (fmdmzpr02-ext.fm.intel.com. [192.55.54.37]) by smtp.gmail.com with ESMTPSA id c6-20020aa79526000000b0052ad6d627a6sm1965061pfp.166.2022.07.11.18.06.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jul 2022 18:06:48 -0700 (PDT) Date: Mon, 11 Jul 2022 18:06:47 -0700 From: Isaku Yamahata To: Yuan Yao Cc: isaku.yamahata@intel.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, isaku.yamahata@gmail.com, Paolo Bonzini Subject: Re: [PATCH v7 013/102] KVM: TDX: Make TDX VM type supported Message-ID: <20220712010647.GF1379820@ls.amr.corp.intel.com> References: <038362fa9e89312ff72c01ab3ae3bbbf522c3592.1656366338.git.isaku.yamahata@intel.com> <20220707025535.7vn6ifx4wq52qwes@yy-desk-7060> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220707025535.7vn6ifx4wq52qwes@yy-desk-7060> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Thu, Jul 07, 2022 at 10:55:35AM +0800, Yuan Yao wrote: > On Mon, Jun 27, 2022 at 02:53:05PM -0700, isaku.yamahata@intel.com wrote: > > From: Isaku Yamahata > > > > NOTE: This patch is in position of the patch series for developers to be > > able to test codes during the middle of the patch series although this > > patch series doesn't provide functional features until the all the patches > > of this patch series. When merging this patch series, this patch can be > > moved to the end. > > > > 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). > > if the "initialize TDX module on demand" means calling tdx_init() then > it's already done in kvm_init() -> > kvm_arch_post_hardware_enable_setup from patch 11, so may need commit > messsage update here. Somehow I missed to delete those lines. Will remove "Add a place ...". -- Isaku Yamahata