Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1115072rwl; Wed, 12 Apr 2023 08:26:34 -0700 (PDT) X-Google-Smtp-Source: AKy350Zk+WMeYtmOPwA78DPDN0upqP1tiys+3vnoXCfnWR0ML+p0dmQsuAtXCtKZeH2kcGTT2mSY X-Received: by 2002:a17:902:db09:b0:1a2:8924:224a with SMTP id m9-20020a170902db0900b001a28924224amr27147817plx.25.1681313193829; Wed, 12 Apr 2023 08:26:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681313193; cv=none; d=google.com; s=arc-20160816; b=E/t7rpiAFShZ1ZvCC8aL9lXFCFH51A2Lsd4cicQgP6MhAxjj2mil69LB8r7vlCDnU2 hmrjCc1+79z4x7bcYI3yKefcAF3PHcm/DbMNxG0EyzGXLog6BalOkkHHxrK9vwSZkS1o Itapn+xkEZZcSjOWQ+M5447uM+6P9VMYQ7lbMkHS9UnqJLooVaboKktkl+nJ6pnwWa5V LZyrTAqkLQ5+ANwY0JHIR7avPKuHt/apXkkoZ/WcAXdoYHkeH4Nl4Q65TKGyVnBwvp3T 4yDSVIjJnwkJVMaM4t7q7qqZcLVGWDWVqI4XmURuyN4ZwA8vzriJ8uf7V/Oa3SohDyiH W3gw== 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=n1i9IwrPAGox11d/vRDPV3GBjyNAxc5rsce01eEd0eY=; b=edvuYo0fa3VaTy1bj3AR0GlaHj7B7fkztLPTFkiFAwn2vrn5beQLSlQflG3qYpOzHE qyjFAAvMILK344ptGjrf3kn6JV1x5lMKKJvmZFK5MZOAXudLsAJBYM48lAzrmLPcRftF zb8bX8D5FyVJPocpK6fRGHlcxKbgrYKzJ7MDy8GKYHdF/h9rVCHQ6g2oWoEUC/GHpiHd KqDLqvJoV2FzoDyrN0s5D9hQkbZnkyKD4AhTjbyoGmyhWyO+h+zKYRsu+KbIhJ1a2F4P hnQ6DQKvYmHAgHjWicMi0cGN9UTyjpiz8OcrcAB9wefizH3rZ4NHlA71gV4LgNq+X20f BiyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Hl0UR8PE; 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 h11-20020a170902b94b00b0019f27fe9d45si2214828pls.463.2023.04.12.08.26.19; Wed, 12 Apr 2023 08:26:33 -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=Hl0UR8PE; 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 S231317AbjDLPVp (ORCPT + 99 others); Wed, 12 Apr 2023 11:21:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231515AbjDLPVk (ORCPT ); Wed, 12 Apr 2023 11:21:40 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E6B293FD; Wed, 12 Apr 2023 08:21:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681312877; x=1712848877; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ue5FuMgskg3zbh2X+bvZ/sBZqu92kRDdqi3iT72T2HQ=; b=Hl0UR8PEeugcepa//CrxxMBRFunlcMCrqzUZq46qbJoKgnivielIWSLx mte5kbnsZm8yovuKIMcp0a+08hbfL7oTOKzTftnqvK18cU6bSYlKfT/Ag YTRJRiF0yT7rae7+jwvkyPiQPfZZuQXMDaES3eZRM3rTbNXJ6JibGgMSy 1nYzmtFsHMNByzU4jsyrxtq1L0aHIH6ZdBy7E8R/1oIzkAhG7hF8+oIGM Wvy5aVtlVKLUzbg2eDM+zqY9k9iIcycJNAxigQZi0oWq55WUjFj9a5tQJ F/016EpRZGoi+sdeII+iwDz5XZbZi/Nng+Hn3B31FP2+xMPX0SMrcV93t Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10678"; a="324289046" X-IronPort-AV: E=Sophos;i="5.98,339,1673942400"; d="scan'208";a="324289046" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2023 08:20:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10678"; a="719411724" X-IronPort-AV: E=Sophos;i="5.98,339,1673942400"; d="scan'208";a="719411724" Received: from swengsoo-mobl.gar.corp.intel.com (HELO box.shutemov.name) ([10.252.56.9]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2023 08:20:42 -0700 Received: by box.shutemov.name (Postfix, from userid 1000) id 8552610B93C; Wed, 12 Apr 2023 18:20:37 +0300 (+03) Date: Wed, 12 Apr 2023 18:20: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: <20230412152037.upiciyn5zhmilw3r@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: > Does anyone know if there is a reason to use one vs. the other? > slow_virt_to_phys() is x86-only, but that's not a problem here. slow_virt_to_phys() is more generic as it works for non-vmalloc addresses, but generally they are equivalent for the use. -- Kiryl Shutsemau / Kirill A. Shutemov