Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1179919rwb; Thu, 8 Dec 2022 07:37:26 -0800 (PST) X-Google-Smtp-Source: AA0mqf5ftk4ar42lc/5kkrnRPpchKFtwS78Uayli+SuGCVD2R1Pd5V1LI6KmHzN+S2OcQjh05rsN X-Received: by 2002:a17:906:60d0:b0:78d:3f87:1725 with SMTP id f16-20020a17090660d000b0078d3f871725mr28182686ejk.492.1670513846715; Thu, 08 Dec 2022 07:37:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670513846; cv=none; d=google.com; s=arc-20160816; b=f3YQI7OQ/q2Xen0tjIEm5PcNWgc//RcOanH3LTwtCG/YKODLcjqbEc1DVEEv/hr8SV AJlZe8Y/uxt6GO/tYUTE+q/5IWSVduGsBLk3DAeO4Vs1zHNddX2TLylEYfr6QfV/uGBa iDHan6BV0LrA1lwWhO7eW5kmBZPdNakQAmgYOPGn3ZEpl8ohuxCbqSXVxmG4bFf666iu Rj24bBwcRDJxhhwTnRiHhISo5oHQ6op+NHxID7hPHQs1QC/kjtug8RU5Bp+lyWh56HQB FQCe86bleDzhc/jAwy/R+TYBfAQZEovnexF6zzsD9OFMlGGC8py+eertiZ5W+5RtQYm4 x2NA== 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=FkvG5yTXclF9+g/2EkMbO7vGwoHB6cevpsYBKw0wTVc=; b=j4D3Uk7NrAZ+Ofx66v6J4dubOTM+3+67FrGzHQbtiAoaixJeH0OLd2hrecI/PnWWJ0 hOM2af/QTJi8SBmHfdC9RFrABcX0YhNVXrWZu/9QApYzcH5zFE/C81vR3DYWXOBDH77y cKkGnUn8OdZGs16UdxiZY8f/zwtXl3PWDtqlsYPI0WfCzbgmOF0FCg7HX9BgFT0UZ8ee BmisvSO0x6jHwc7TkG7zSf6CMga8fjk1q+DgO5F+b/yEZHj8yvfwYBatNog5Zfm1bDU3 GSdQpf3cIihMai0PLiXVajmUnGZE5l20fXaHwuvGBblRnjzxBZLrFG+L29k1gMk//+wE sD4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="b7a2xtL/"; 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 hw9-20020a170907a0c900b00781c9c3b6f5si20010837ejc.474.2022.12.08.07.37.01; Thu, 08 Dec 2022 07:37:26 -0800 (PST) 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="b7a2xtL/"; 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 S230216AbiLHPUU (ORCPT + 72 others); Thu, 8 Dec 2022 10:20:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230133AbiLHPT4 (ORCPT ); Thu, 8 Dec 2022 10:19:56 -0500 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05F7370B88; Thu, 8 Dec 2022 07:17:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1670512650; x=1702048650; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=sjIdGJ3dFJPHY95KafrCNYiB0J29f+N6H9kF/DT80ck=; b=b7a2xtL/fHY+OsZioh8IbWWuGRh6b5to7ztv211HqXj8Nx4yQDUf46gO t4p3mf0PopqAeiz/CYNlad+TyXAO+4fk4OJnVWL0d1RMofcOf5tK5K0/A qAcI0OrSyK+6p9z7EXxkNIGVFajnEUux6zr4dDGw//EHmiDfeLO+c1brO cSywAJnPg5oaIGRRD2KHVlMuvlEwgc31Pz+N9gF8Ty1ceNg/FSWC7deKi 4JQy2hoQdjtOgiPz5mEGf4lKpXkSSwBIjS2NuNNPwwGwN0f1pQtlWpFlV Uvte9jPMWphaoZuQ21HTcWXp3SCk4P9sCILs72Jz32mLX7AAA/cKJaU6F Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10555"; a="300621622" X-IronPort-AV: E=Sophos;i="5.96,227,1665471600"; d="scan'208";a="300621622" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2022 06:58:12 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10555"; a="771505225" X-IronPort-AV: E=Sophos;i="5.96,227,1665471600"; d="scan'208";a="771505225" Received: from mbielby-mobl.amr.corp.intel.com (HELO [10.209.7.219]) ([10.209.7.219]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2022 06:58:11 -0800 Message-ID: Date: Thu, 8 Dec 2022 06:58:09 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v7 11/20] x86/virt/tdx: Add placeholder to construct TDMRs to cover all TDX memory regions Content-Language: en-US To: "Huang, Kai" , "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" Cc: "Luck, Tony" , "bagasdotme@gmail.com" , "ak@linux.intel.com" , "Wysocki, Rafael J" , "kirill.shutemov@linux.intel.com" , "Christopherson,, Sean" , "Chatre, Reinette" , "pbonzini@redhat.com" , "linux-mm@kvack.org" , "Yamahata, Isaku" , "peterz@infradead.org" , "imammedo@redhat.com" , "Gao, Chao" , "Brown, Len" , "Shahar, Sagi" , "sathyanarayanan.kuppuswamy@linux.intel.com" , "Huang, Ying" , "Williams, Dan J" References: <32c1968fe34c8cf3cb834e3a9966cd2a201efc5b.1668988357.git.kai.huang@intel.com> <6d4d429a-ade2-771d-0e4c-788bef45041a@intel.com> <35aee96c1bb56322191ae442f3928d7dff064a92.camel@intel.com> <9a653cd2-70df-8c55-ac7d-5ddcb3b18b0c@intel.com> <60deb2ffe15e71bc91727aa04298c79f21a58c83.camel@intel.com> <02d2a49cbd319814a7afdf57ca3cc9809123952a.camel@intel.com> <98935273b05feb55fc52c69a48d31018e0124e58.camel@intel.com> <702c11db9820a074aee31c2958a565b21299607f.camel@intel.com> From: Dave Hansen In-Reply-To: <702c11db9820a074aee31c2958a565b21299607f.camel@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, 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 12/8/22 04:56, Huang, Kai wrote: > I haven't looked into the reason yet but I suspect the address isn't aligned (I > used __pa() to get the physical address). I'll take a look and report back. > > In the meantime, do you have any comments? Should I still pursue to keep them > as local variable on the stack? Yes, you should investigate the reason for the failure and try to understand both the success and the failure cases.