From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail03.groups.io (mail03.groups.io [45.79.227.220]) by spool.mail.gandi.net (Postfix) with ESMTPS id 536D8780091 for ; Fri, 12 Apr 2024 14:33:56 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=F4aPnxNHOKSlMkcVMadWULnV1oWsDeNAdZFU3xIoeyA=; c=relaxed/simple; d=groups.io; h=Received-SPF:Received-SPF:From:To:CC:Subject:Date:Message-ID:In-Reply-To:References:MIME-Version:NoDisclaimer:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type; s=20240206; t=1712932435; v=1; b=xdRv5wrzKEF13EBfhXKkA1793l751BZidSZOmThrxNraPQkwYJaC28IhWjveS0+bEmxZBX4r wE1cFvQOU9sp08JEdBAQbLx7OwCyE7xQL6HdoQFXrUk9FCG83P5mSC3MUIQkulVYejCLoc2V00E D2Gz1N8GY20LFWXzr4ZgpNncTPiIwsrYW26wvgsJlzkGZ91APDVzxnidyWth2eeF9vfUwl+CVJN bps8UaiecLtkMnhCn5dLsnwPMB/0V7ms+HWslHDf3qdROCq1bRNJjQLQOLneuPhDUWt+Y973hp0 55OdHclh+UbXfj4qPxZ5Jqc/MAXvpsYDUKEV2YkoArj4g== X-Received: by 127.0.0.2 with SMTP id dhXmYY7687511xQl8YTF3oQW; Fri, 12 Apr 2024 07:33:55 -0700 X-Received: from EUR04-VI1-obe.outbound.protection.outlook.com (EUR04-VI1-obe.outbound.protection.outlook.com [40.107.8.79]) by mx.groups.io with SMTP id smtpd.web10.48535.1712932431424587627 for ; Fri, 12 Apr 2024 07:33:51 -0700 X-Received: from AS4PR09CA0013.eurprd09.prod.outlook.com (2603:10a6:20b:5e0::19) by GV2PR08MB8656.eurprd08.prod.outlook.com (2603:10a6:150:b2::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Fri, 12 Apr 2024 14:33:43 +0000 X-Received: from AM3PEPF0000A78F.eurprd04.prod.outlook.com (2603:10a6:20b:5e0:cafe::d6) by AS4PR09CA0013.outlook.office365.com (2603:10a6:20b:5e0::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.26 via Frontend Transport; Fri, 12 Apr 2024 14:33:43 +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 X-Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM3PEPF0000A78F.mail.protection.outlook.com (10.167.16.118) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.7452.22 via Frontend Transport; Fri, 12 Apr 2024 14:33:43 +0000 X-Received: ("Tessian outbound caed45120527:v313"); Fri, 12 Apr 2024 14:33:43 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 37173661a2f35dae X-CR-MTA-TID: 64aa7808 X-Received: from 0f316124b836.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 39B5A23D-F455-44DA-924A-EAFA5B03FFF6.1; Fri, 12 Apr 2024 14:33:36 +0000 X-Received: from EUR04-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 0f316124b836.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 12 Apr 2024 14:33:36 +0000 X-Received: from DB7PR03CA0089.eurprd03.prod.outlook.com (2603:10a6:10:72::30) by AS8PR08MB5928.eurprd08.prod.outlook.com (2603:10a6:20b:29b::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Fri, 12 Apr 2024 14:33:33 +0000 X-Received: from DU2PEPF00028D02.eurprd03.prod.outlook.com (2603:10a6:10:72:cafe::d8) by DB7PR03CA0089.outlook.office365.com (2603:10a6:10:72::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.26 via Frontend Transport; Fri, 12 Apr 2024 14:33:33 +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 DU2PEPF00028D02.mail.protection.outlook.com (10.167.242.186) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7452.22 via Frontend Transport; Fri, 12 Apr 2024 14:33:33 +0000 X-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.35; Fri, 12 Apr 2024 14:33:33 +0000 X-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.35; Fri, 12 Apr 2024 14:33:32 +0000 X-Received: from E114225.Arm.com (10.1.196.56) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Fri, 12 Apr 2024 14:33:32 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , , Subject: [edk2-devel] [PATCH v2 15/45] ArmVirtPkg: CloudHv: Add a NULL implementation of ArmCcaConfigureMmio Date: Fri, 12 Apr 2024 15:32:52 +0100 Message-ID: <20240412143322.5244-16-sami.mujawar@arm.com> In-Reply-To: <20240412143322.5244-1-sami.mujawar@arm.com> References: <20240412143322.5244-1-sami.mujawar@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: DU2PEPF00028D02:EE_|AS8PR08MB5928:EE_|AM3PEPF0000A78F:EE_|GV2PR08MB8656:EE_ X-MS-Office365-Filtering-Correlation-Id: aec733a8-a930-4c23-d6a2-08dc5afd8df9 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: 4bZoGyycrutK7r7lNkBSvt7cjO5yFfR5DSkNmsKi1G3wOD5AR1kJou3frw0fMIeKX2B4hskpqt2vkdFv8gRA92D6EoCaxxSJ6HWTfZLawrUhzqy3nJT3SNdq5b7c2OTCxqYiThXr5NyAHBNGQje89IE9NqzalvdwZ3xSbqV0tSxj8Nvgtu/PPAAGeLe9gb/AVqWfkub4COPFIHrGEwMvv61EWKqNkyH22VY/hmPmnFTXaOOmHh94bFncWNahq6QT2ogXrhzF29nHMk8pTBWk1CPIi5M3cRR08FkMGI8QXeTqLpj2W9O5+pU5jaG33C7ozmgarMv/X8kpLyw7UY8jcgEwDu4qK5JiAap2EL3sKofXW8VSplmjiqu68envj0dGjeHJsPGmSmDCzu/l+BDICYdaG4dIa8+DTBTbQh9T0x2FDI2DNJNethdBxVM/ni+uitscaCeENkhEvkahPHI+96dNi3YTl8ikSjTpdZTKtyke8v9lrgtP6NKhTjSuut4eJaLfGquwUnSoQI+I0xeK78sIeZig3GkvjB56trm/og2V0ifyxLAQzPOdyEB+uWgGLBzWM2URjWoV5sYF/cUvAZrBJuPdgMZEZSdutTib6Qw9CojEnxPxovXbqo40Y+eLgRgYn1UBiEKPT1wC672k/rPjmQrN2SQ++CK7npx39WE+4L67l9HCvn883cbZxVX22mAb7k1Z66eS2l1rUcNoe4sZU9RKKylFaC+xKoZ92y8gZHEMpo5i8AC89ZaKPCDb 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:(13230031)(1800799015)(376005)(82310400014)(36860700004);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB5928 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM3PEPF0000A78F.eurprd04.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: db7e56ff-4fa5-48d1-d3f1-08dc5afd880e X-Microsoft-Antispam-Message-Info: LfwUwHFuxkCwAfkQe5ybqW5wscjuSk7+Vu2y7YMYALKPu5B4K0t7QqJBD1fdatDcm7LDb00nl3CdISCYH1ZLWO08LlQhX/PHEgCIzz7npGi8HJDHwtgKEZHo6C8onVnsXCQTfOglZabGjFBpSYrsLvxgElOIYm/0J1f8nZeaY31nS4D1HqUR3/PHW+8peaSMQBwwIZ81D5yvWA9wTJHJnxsZDpZ+IGkb9CyoFcuDjrN+nqsBOgqhTEstvhg/e/B1VsV2ua8aEaBv9lytMMf305e3wdl7/K37uGD5ieZ8Zjgt5S90IJx6i5zs8+pNPxkaADcJspGqkvYwFjnlEan12RNg7B2Ypr1l8dO1lKHxcTc20kaV0zM4mAd8fzjDshlHTLA/BbI6p/6zH1DXk/vJAdSTg8Y2HZMo/8T3Zn/YM64RVRD4vY08rcvtiRwJFEm+BSQaPHQj4hkjmT1AfY19IQwLl0i3iAoz5F+RTI8iC8iDqsmb72QRpHlutR6K306WXvACua8KBZ+DQ7qbKLblnOG5f3/QgFWxF2oPRV6zCEJ3wu/OuqOos6wLlSuqn6v30vFQ5IUJYwx8U0Ca3KJIIdZnYvV1CU0FA5kCuJybJGucjrtfsiF8OOVz+yDN/AurTI1QQXD7JAxYBC8Hez+p/Hn90gKmJ9i38uF8eellSm6hPn4cnsersf4aLhvtmemQoapvvRGjSXctA11LwE7Y0HthE/77O4Glrwt+IUTF4s4NIgq1LQ9CgzZOoX3TTa73 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Apr 2024 14:33:43.4485 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: aec733a8-a930-4c23-d6a2-08dc5afd8df9 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: AM3PEPF0000A78F.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV2PR08MB8656 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 Resent-Date: Fri, 12 Apr 2024 07:33:51 -0700 Resent-From: sami.mujawar@arm.com Reply-To: devel@edk2.groups.io,sami.mujawar@arm.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: LUU6JBM7cnyMqhZogfi39B8px7686176AA= Content-Type: text/plain X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=xdRv5wrz; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=arm.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.227.220 as permitted sender) smtp.mailfrom=bounce@groups.io To support Arm CCA, a hook function ArmCcaConfigureMmio () has been added to the ArmVirtMemInfoLib library. Since, Arm CCA has not been enabled for the Cloud Hypervisor guest firmware, update the CloudHvVirtMemInfoLib library to add a NULL implementation for ArmCcaConfigureMmio () that returns RETURN_UNSUPPORTED. Cc: Ard Biesheuvel Cc: Leif Lindholm Cc: Gerd Hoffmann Signed-off-by: Sami Mujawar --- ArmVirtPkg/Library/CloudHvVirtMemInfoLib/CloudHvVirtMemInfoLib.c | 22 +++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/ArmVirtPkg/Library/CloudHvVirtMemInfoLib/CloudHvVirtMemInfoLib.c b/ArmVirtPkg/Library/CloudHvVirtMemInfoLib/CloudHvVirtMemInfoLib.c index 98cc13870599c10bfab5029de9f7730a67099b72..c47ddc4a16caf9b3755617627718789098aa2f26 100644 --- a/ArmVirtPkg/Library/CloudHvVirtMemInfoLib/CloudHvVirtMemInfoLib.c +++ b/ArmVirtPkg/Library/CloudHvVirtMemInfoLib/CloudHvVirtMemInfoLib.c @@ -1,6 +1,6 @@ /** @file - Copyright (c) 2022, Arm Limited. All rights reserved. + Copyright (c) 2022 - 2023, Arm Limited. All rights reserved. SPDX-License-Identifier: BSD-2-Clause-Patent @@ -241,3 +241,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)' -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#117679): https://edk2.groups.io/g/devel/message/117679 Mute This Topic: https://groups.io/mt/105483417/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-