From nobody Mon Feb 9 12:43:25 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+97877+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+97877+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1672758194; cv=none; d=zohomail.com; s=zohoarc; b=g6L2gslfM4OpGpk/z9fTdXliDgKf8rTz95TlmmcjZVXSpmbtYLgrXf5grfbu97CzJkzTfBQ14RE8ZfMZ7UK7i7NgvoGgf+aOfeZjY90pEKVHQRIeZysBngZzGK746TlVGfZ7OOotcyLkayr3nMYI3ZFDE1aJYSV1D4SJF+beWUI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1672758194; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=Vh6Yqt1O9sY+2qcBqXTABnmXmeKWMlie3hOQgTYtRtU=; b=AjV+SnEjNDaW4rJWaCsDxXp+IBE6g6wpzpXlSgcajzN23sisCPD6o9mx4oO4r/2RKnnx1BjA17Ozv7/nmBdyXL/ihEX9eSvKCQmJQOuAyCRxX1YX8CggoC2YzgTetDdDopNE+ZRsBXz+QzqTDudw0i5yY+FdCUgnXM411mQndxM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+97877+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1672758194549676.4682997454422; Tue, 3 Jan 2023 07:03:14 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id DYOwYY1788612xMmxWPC1b4Q; Tue, 03 Jan 2023 07:03:13 -0800 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.groups.io with SMTP id smtpd.web10.65757.1672758192731999336 for ; Tue, 03 Jan 2023 07:03:13 -0800 X-Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-135-gW6QSOZ8MxuhVHC9OAWrDA-1; Tue, 03 Jan 2023 10:03:05 -0500 X-MC-Unique: gW6QSOZ8MxuhVHC9OAWrDA-1 X-Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id B78B429AA39A; Tue, 3 Jan 2023 15:02:58 +0000 (UTC) X-Received: from lacos-laptop-9.usersys.redhat.com (unknown [10.39.192.59]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9C055492C14; Tue, 3 Jan 2023 15:02:57 +0000 (UTC) From: "Laszlo Ersek" To: edk2-devel-groups-io Cc: Ard Biesheuvel , Gerd Hoffmann , Jiewen Yao , Jordan Justen Subject: [edk2-devel] [PATCH 4/4] OvmfPkg/SmmCpuFeaturesLib: drop obsolete API implementation Date: Tue, 3 Jan 2023 16:02:44 +0100 Message-Id: <20230103150244.66835-5-lersek@redhat.com> In-Reply-To: <20230103150244.66835-1-lersek@redhat.com> References: <20230103150244.66835-1-lersek@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,lersek@redhat.com X-Gm-Message-State: odmov3OvT9gS6MhmDeRjw2FJx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1672758193; bh=Vh6Yqt1O9sY+2qcBqXTABnmXmeKWMlie3hOQgTYtRtU=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=Ur6DziF92a8+R5LNSkdaiKxmqC6Pckmj5aLDD88Yidr0VCvrQmFQBlN5gnEJLxrYxXA WaM/ffIYbhbwZiB4fc67SPFHK0Uhj8PCPja7yCYjy2f1ou7ZN4qXcj4Qk++qsfSAz3jFW S5SrANZ4Lpr+sEUry1+NKcFUyPNcnY3FZ6M= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1672758195658100002 Content-Type: text/plain; charset="utf-8"; x-default="true" Commit 0426115b6738 ("UefiCpuPkg: Remove unused API in SmmCpuFeaturesLib.h", 2022-12-21) removed the declaration of the function SmmCpuFeaturesAllocatePageTableMemory() from the "SmmCpuFeaturesLib.h" library class header. Remove the API's (null-)implementation from OvmfPkg/SmmCpuFeaturesLib as well. Testing: OVMF builds, boots, and suspends/resumes (see earlier in this series). Cc: Ard Biesheuvel Cc: Gerd Hoffmann Cc: Jiewen Yao Cc: Jordan Justen Bugzilla: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4235 Signed-off-by: Laszlo Ersek --- OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.c | 31 ---------------= ----- 1 file changed, 31 deletions(-) diff --git a/OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.c b/OvmfPk= g/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.c index 9297cc5fa93a..6693666d043f 100644 --- a/OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.c +++ b/OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.c @@ -1348,34 +1348,3 @@ SmmCpuFeaturesCompleteSmmReadyToLock ( ) { } - -/** - This API provides a method for a CPU to allocate a specific region for - storing page tables. - - This API can be called more once to allocate memory for page tables. - - Allocates the number of 4KB pages of type EfiRuntimeServicesData and ret= urns - a pointer to the allocated buffer. The buffer returned is aligned on a = 4KB - boundary. If Pages is 0, then NULL is returned. If there is not enough - memory remaining to satisfy the request, then NULL is returned. - - This function can also return NULL if there is no preference on where the - page tables are allocated in SMRAM. - - @param Pages The number of 4 KB pages to allocate. - - @return A pointer to the allocated buffer for page tables. - @retval NULL Fail to allocate a specific region for storing page ta= bles, - Or there is no preference on where the page tables are - allocated in SMRAM. - -**/ -VOID * -EFIAPI -SmmCpuFeaturesAllocatePageTableMemory ( - IN UINTN Pages - ) -{ - return NULL; -} -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#97877): https://edk2.groups.io/g/devel/message/97877 Mute This Topic: https://groups.io/mt/96029305/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-