From nobody Wed Feb 5 17:51:09 2025 Delivered-To: importer@patchew.org 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+105080+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one); dmarc=fail(p=none dis=none) header.from=arm.com Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1684508177756180.32172238930934; Fri, 19 May 2023 07:56:17 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id mwYNYY1788612x18TAx4pFRK; Fri, 19 May 2023 07:56:17 -0700 X-Received: from EUR01-HE1-obe.outbound.protection.outlook.com (EUR01-HE1-obe.outbound.protection.outlook.com [40.107.13.50]) by mx.groups.io with SMTP id smtpd.web10.28527.1684508176527335903 for ; Fri, 19 May 2023 07:56:17 -0700 X-Received: from DB3PR08CA0021.eurprd08.prod.outlook.com (2603:10a6:8::34) by PA4PR08MB7594.eurprd08.prod.outlook.com (2603:10a6:102:270::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.19; Fri, 19 May 2023 14:56:04 +0000 X-Received: from DBAEUR03FT028.eop-EUR03.prod.protection.outlook.com (2603:10a6:8:0:cafe::e) by DB3PR08CA0021.outlook.office365.com (2603:10a6:8::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.21 via Frontend Transport; Fri, 19 May 2023 14:56:04 +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 (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+105080+1787277+3901457@groups.io; helo=mail02.groups.io; 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 X-Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DBAEUR03FT028.mail.protection.outlook.com (100.127.142.236) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.19 via Frontend Transport; Fri, 19 May 2023 14:56:04 +0000 X-Received: ("Tessian outbound 8b05220b4215:v136"); Fri, 19 May 2023 14:56:04 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: ca8479a99b172251 X-CR-MTA-TID: 64aa7808 X-Received: from 6a0699275af1.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 7FC202C3-66B9-42E2-BAA0-160523A3F153.1; Fri, 19 May 2023 14:55:52 +0000 X-Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 6a0699275af1.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 19 May 2023 14:55:52 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CKVXRxTEpthnySMmQHIQFcQfWtXzkM8BZZ6++N706OKOKZXhfBPXuWBKqGMzQmtA1056YxI9OWAJq3uRkhb2bJMXiNUm08kPn7J7MRK3VOTQLcq1T6XXgwrO+SsggYrAhiClhDgTLKeGS8uvIgfRGxOpRbnloMYT8lq3TonroLcrs/o8l3KnyrdXBKeuyvj+MYddnVEt3G3zG0kjsUISbubD8Ow0vnRZcZysZTjRY3o9ig9O/UHoTjFKWVJYdnbM2ZzX0ojksEamWBqmnBzARjqa3nAkhcyCnNRhsm3eAWPf1u9YXvSM9jeDI5WplCh9pcSRFoGhiRZkpqNvOEqpLA== 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=g81MfpdllYWIzmqSRZ9Hq8z+e/7DVAaDRjxocYqWeJNZZmO3V2hopLY5jLNOXT+IUIUzWCtlBq4m8p4pYWXlxx1U5/KLk6xea3sNXfciyot6hyKg0qf6WdGPY8UQbqQqfPsgjHcUmsbN7RvrE1pv1w382FiA6k2F5kZNFUENbPhl3MQtVgC4FHHWRW/AFVQPkxAX+coxFVAneCPbx4NAhDyunf29PqT8K5CVo57hR7GTMpLz1zRS1CxufJO20z0+IGp4sX/TRTMz0Sqr2OvXLR8CLzXhnhFeNTELJz+HTxqbGYGLehJ5WtJ20cF1XLrYIaicv4sMthq8jjjZYW5UyQ== 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 X-Received: from AM0PR02CA0201.eurprd02.prod.outlook.com (2603:10a6:20b:28f::8) by PAXPR08MB6464.eurprd08.prod.outlook.com (2603:10a6:102:df::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.21; Fri, 19 May 2023 14:55:47 +0000 X-Received: from AM7EUR03FT056.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:28f:cafe::c3) by AM0PR02CA0201.outlook.office365.com (2603:10a6:20b:28f::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.21 via Frontend Transport; Fri, 19 May 2023 14:55:47 +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 X-Received: from nebula.arm.com (40.67.248.234) by AM7EUR03FT056.mail.protection.outlook.com (100.127.140.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6411.19 via Frontend Transport; Fri, 19 May 2023 14:55:47 +0000 X-Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Fri, 19 May 2023 14:55:42 +0000 X-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; Fri, 19 May 2023 14:55:42 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , , , , , Subject: [edk2-devel] [PATCH v2 2/5] ArmVirtPkg: Define variables for emulating runtime variables Date: Fri, 19 May 2023 15:55:37 +0100 Message-ID: <20230519145540.46700-3-sami.mujawar@arm.com> In-Reply-To: <20230519145540.46700-1-sami.mujawar@arm.com> References: <20230519145540.46700-1-sami.mujawar@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AM7EUR03FT056:EE_|PAXPR08MB6464:EE_|DBAEUR03FT028:EE_|PA4PR08MB7594:EE_ X-MS-Office365-Filtering-Correlation-Id: 44354732-ea9d-4c9c-6ba6-08db58792b33 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: A1vHRvMn3OGUP17g0Q4QJe3KfzCc2ZNOwVCCODv0qU0OhpIWEO63MIp6YgHZjpt43jVO/VxuCZUK3qI28ZvLc1PMAaQ1HL/HlO9DnI+wMet4rDoKeR0h8BKjhqV5DQw14sEfeGPw0sXopIt0fbLQ3hH41VcaHYwu0AVrSrxQQoQv/IFt13OrKKVjdu6ZGw6J4Abr/pORm09A03Y5h1Hkb1hLHxnPmtLuG8PIECml3SIqmsUo5ClK8iaHGsGGiFaJDutAbKABCyGjHOlvr3to3+Yyn/QmszHDSKiLRyynsPJyYr6bXUuWcpad2y2yX/r5Fl9cY6aCWlIiHjqpTjprlWppE33DzoIfGfaH92UkUscyQwwxiVomAOqnSgaQVmijwyF+8ikPgoWL7C0ky39LpakkUrPtxzTdeb+/KNf9LQz5x+dgiKQyS+fd2bUyiz67ny4KHbbGYXWNAaBK8bfnPfwZeovzky8WmEClNTRF+njrB33dNqWNlsPK6muVZnNMgABxOLmGqKUXT8fmD85hMYrOFshNT0BNlyzTnzjk2WU/K/ZvBqcaD3UvCgyH0EWdSmfZMcWHdPifaRopT9TOCGBJ+g+oC1+0gRXemUijsTqEXh2NzTK/eEZy9/9S5IRqxnltCekSX7X6i/Wc5TXa6enoQ/HvnVOcivHC2BYodQHhv+2baomXmgmo1ESQy7hOfsD5a0GJdRZJWecBgpzR71Q+iFkqiy2w55ffJlEl77UeaSfyy64WoVhGIytB9dZCRY74dIH365t8UwQO2bctvQ== 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)(136003)(346002)(396003)(39860400002)(376002)(451199021)(36840700001)(46966006)(40470700004)(7696005)(6666004)(83380400001)(478600001)(2616005)(336012)(426003)(36860700001)(40480700001)(1076003)(26005)(47076005)(36756003)(186003)(356005)(81166007)(86362001)(82310400005)(82740400003)(40460700003)(6916009)(4326008)(316002)(44832011)(70206006)(70586007)(2906002)(41300700001)(5660300002)(8936002)(8676002)(54906003)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR08MB6464 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT028.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: a64c4185-de12-45fe-4850-08db58792129 X-Microsoft-Antispam-Message-Info: jnXTS+ZCFDiYkFAAb+9cpEbL2YkAiwdNwaRVUswS+3Ax0AmoUvIrBu4UnnWkT3sb7d6SYLv2IFUVFSl271wslW6Ca8Oc9Zy9zjY34ONTzkCpr1tetAO8xLGUb0l/N5zmf8HQyoNlahZaSWFGOW3hbnUQ3oqdUP1o33+g+Gk0jP6quUlxolfGzHVNUY1Xg23s6gAYpUcXi7E7Xtam65oXqtmWQIjJIK3ee9sSGLf1mF0tzyb5YgJk1mLcG3yBiy0KekG+ZJZggGbIk4KwzXWnsiR1QNLztpVaWEYQGs5anrhA/NalWy8nosaDFe+ytEWiwToQLIf/HdpVvA1EAdTd+pR3YnklQkYM2ew81i8DDpf/7wk/FV1i+QGOyerIUv1cMz0dbZ1U/N0+0FlY2G1LsupOl++qwJUjlYkx8+qOwOBa20Vz0orh2rKFMU/yMxUGnxSzoIXH9jJPanYK1vGq24x4iBok+rrLeOIJP2JQpglyjCCHrrbXFxR0/ldsLmzILh1y5vEDHW3B4yFdi3csuwQ2zy3qvTr82gNn10olOFzqgGWp/s7FGWKZ3Wi+HnKLZdh4hSj/5bbEg11RxHcsXm4zPSBxvwgEyZpqu+PdD6WIf5Wuo8a58HuyX06SY2158m2UKURybIcwdcYPimM+kPrqgfD7spY2gQ799XJR72lpqf2njqhTDE5/KVmMGUjfJoepHeuEsgNBXjD47+dGMNgJRSKFwGW2LpZt90FvWijx6OACqQzDs6lCoy+6cD13 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 May 2023 14:56:04.2134 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 44354732-ea9d-4c9c-6ba6-08db58792b33 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: DBAEUR03FT028.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR08MB7594 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,sami.mujawar@arm.com X-Gm-Message-State: 10fiSQpIxQicoBiqWoq3sqbJx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1684508177; bh=MmIOvbXL/WtbyjkuRimWWUgrJ0I6Gv9wHk5MJaeTssQ=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=c5KeHf2Be7o9daRGtqjPqMKvpA9vj0KsG6v04+wOS0dJnKdcVy/bRwicoeyxIbC+6Zf F6yqIMFIANfR2ZGRraBW+7oPAGMjjnt2adfoK2STZMC0SBmeAtltfMqMBw5DHLzaymCcj 2vEl2GCTk79heJJn2AgkgDTzOPUgn191vFk= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1684508179757100003 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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..25920ab4ae3cce20fdbe8e9ff7e= 25b8696d2c851 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 =20 + # 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 --=20 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)' -=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 (#105080): https://edk2.groups.io/g/devel/message/105080 Mute This Topic: https://groups.io/mt/99013776/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-