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 B8D2FD8027A for ; Mon, 29 Jan 2024 02:30:04 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=Brk+eNzx+8ffBlwPFiKrlZV1yDoyumjbm3YJk2Y1f3A=; 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=1706495403; v=1; b=GuVeZGxcwu3hGxXLmJdjP5NL2bYSrpijVcKMjThu2hqS75ZlDt+aLxlZu+oikfVzP8/P50lh roTegmCHTBKUqnS3wANEnmxOmvq1lfXQOaxdV1LD31Zek+RNkssnKLUeFRdApWUtDO88uWxDeQ0 JK4shs53UGDm+K7EKKY41kGc= X-Received: by 127.0.0.2 with SMTP id lLZHYY7687511xmJ3VAuEVl5; Sun, 28 Jan 2024 18:30:03 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by mx.groups.io with SMTP id smtpd.web10.5802.1706495402622037520 for ; Sun, 28 Jan 2024 18:30:02 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10967"; a="393266851" X-IronPort-AV: E=Sophos;i="6.05,226,1701158400"; d="scan'208";a="393266851" X-Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jan 2024 18:30:01 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,226,1701158400"; d="scan'208";a="3206983" X-Received: from srenx-mobl1.ccr.corp.intel.com ([10.239.216.131]) by orviesa003.jf.intel.com with ESMTP; 28 Jan 2024 18:30:00 -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 V2 0/5] Add EFI_UNSUPPORTED return for some Runtime Service functions Date: Mon, 29 Jan 2024 10:29:50 +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: mGhE0LDScZE6gAgZj5BlvzjTx7686176AA= 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=GuVeZGxc; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none) 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 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: Update some Runtime Service functions header EmbeddedPkg: Update some Runtime Service functions header ArmPlatformPkg: Update some Runtime Service functions header OvmfPkg: Update some Runtime Service functions header .../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 (#114657): https://edk2.groups.io/g/devel/message/114657 Mute This Topic: https://groups.io/mt/104024793/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-