Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1109220rwl; Wed, 12 Apr 2023 08:21:59 -0700 (PDT) X-Google-Smtp-Source: AKy350bH8WmbO31d0ubLWf22a9XFKUxwgT96nesuXO2OOhhWxt9kvLU0IWl1yNfuISh8MHybXGdT X-Received: by 2002:aa7:957c:0:b0:63a:fadd:3479 with SMTP id x28-20020aa7957c000000b0063afadd3479mr3015465pfq.19.1681312919261; Wed, 12 Apr 2023 08:21:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681312919; cv=none; d=google.com; s=arc-20160816; b=UElmynsa6/uxKraJCe2cQOU/SL3k4AQepwXFyVGw/VCrMRYBcxhKoiBvj2J6KpTVPX LbqMSZAuaL5iqQjjBWfX41YIY3EijrWoZ+SqLCXRt3Qez8pFjMXFEMab/Mj2FJknc/vs /Lo5CwHP3fLXkGP3FC6Mg9MxxlGSKDkML9amqI7pbrPEDg5/pwdPG1KCM0p48O1gxihl AAQLWL95H+rmUdc3/HWlujrPKEB+EzgfP0ot+MtBS2X+sedLGXMy7SZ6Y2hRZ0B85ULv MkOCp36QiEgcTS/fVVXNVistOcngCGderHIjhATyla9zbdrdbNSgWOGt4F+GcS+w6Hma QRnA== 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=sA8JHcgvrxhSVz821bxrRSUXyuO4xBDSEv5biiN4ZAo=; b=AaNfCHzclWhoY4OZuBzsdEb5DzKwB34GVVnqqHPIqbebMPGMeLSAcUoHS+9X3Qua6k xia3wIltnMCpRGqT4xVsxH0oebNLQue9Lsfm08xnTkVS4MeTnWlg0Dj8aqEZiKBV5Q89 S2DTcCmCx929GKP8L00/xyzVI2BwytCNrCbMNizVMMz6cDlHGHF3pXSX2fSegxnWV3hI bM0d3lkgDuiJZmMlO1H5gNTihzLhkEQ7jBVftyymZboZ3pepNR8xuhBFo6qAAXhqSErI t7kHYzoYZN9CiuVHknSJ2biO2FK8ED2TZnSIFlunbq4Nlfafz1rt4NtudxZwk27iDOwn pqUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ljfThzLf; 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 z3-20020aa79583000000b0063806e9892fsi8045670pfj.243.2023.04.12.08.21.47; Wed, 12 Apr 2023 08:21:59 -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=ljfThzLf; 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 S231392AbjDLPVV (ORCPT + 99 others); Wed, 12 Apr 2023 11:21:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230422AbjDLPVO (ORCPT ); Wed, 12 Apr 2023 11:21:14 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 217E39747; Wed, 12 Apr 2023 08:20:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681312846; x=1712848846; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=82vzrTsaISkLwTxHX1xig08A6dbNj0D3USYYKg0gUoo=; b=ljfThzLfAJrrUL2X/03CUUa2efqoQw+boh1Vm+K2oagP/3djJZA0EwK5 cvDH2xhXAnsUqGehLLg8IAutlpjwB27q6UUazoMzpL1Fr6yNk5HDtyvVY bPmgt06fjXF7UKoFffScpjGMlcAgsYoIzQZ5JXszAUG24rKu3XvrbvMBm +6ubZKqxbfrpbHr94W0BiHJkuUBJgGOw9og6XqJJ+pOqe0FFGQEQiOzE/ ecLeMd2BwzBrr0l+iGzwRcXlyrEO4f7aU80JCXZPQvvK3YTB+gTLb6u5W Z4I8MI4RJiOZqpQb894kQboaB49LTc6d8qd8EGk4xBkBQKqD5jFH0ld9a w==; X-IronPort-AV: E=McAfee;i="6600,9927,10678"; a="346603930" X-IronPort-AV: E=Sophos;i="5.98,339,1673942400"; d="scan'208";a="346603930" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2023 08:19:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10678"; a="863348025" X-IronPort-AV: E=Sophos;i="5.98,339,1673942400"; d="scan'208";a="863348025" Received: from swengsoo-mobl.gar.corp.intel.com (HELO box.shutemov.name) ([10.252.56.9]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2023 08:19:44 -0700 Received: by box.shutemov.name (Postfix, from userid 1000) id 0533310B93C; Wed, 12 Apr 2023 18:19:38 +0300 (+03) Date: Wed, 12 Apr 2023 18:19:37 +0300 From: "kirill.shutemov@linux.intel.com" To: "Michael Kelley (LINUX)" Cc: Dexuan Cui , "ak@linux.intel.com" , "arnd@arndb.de" , "bp@alien8.de" , "brijesh.singh@amd.com" , "dan.j.williams@intel.com" , "dave.hansen@linux.intel.com" , Haiyang Zhang , "hpa@zytor.com" , "jane.chu@oracle.com" , KY Srinivasan , "linux-arch@vger.kernel.org" , "linux-hyperv@vger.kernel.org" , "luto@kernel.org" , "mingo@redhat.com" , "peterz@infradead.org" , "rostedt@goodmis.org" , "sathyanarayanan.kuppuswamy@linux.intel.com" , "seanjc@google.com" , "tglx@linutronix.de" , "tony.luck@intel.com" , "wei.liu@kernel.org" , "x86@kernel.org" , "linux-kernel@vger.kernel.org" , Tianyu Lan Subject: Re: [PATCH v4 2/6] x86/tdx: Support vmalloc() for tdx_enc_status_changed() Message-ID: <20230412151937.pxfyralfichwzyv6@box> References: <20230408204759.14902-1-decui@microsoft.com> <20230408204759.14902-3-decui@microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,URIBL_BLOCKED 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 Tue, Apr 11, 2023 at 04:28:20PM +0000, Michael Kelley (LINUX) wrote: > From: Dexuan Cui Sent: Saturday, April 8, 2023 1:48 PM > > > > When a TDX guest runs on Hyper-V, the hv_netvsc driver's netvsc_init_buf() > > allocates buffers using vzalloc(), and needs to share the buffers with the > > host OS by calling set_memory_decrypted(), which is not working for > > vmalloc() yet. Add the support by handling the pages one by one. > > > > Co-developed-by: Kirill A. Shutemov Co-developed-by requires[1] Signed-off-by. You can use mine, if you want. [1] Documentation/process/submitting-patches.rst -- Kiryl Shutsemau / Kirill A. Shutemov