From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (EUR05-DB8-obe.outbound.protection.outlook.com [40.107.20.51]) by mx.groups.io with SMTP id smtpd.web11.83457.1682438703669237701 for ; Tue, 25 Apr 2023 09:05:04 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=ypCub1/5; spf=pass (domain: arm.com, ip: 40.107.20.51, 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=igrnDonPscTyZEBYVUM18Jmq0DkCMtKvJ3Snzfpy1Js=; b=ypCub1/5fS2gOFZHoqv5PLgFSbDmuuBtaD5pvsFsMAhVVNQICscRz+j4fnsT3KEYNyXhDkl047WaivaUQFw9fO//SFFy1mESoPqVJTeY/Xd8GpWrjr18cBr11a+hZvtiLEbxiPSAxXtaEp6oMhri/iHOzMrwnwYuvFamNRqAE0A= Received: from DUZP191CA0014.EURP191.PROD.OUTLOOK.COM (2603:10a6:10:4f9::18) by AM9PR08MB6644.eurprd08.prod.outlook.com (2603:10a6:20b:30e::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.34; Tue, 25 Apr 2023 16:04:59 +0000 Received: from DBAEUR03FT032.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:4f9:cafe::64) by DUZP191CA0014.outlook.office365.com (2603:10a6:10:4f9::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.54 via Frontend Transport; Tue, 25 Apr 2023 16:04:59 +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 DBAEUR03FT032.mail.protection.outlook.com (100.127.142.185) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6340.20 via Frontend Transport; Tue, 25 Apr 2023 16:04:59 +0000 Received: ("Tessian outbound 8b05220b4215:v136"); Tue, 25 Apr 2023 16:04:59 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 76417d1426b32e40 X-CR-MTA-TID: 64aa7808 Received: from fb23f9e00199.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id FBA2B046-C57F-4D1C-B40E-85BB82FAAD8F.1; Tue, 25 Apr 2023 16:04:51 +0000 Received: from EUR04-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id fb23f9e00199.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 25 Apr 2023 16:04:51 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fnkyW64vyIIzw4L3VReK7G2E+MPNIV31VmGnXdH+3G6N0eEyCvKDNqECjZ+572kHmafs6EuVrh1efUxjN8Vk7eoZp7cDwoEASJEdHcRdJyjXzZrBgFhOTBI8BYcC9T5rrD+ekhXHFQ1IZ4B41MCGp0kzcLTpG2c7ru6so0+Y8+3UlI7SfEt6h4f+dRFxEl84nZSkaaE6IRDF1O38Lt6QL4No2RS/hwwmDQBcEoYov9FI+jDrgzEVxatsPBIHhE9CndxDhM0Z/5+YnmKiqBPRO0zVYEO0fG5O3jz8gsRgWvARFt6bPwldRMZ7ZkIrX6AXT2gl94Ieguyk7fFrqTT0HA== 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=igrnDonPscTyZEBYVUM18Jmq0DkCMtKvJ3Snzfpy1Js=; b=glQt4KaP1svIx5j4+Lg0/FtlH4PzPfel1ndRnn5obCTHGmVuiLLJ6FEyEQhUy+w4aB/bGxng2OA+/Ol2gKsRpBJMsuGoidZAWA6B79WKXzIyTmexPGmRHt5O63EfpfgNa8QKIIZW+iNIbjLJ8L+QctAQPXXXSBbbSIHfLK74maKT1tvItJFX3j1fKfsrL4WMzC556llC4wSh8C7K7Tj6Dw/0/cBh5IGcfQzLI8OkO9Hvvzunyw3hBgk3AWmFT2JHtUWurxc0VJAXZ0XzN7F3JXaoB57GYEz+/c6q8lfXNJsxvTTBV4u1ucfAxpx16fkJrMQw12TeDT2I3KWMcv9vyA== 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=igrnDonPscTyZEBYVUM18Jmq0DkCMtKvJ3Snzfpy1Js=; b=ypCub1/5fS2gOFZHoqv5PLgFSbDmuuBtaD5pvsFsMAhVVNQICscRz+j4fnsT3KEYNyXhDkl047WaivaUQFw9fO//SFFy1mESoPqVJTeY/Xd8GpWrjr18cBr11a+hZvtiLEbxiPSAxXtaEp6oMhri/iHOzMrwnwYuvFamNRqAE0A= Received: from DUZPR01CA0079.eurprd01.prod.exchangelabs.com (2603:10a6:10:46a::16) by PAVPR08MB8847.eurprd08.prod.outlook.com (2603:10a6:102:2fd::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.34; Tue, 25 Apr 2023 16:04:49 +0000 Received: from DBAEUR03FT022.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:46a:cafe::fc) by DUZPR01CA0079.outlook.office365.com (2603:10a6:10:46a::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.34 via Frontend Transport; Tue, 25 Apr 2023 16:04:49 +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 DBAEUR03FT022.mail.protection.outlook.com (100.127.142.217) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6340.20 via Frontend Transport; Tue, 25 Apr 2023 16:04:49 +0000 Received: from AZ-NEU-EX02.Emea.Arm.com (10.251.26.5) 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; Tue, 25 Apr 2023 16:04:49 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX02.Emea.Arm.com (10.251.26.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Tue, 25 Apr 2023 16:04:48 +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; Tue, 25 Apr 2023 16:04:48 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , , , , , Subject: [RFC PATCH v1 18/30] ArmVirtPkg: Qemu: Add a NULL implementation of ArmCcaConfigureMmio Date: Tue, 25 Apr 2023 17:04:16 +0100 Message-ID: <20230425160428.27980-19-sami.mujawar@arm.com> X-Mailer: git-send-email 2.16.2.windows.1 In-Reply-To: <20230425160428.27980-1-sami.mujawar@arm.com> References: <20230425160428.27980-1-sami.mujawar@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: DBAEUR03FT022:EE_|PAVPR08MB8847:EE_|DBAEUR03FT032:EE_|AM9PR08MB6644:EE_ X-MS-Office365-Filtering-Correlation-Id: a128df0c-f3a2-4712-1a80-08db45a6d1e6 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: lETCth9NHvNbEyJOiDVaxTH+AmRG+UOevYScxt/xDQ0ZxVKueQpR92hHCdm/iRz+VTH6xXJd1x/kcL6Ge9q7uzxDeRtw3Wqm5lx5joaTu4c57ZzyOQ8hSNA5u4pOY/r0HclExr/+APdpXkIAZzQ2fyY7j+Sh8upJyWKxekeryK0vaBR8Si4EcIPtYdxvBKBKx/9t5EIueSUX/FrAAVP+m1zJWCD/NrLtoF0qu3B3QXfH/6meWCCR2ckr36kvkic0B8KwU5OdDppLG1lKFIkpoPWOWvWXk8BaOX1+9L/HckNvOmWIMx7v0kGZD9G452eaKOqOvUFU5t+e1DZjcMdRyKePv4kKi/YBpbbJ8ETtMVSuy+5DLFRK9SmQWbmJSqNAQ0WJR4uLsje+XHAhAEX2U7SObMKC57YzeuBXOvHlKA1O98nH9vkYPe6WUtvdzMi1/xaaVGgk8JinYRbbB4U4LRCX5McMrZMmbI24a6EVnuk6RzVWLsOoc7dRG7PXK/hxfzGJtyKd83dJaoglj1n6TdUzmFSPixjLcUR6pPxyW5JEMkAPT6pNQJja/EWSiQhoEthaVAOjaD9+91KREU6x/nIHZvEMANnQGVy/+jz4/cxnvD+1lxsc8WBnfqbAacSt8SCPyemyZTNgQv3varE9eLzJjSL4Zir+roj97gt8xFetCeMILuy2p+AA3ESYoo/Duw1rx97+uKwugJmv70/Z/jI9+5dB298BjQrdlg0V2KM= 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)(376002)(396003)(39860400002)(346002)(451199021)(36840700001)(46966006)(316002)(82740400003)(44832011)(6916009)(4326008)(81166007)(41300700001)(5660300002)(356005)(8936002)(8676002)(82310400005)(36756003)(86362001)(2906002)(40480700001)(7696005)(6666004)(1076003)(26005)(478600001)(34070700002)(2616005)(36860700001)(83380400001)(47076005)(336012)(426003)(186003)(54906003)(70206006)(70586007)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAVPR08MB8847 Return-Path: Sami.Mujawar@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT032.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 1dd87fcd-99d6-4de1-b9dd-08db45a6cbfd X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6xxOTSOVaU5De7qxBI6D0+CcYI1xHzs/Zu7blnJB1V27FJejjf+3VoWJfo1iUGoHJs1EsxPbW4GY37mAbGzdpPlx+um30qepDGjIAajcTp67aXaCWhUc3ELG7aehjqBbOZ/+Zf1i9z1I/xRc5mADD0zJiF/7LUPfFYW72Gw9POmp3JkxUbt7jJNg9vhnZugt6+KvPNPCTMpShT4QlUtl7m0KEmvh0lOZgbMqfhI4yE6AljldyYSNrUjXr03pKJHxQY14cPNLy31caQm9lT0bSjibSfgITCEZ1GHJE1r9idJxSkK42uGXSJ8bXUHJmg8CTFNfxhRNxe1qEvlTVVu7w/taXbjSscYudXLdRKZMC+4iLWil5aN0Rhy61RmexXByfrE5vS17m58Z5yR/U1/ppqeiOafJFKUMyDZKuplL/yFYykTYB0ZzZ+Sfc0Vx76hBKUtSUFDnw/L/7B6Eufh8+GFBqD851iucYSWOclZN8lvfzzwGvFQNtlvdc21FZm968/w4X+nflhgqZrlH8xNK6vOpkl/YobYKVuXRRG8pK5uPxYsm7vEfuZwYYpT7tACS0GwAKt1d3ReYdUz8z+id3Z3PpB1DacYn0gjOr+nAgKQeJ2mKfIKH7wqRBpOGH5eSSHn1KCq5UMtjIeeR9MZfLgcpMsPdrl3xHSNM8Dyo3Y07ERL8jUTuKZyhUM1c2PbRUfSX/2l4FYA9Tf34QUUZrMh6n+4teDXeGRn9zosAETc= 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)(396003)(346002)(376002)(39860400002)(451199021)(40470700004)(46966006)(36840700001)(82310400005)(34070700002)(7696005)(54906003)(478600001)(4326008)(6916009)(316002)(6666004)(36756003)(40460700003)(70586007)(41300700001)(70206006)(86362001)(26005)(2616005)(83380400001)(40480700001)(186003)(1076003)(336012)(426003)(81166007)(82740400003)(8936002)(8676002)(2906002)(5660300002)(47076005)(44832011)(36860700001);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2023 16:04:59.0994 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a128df0c-f3a2-4712-1a80-08db45a6d1e6 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: DBAEUR03FT032.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR08MB6644 Content-Type: text/plain To support Arm CCA, a hook function ArmCcaConfigureMmio () has been added to the ArmVirtMemInfoLib library. Since, Arm CCA has not been enabled for the Qemu guest firmware, update the QemuVirtMemInfoLib library to add a NULL implementation for ArmCcaConfigureMmio () that returns RETURN_UNSUPPORTED. Signed-off-by: Sami Mujawar --- ArmVirtPkg/Library/QemuVirtMemInfoLib/QemuVirtMemInfoLib.c | 21 ++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/ArmVirtPkg/Library/QemuVirtMemInfoLib/QemuVirtMemInfoLib.c b/ArmVirtPkg/Library/QemuVirtMemInfoLib/QemuVirtMemInfoLib.c index 23bd0fe68ef79d98c0b934b73b61c098bc04397b..4db41f5fde3d35182692269bd3645b0e0bf6dc9e 100644 --- a/ArmVirtPkg/Library/QemuVirtMemInfoLib/QemuVirtMemInfoLib.c +++ b/ArmVirtPkg/Library/QemuVirtMemInfoLib/QemuVirtMemInfoLib.c @@ -1,6 +1,7 @@ /** @file Copyright (c) 2014-2017, Linaro Limited. All rights reserved. + Copyright (c) 2023, Arm Limited. All rights reserved. SPDX-License-Identifier: BSD-2-Clause-Patent @@ -122,3 +123,23 @@ ArmVirtGetMemoryMap ( *VirtualMemoryMap = VirtualMemoryTable; } + +/** + Configure the MMIO regions as shared with the VMM. + + Set the protection attribute for the MMIO regions as Unprotected IPA. + + @param[in] IpaWidth IPA width of the Realm. + + @retval RETURN_SUCCESS Success. + @retval RETURN_INVALID_PARAMETER A parameter is invalid. + @retval RETURN_UNSUPPORTED The execution context is not in a Realm. +**/ +EFI_STATUS +EFIAPI +ArmCcaConfigureMmio ( + IN UINT64 IpaWidth + ) +{ + return RETURN_UNSUPPORTED; +} -- 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'