From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id B3FCBAC0F3F for ; Fri, 2 Feb 2024 08:21:22 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=PaAqd0YavZznMONMr+NtuoDgGpD6uJWx0jkCFkJtVyc=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Transfer-Encoding; s=20140610; t=1706862081; v=1; b=N/IMJ07d7xZAvUnw/mSu4Ka1NGKp7BP/A3ZGOf5HSq6OUPMZjnzEfkfPcL6YtTTmf1neX3iV ap1KJE4fxrlm8BmCbRDf5wmirZnQjgnJ1cNb5lflSoR5VTPqTWNkqrwEV6TsL8xdvFpT5dJIyyS 9KrvTs472pFbIDzgIRgqnrgM= X-Received: by 127.0.0.2 with SMTP id sSTTYY7687511xWKMpowxU3W; Fri, 02 Feb 2024 00:21:21 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by mx.groups.io with SMTP id smtpd.web10.18586.1706862080178982670 for ; Fri, 02 Feb 2024 00:21:20 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10971"; a="435249693" X-IronPort-AV: E=Sophos;i="6.05,237,1701158400"; d="scan'208";a="435249693" X-Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Feb 2024 00:21:19 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,237,1701158400"; d="scan'208";a="22617" X-Received: from srenx-mobl1.ccr.corp.intel.com ([10.239.216.131]) by orviesa009.jf.intel.com with ESMTP; 02 Feb 2024 00:21:17 -0800 From: "Ren, Suqiang" To: devel@edk2.groups.io Cc: Michael D Kinney , Liming Gao , Zhiguang Liu , Leif Lindholm , Ard Biesheuvel , Abner Chang , Jiewen Yao , Laszlo Ersek Subject: [edk2-devel] [PATCH V3 0/5] Add EFI_UNSUPPORTED return for some Runtime Service functions Date: Fri, 2 Feb 2024 16:20:48 +0800 Message-Id: MIME-Version: 1.0 Precedence: Bulk 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,suqiangx.ren@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: NDGNra4Q7HmyrHVVWr2YnA9Zx7686176AA= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b="N/IMJ07d"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io According to UEFI Spec 2.10 page 206, if any EFI_RUNTIME_SERVICES* calls are not supported for use by the OS at runtime, an EFI_RT_PROPERTIES_TABLE configuration table should be published describing which runtime services are supported at runtime. So need to add EFI_UNSUPPORTED return for some Runtime Service functions. REF: UEFI spec 2.10 section 8 Services — Runtime Services V3: Update the commit message to align with the change for each package. V2: Update some Runtime Service functions header return on both C and H header files. V1: Add EFI_UNSUPPORTED return for some Runtime Service functions on UefiSpec.h file. Signed-off-by: Suqiang Ren Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Cc: Leif Lindholm Cc: Ard Biesheuvel Cc: Abner Chang Cc: Jiewen Yao Cc: Laszlo Ersek Suqiang Ren (5): MdePkg: Add EFI_UNSUPPORTED return for some Runtime Service functions MdeModulePkg: Align RuntimeDxe function headers with UEFI return values EmbeddedPkg: Align RealTimeClock function headers with return values ArmPlatformPkg: Align PL031 library function headers with return values OvmfPkg: Align XenRealTimeClockLib function headers with return values .../PL031RealTimeClockLib.c | 22 ++++- .../Include/Library/RealTimeClockLib.h | 21 +++- .../RealTimeClockRuntimeDxe/RealTimeClock.c | 13 ++- MdeModulePkg/Core/RuntimeDxe/Runtime.c | 10 +- MdeModulePkg/Core/RuntimeDxe/Runtime.h | 10 +- .../CapsuleRuntimeDxe/CapsuleService.c | 13 +++ .../MonotonicCounter.c | 3 + .../Universal/Variable/RuntimeDxe/Variable.c | 40 ++++++-- .../Universal/Variable/RuntimeDxe/Variable.h | 40 ++++++-- .../RuntimeDxe/VariableSmmRuntimeDxe.c | 99 +++++++++++++++---- MdePkg/Include/Library/UefiRuntimeLib.h | 44 ++++++++- MdePkg/Include/Uefi/UefiSpec.h | 46 ++++++++- MdePkg/Library/UefiRuntimeLib/RuntimeLib.c | 43 +++++++- .../XenRealTimeClockLib/XenRealTimeClockLib.c | 22 ++++- 14 files changed, 362 insertions(+), 64 deletions(-) -- 2.26.2.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#115027): https://edk2.groups.io/g/devel/message/115027 Mute This Topic: https://groups.io/mt/104115876/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-