From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (EUR04-HE1-obe.outbound.protection.outlook.com [40.107.7.59]) by mx.groups.io with SMTP id smtpd.web10.12799.1684401000952269112 for ; Thu, 18 May 2023 02:10:01 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=T5J0MSFL; spf=pass (domain: arm.com, ip: 40.107.7.59, mailfrom: sami.mujawar@arm.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wuPsKTPSr6EpYO3aOnyOjIwA9j725Griq7G+aTvkVEo=; b=T5J0MSFLDt0lwWEE6JvDKoOnAT0Aep9ihAsKCMzGDy6voFtRMtp6mvThgCG9pjkAXajCo2ukkqjwA8orrLLZRdWCzcQAjrzZqTbtczPNjBF3ksnscXZkoq/ES8zcw0BXkcPrWTpGk5wdNT/Jpdk1xYY1uK6am7fMxC07ph1z/cQ= Received: from AM6P194CA0033.EURP194.PROD.OUTLOOK.COM (2603:10a6:209:90::46) by PR3PR08MB5819.eurprd08.prod.outlook.com (2603:10a6:102:92::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.19; Thu, 18 May 2023 09:09:52 +0000 Received: from AM7EUR03FT004.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:90:cafe::f1) by AM6P194CA0033.outlook.office365.com (2603:10a6:209:90::46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.19 via Frontend Transport; Thu, 18 May 2023 09:09:52 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM7EUR03FT004.mail.protection.outlook.com (100.127.140.210) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.19 via Frontend Transport; Thu, 18 May 2023 09:09:52 +0000 Received: ("Tessian outbound 99a3040377ca:v136"); Thu, 18 May 2023 09:09:52 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 301798a32c53fe59 X-CR-MTA-TID: 64aa7808 Received: from d6931e1e5f81.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 2E4A4E6F-1082-4732-BB7A-725F351A55B4.1; Thu, 18 May 2023 09:09:41 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id d6931e1e5f81.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 18 May 2023 09:09:41 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gTb+4wr+aZvh3d1742wUB+eh4s0GTWBUm70UOTR+ag/CATH5bYTsXJceiylYNmBffQoAiqBIJ3DIMDZy6FaSX5Y+/Hm9HJ/IM80XvmCqmvdIm/8kc6ibJ2DSPFZnlc2+62LP3nlxOFhWDFqKPregz3JSj8JBOwRHKHGnueaNJJoGHRinm0VPIPo7QfKZ21BlnkBwBeK8v71f4G3UDCy7X3YHihJNwYDkjApIVPa6ot0SqKk+wrjTuIqrO+TOOiNzjyCDbozCb/T8hn6Q1gGEdDR6PkPWdF1DAVFScdIL3t+B0psYLTfz/v7rNwEOGJyHWQ9d85486tsE00EsH6OlHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=wuPsKTPSr6EpYO3aOnyOjIwA9j725Griq7G+aTvkVEo=; b=bYxhol68f3OtJnZWERQAbtvGE3ip+o7NZBU4+A0g4Opn8RWLd7cR6bcbL+d/lor++6DP5jKgZiVCI6mlzer9Kx8Kj1V54LKhd3KODlInVuqCoLAS4dVhrqMIOu3HRpL6px+54jUlQrQt29JERb63FJLUUr3a1nerx+HkoR/fxIDf7CtEd87JwN496qgA+/mMwzHx+gC0zWbOYChcjA5nL4S0DuoXBSYU+qYBzIPxAsYjXHCLxndoXHcrD3+DozjDtBrMRYPzcLrwzfK/oMuTpYF2x+kZFjK211W2Pgmj/XwDpGRUMjkC2b4wzcQFhmpAC2sND22YmkpVt4yuxgYvdQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wuPsKTPSr6EpYO3aOnyOjIwA9j725Griq7G+aTvkVEo=; b=T5J0MSFLDt0lwWEE6JvDKoOnAT0Aep9ihAsKCMzGDy6voFtRMtp6mvThgCG9pjkAXajCo2ukkqjwA8orrLLZRdWCzcQAjrzZqTbtczPNjBF3ksnscXZkoq/ES8zcw0BXkcPrWTpGk5wdNT/Jpdk1xYY1uK6am7fMxC07ph1z/cQ= Received: from DB7PR05CA0048.eurprd05.prod.outlook.com (2603:10a6:10:2e::25) by GV1PR08MB8035.eurprd08.prod.outlook.com (2603:10a6:150:98::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.19; Thu, 18 May 2023 09:09:37 +0000 Received: from DBAEUR03FT018.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:2e:cafe::cd) by DB7PR05CA0048.outlook.office365.com (2603:10a6:10:2e::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.19 via Frontend Transport; Thu, 18 May 2023 09:09:37 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; pr=C Received: from nebula.arm.com (40.67.248.234) by DBAEUR03FT018.mail.protection.outlook.com (100.127.142.74) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6411.18 via Frontend Transport; Thu, 18 May 2023 09:09:37 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Thu, 18 May 2023 09:09:37 +0000 Received: from E114225.Arm.com (10.1.196.36) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2507.23 via Frontend Transport; Thu, 18 May 2023 09:09:36 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , , , , , Subject: [PATCH v1 2/6] ArmVirtPkg: Define variables for emulating runtime variables Date: Thu, 18 May 2023 10:09:31 +0100 Message-ID: <20230518090935.10984-3-sami.mujawar@arm.com> X-Mailer: git-send-email 2.16.2.windows.1 In-Reply-To: <20230518090935.10984-1-sami.mujawar@arm.com> References: <20230518090935.10984-1-sami.mujawar@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: DBAEUR03FT018:EE_|GV1PR08MB8035:EE_|AM7EUR03FT004:EE_|PR3PR08MB5819:EE_ X-MS-Office365-Filtering-Correlation-Id: 21e1436c-cee5-47aa-0e9a-08db577fa3d0 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: F9yEH9WQ7ldaJ05WohQOj/msQJE9dfmDEW5ZwBcbDG2SZFpO7yK1wudGg1LFovObthYqo4AwTWmJKqGYoIqJ8BvaaxhAYOpUJcbuaidsIaDqpePxgH19UMutpbAXNiwdvbXEIf4OtDDUPqpaDi4FgAj6YbmPiU2Hd1hNBaAd/EvdIyb9rs8YHHWT6gD9O/3cCGFifaLhwvBsETHN8A+FYtxy09sRJg9JSbw3BO8/LoJZcl55e+z5IRc7st7ZPFSB/AxUENWM944iwI0dG6NXfhQa7rfRrNpwKfWXdtfyZqJBWSTwUf7aN8GI047T9WhYYeRW00K3XsQlASinp4QbDsn8g3uwTsceaUQI7FPQtDtXtZIlF/ggGNksKZHBRHEag6TsMf2pNnvBtaNbMfEI3SV6oIkFx69xndlPoGydaQb6hfnzhdDBYr/kYoZ9FHVGElvk/EJPRgndW58VY20ONTJYrlRTBN+49bPUYMjUcyj2wLhdo/SAaVf7PvWJrAkJUvQwURl0gfaXdyKW7HcKw+4epVpenVTs+4tuzK+DlS1yFCRGYIxhVfmW1baSazOqjtstLoFvW5U0ODvn9SyWwAz9pPoDVsyANeHdSCCf2HijpiHle3MhnU7G/em1AYXktstO4hssah0evvdbPLDxrNk8huunW4DxuxhmY8g7k5HCaUIZQjuiFmLPw9YW48krrRZBA4B5+od8oOpvFxgAF3nBChm6ePDO5ymGsxbzqGT/WGvoLDssqiAM3Y5CSv4STtJsFfOQXB0WI9tIg/tHKA== X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230028)(4636009)(396003)(136003)(39860400002)(376002)(346002)(451199021)(46966006)(36840700001)(40470700004)(40460700003)(1076003)(26005)(186003)(36860700001)(47076005)(426003)(2616005)(83380400001)(336012)(5660300002)(6916009)(70206006)(44832011)(70586007)(4326008)(316002)(41300700001)(8676002)(8936002)(6666004)(7696005)(54906003)(40480700001)(478600001)(2906002)(36756003)(86362001)(82310400005)(356005)(81166007)(82740400003)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR08MB8035 Return-Path: Sami.Mujawar@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT004.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 0fac6927-9d55-489c-000a-08db577f9b12 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TWLM9FpeoNXJD4fvXCSvCAmhKQ2GtUgvnRG8F1XxZBHBi04P1UojghX7bUQbELdnbAFg0QneCF9q+cLp7/Xx+rF7VEEO0ODdm/g25GcLYSjR9Tvx+L3SbDbDldV0D6GXL/EdzTCTPRJG4oCOx9FCFkxRutNS6xn8CKRLciwYkZZSXbH45oQPOw9CyebEdfhGJt85wH7NC5GDqf8m1P5SBGNQ3s9YMDR0ZFF83SwKO+cDzga84WmGpZqj/Sx6eHlOXWHLO2yBeirGxVkeKTWMocuQ8b1gbKZjbfdTkaVNLoQUhPaBmDzpWVt+WjHuaW6eDI8lFlyNLCzNAnflYMuo36ROtIcsEc1PpwVzi7ZJexAqHTIfmClyvEpYfnu1/dlKZW1K8clJ7PAQ+FgpXDyCyJ+NgWx+HsiBSl20tIXcAIPBn89wcAyH/wHCQuFjYq0UiW4y/RUrYYEqipi/I8+YF+ToZ+qeK2Y+RVAHXoIzQp4SL91MaNA+P9VPnJpwcv1Prmlx0DrYnPd7CDss/4TouJCHb3LF3RntwCdoBMpY5BCzJpBXkbUexw8f/J6wbG1EXqUXm7K4f2mT0K/5+p6eNsgBMBRLI3g2vFg6/dOHXVl14x7sL186+6Ykrp9aTd++V+7NjEzEtlTV53P5FuzCVgQ7/Xqjead6Uxt3gn0xEoMGwT5M3Or2qZRoijlU5xUhryvaAAyMvDZp91HirZGgGf8fhOtlUY7QSQhSlcgzGiFsVxNtt6/TcCh8PYN/9CQP X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(13230028)(4636009)(136003)(39860400002)(396003)(376002)(346002)(451199021)(40470700004)(36840700001)(46966006)(316002)(2906002)(478600001)(41300700001)(6916009)(8936002)(4326008)(8676002)(54906003)(44832011)(6666004)(70586007)(70206006)(5660300002)(7696005)(1076003)(26005)(40460700003)(82740400003)(81166007)(186003)(2616005)(83380400001)(40480700001)(47076005)(36756003)(36860700001)(86362001)(82310400005)(336012)(426003);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 May 2023 09:09:52.3372 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 21e1436c-cee5-47aa-0e9a-08db577fa3d0 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM7EUR03FT004.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR08MB5819 Content-Type: text/plain Kvmtool allows guest VMs to be launched with or without a CFI flash device. When the kvmtool option '--flash ' is used to launch a guest VM a CFI flash device maps the flash file that was specified at the command line. The NorFlash driver uses this flash as the variable storage backend. However, when the above option is not specified, a CFI flash device is not present. In such cases, the firmware can fallback to use emulated runtime variables (which uses the VMs DRAM as the storage backend). Therefore, define the PCD PcdEmuVariableNvModeEnable required to enable the emulated runtime variable support, but do not enable it by default. The firmware is expected to dynamically discover if the CFI flash is present and subsequently enable NorFlash or emulate the runtime variables. Signed-off-by: Sami Mujawar --- ArmVirtPkg/ArmVirtKvmTool.dsc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ArmVirtPkg/ArmVirtKvmTool.dsc b/ArmVirtPkg/ArmVirtKvmTool.dsc index d0afe1b49e250c554313c2077b89650d6f6d67cb..25920ab4ae3cce20fdbe8e9ff7e25b8696d2c851 100644 --- a/ArmVirtPkg/ArmVirtKvmTool.dsc +++ b/ArmVirtPkg/ArmVirtKvmTool.dsc @@ -1,7 +1,7 @@ # @file # Workspace file for KVMTool virtual platform. # -# Copyright (c) 2018 - 2022, ARM Limited. All rights reserved. +# Copyright (c) 2018 - 2023, Arm Limited. All rights reserved. # # SPDX-License-Identifier: BSD-2-Clause-Patent # @@ -219,6 +219,10 @@ [PcdsDynamicDefault.common] gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x40000 + # Define PCD for emulating Runtime Variable storage when + # CFI flash is absent. + gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable|FALSE + ## RTC Register address in MMIO space. gPcAtChipsetPkgTokenSpaceGuid.PcdRtcIndexRegister64|0x0 gPcAtChipsetPkgTokenSpaceGuid.PcdRtcTargetRegister64|0x0 -- 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'