From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=209.132.183.28; helo=mx1.redhat.com; envelope-from=lersek@redhat.com; receiver=edk2-devel@lists.01.org Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 4DB132118847D for ; Wed, 7 Nov 2018 06:46:32 -0800 (PST) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C84AD3DBEA; Wed, 7 Nov 2018 14:46:31 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-120-90.rdu2.redhat.com [10.10.120.90]) by smtp.corp.redhat.com (Postfix) with ESMTP id CAE105D763; Wed, 7 Nov 2018 14:46:30 +0000 (UTC) To: Ruiyu Ni , edk2-devel@lists.01.org Cc: Jiewen Yao , Eric Dong References: <20181107085907.158392-1-ruiyu.ni@intel.com> From: Laszlo Ersek Message-ID: Date: Wed, 7 Nov 2018 15:46:28 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20181107085907.158392-1-ruiyu.ni@intel.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Wed, 07 Nov 2018 14:46:31 +0000 (UTC) Subject: Re: [PATCH v2] UefiCpuPkg/SmmCpu: Block access-out only when static paging is used X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Nov 2018 14:46:32 -0000 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit On 11/07/18 09:59, Ruiyu Ni wrote: > From: Jiewen Yao > > When static paging is disabled, page table for below 4GB is created > and page table for above 4GB is created dynamically in page fault > handler. > > Today's implementation only allow SMM access-out to below types of > memory address no matter static paging is enabled or not: > 1. Reserved, run time and ACPI NVS type > 2. MMIO > > But certain platform feature like RAS may need to access other types > of memory from SMM. Today's code blocks these platforms. > This patch simplifies the policy to only block when static paging > is used so that the static paging can be disabled in these platforms > to meet their SMM access-out need. > > Setting PcdCpuSmmStaticPageTable to FALSE can disable the static > paging. > > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Jiewen Yao > Signed-off-by: Ruiyu Ni > Cc: Eric Dong > Cc: Jiewen Yao > Acked-by: Laszlo Ersek > --- > UefiCpuPkg/PiSmmCpuDxeSmm/X64/PageTbl.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Thanks, this has improved a lot! Laszlo