From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR03-AM7-obe.outbound.protection.outlook.com (EUR03-AM7-obe.outbound.protection.outlook.com [40.107.105.65]) by mx.groups.io with SMTP id smtpd.web11.83452.1682438701803303254 for ; Tue, 25 Apr 2023 09:05:02 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=h2gQ5fsP; spf=pass (domain: arm.com, ip: 40.107.105.65, 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=T9ouZGy9tJQSBvQqEyj9Xbi58Z8s6Z33UB7fp+EPUH0=; b=h2gQ5fsPi3IXnmrr7pOgZ+pDxy/viGl3rTV62421EtmpFw9yvlSdrMKMtIHP55kFtT+lwxbbvVAE+a3al45OlwYdezlHtliUmKfvdODTAPB+yx0b6b+ir2r91YLqYJpTlAa7VybmuGgSptrP6fqc1uqucqLOnXE3OEGvRKLMUfg= Received: from DUZPR01CA0109.eurprd01.prod.exchangelabs.com (2603:10a6:10:4bb::28) by AS8PR08MB10170.eurprd08.prod.outlook.com (2603:10a6:20b:63f::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.33; Tue, 25 Apr 2023 16:04:58 +0000 Received: from DBAEUR03FT054.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:4bb:cafe::b6) by DUZPR01CA0109.outlook.office365.com (2603:10a6:10:4bb::28) 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:58 +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 DBAEUR03FT054.mail.protection.outlook.com (100.127.142.218) 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:58 +0000 Received: ("Tessian outbound 5154e9d36775:v136"); Tue, 25 Apr 2023 16:04:58 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 42a3261a6f0c95fd X-CR-MTA-TID: 64aa7808 Received: from 5d84adee9990.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id A7B430C4-D6AB-4523-9436-C38AEB22FE01.1; Tue, 25 Apr 2023 16:04:51 +0000 Received: from EUR04-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 5d84adee9990.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=VIYVahnaAvOeL8BTiWOmlAQZo/ia+/fQu9knj+fZlnFhtrLC2/i2cyizf8vNE7N2wOHzTPxRgDh57pZmHt6dtQJFM3fX+kgwOQTBbuyUQoOdyT9Gmf3jHWLhHozi1nqhira8X51zw5+x+QpD2CTvrD5Es3SHHksYbU5DgWi10mliFxcybX1ISGqq+ZyvonKKbMrsQBobHl810M5mNC5SeB81mZhZqDo2FDdcSIowH8wiwIDw740HNP+/bXLBZHIcHJeNgKLxky6jwLJbL3p9h6cqaJYn9ukYi9qqiEzPyDoN2znOZN5LPkIPzAuCsaMPbNOikWDz8xbOq3G6rVJC2w== 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=T9ouZGy9tJQSBvQqEyj9Xbi58Z8s6Z33UB7fp+EPUH0=; b=IBHniDarDIuHsbeEzkU/cyBguW/7vvy3Eo37qVR/JM+VIKrys5aH+lUvMw+5+HomM68PsVdZgFwBE49ZSXyVAiTGogpfWdGcb+tl7TN0mMjisH+malUBj4hbP7KRPpbxqEcJ/L6e4qbXdTkwO4TYZDLI2FScZRrD0D9bY+s2I5dKYaQY5xIEBks92BXaPbxvxCtSl8c8o+spn50L6Y4XX+kRpOxI4jjP8uXX/TJKKCY3jSFJIUqv9YlDEr3atIqzG9+oSoIijxOGAgdRE+NgrWE7thNRVgBGvHNjndQV3jKlkZGRya8Q8+4ey0mr+aMawfGkVwNztoAR8+L+jQg0/w== 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=T9ouZGy9tJQSBvQqEyj9Xbi58Z8s6Z33UB7fp+EPUH0=; b=h2gQ5fsPi3IXnmrr7pOgZ+pDxy/viGl3rTV62421EtmpFw9yvlSdrMKMtIHP55kFtT+lwxbbvVAE+a3al45OlwYdezlHtliUmKfvdODTAPB+yx0b6b+ir2r91YLqYJpTlAa7VybmuGgSptrP6fqc1uqucqLOnXE3OEGvRKLMUfg= Received: from DU2P251CA0009.EURP251.PROD.OUTLOOK.COM (2603:10a6:10:230::22) by PAXPR08MB7335.eurprd08.prod.outlook.com (2603:10a6:102:220::9) 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:48 +0000 Received: from DBAEUR03FT019.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:230:cafe::25) by DU2P251CA0009.outlook.office365.com (2603:10a6:10:230::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.33 via Frontend Transport; Tue, 25 Apr 2023 16:04:48 +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 DBAEUR03FT019.mail.protection.outlook.com (100.127.142.129) 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:48 +0000 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; Tue, 25 Apr 2023 16:04:47 +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:47 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , , , , , Subject: [RFC PATCH v1 17/30] ArmVirtPkg: CloudHv: Add a NULL implementation of ArmCcaConfigureMmio Date: Tue, 25 Apr 2023 17:04:15 +0100 Message-ID: <20230425160428.27980-18-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: DBAEUR03FT019:EE_|PAXPR08MB7335:EE_|DBAEUR03FT054:EE_|AS8PR08MB10170:EE_ X-MS-Office365-Filtering-Correlation-Id: fb30aa70-b2a9-4eae-b3b7-08db45a6d151 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: RC212oRP9+OlD9WEsG+ERJRDbYmxaAAC4nL5Ux2NK/N7PJT/uYW58AcLmqzbHXmrzLN6jHRjqgths6W0A2RGao/BfNADSdkrYylV5piA/mG+OS89DKiwuBG0kpw2cJA69wcEEDDrD1MtDL/FW06lKWf5x3crNUMbkVcVO1i6efgvVF7CzlN2AKjySjViX/SypaQ4LB3DEH39UNazZJ9phyM7CwX2FImo4Lsrjax0vVEvuH2CL4cmN7ohZ+9NiHBOiXrueHiDw5vsjarP9uPpBwwnmYd+ONh0FJ/qiYeKhwJ1yYK8ds1pjy/CDYwjuvfdli2YIkqA3bnlOG53jPAUPWbQyFBCtch+mdqP7qpWWLAxMjOfhJBGIR46vIGLGSuFtnYE+kTtoWPEGuaz7dWRvrFnqwwiW9Iq5q2vzXb8iFYT5nguMhoABewFt2Wtt2gB3sSefzazMqrJlH2j3xH6mTmJPzCxTnK4ar6/id7Xl/RoqaOTI5Am64XHZXnNsGOgtuS3RJiUHcxUH36vqThl8xMYbzKnIzHwd+OISnPMC6ngemWApVSv8sjiug8dMgauyqXmOenYPDoz5MewGaiwGzLP8ZFkxoHny7L0SfhcCqttucikZsDQkS5w/atn8NnxsaolnChHr2Go3fED0kvMMRdhMvYXndi57LiHByPi80vQEu2f0d3g725NSrF/BeQPlHbQB6oGF0vbO1eUFy8gGrtF3qGFKg4zX1QzQef367E= 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)(39860400002)(346002)(136003)(396003)(376002)(451199021)(36840700001)(46966006)(36860700001)(47076005)(86362001)(83380400001)(26005)(186003)(1076003)(336012)(426003)(40480700001)(2616005)(82740400003)(356005)(81166007)(34070700002)(44832011)(4326008)(6916009)(5660300002)(316002)(8936002)(41300700001)(8676002)(6666004)(7696005)(36756003)(70206006)(70586007)(478600001)(54906003)(82310400005)(2906002)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR08MB7335 Return-Path: Sami.Mujawar@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT054.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 353e4e72-01d0-4eed-a5ca-08db45a6cb7b X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0ytS0NLIN+jgtIg6QRvHRsh0yzOPvE3pfsSgk3RdMEHcx2f4Ke8yaNbEk5TLxftKhpTuaUoiYp7/n/aXrrhdul1qm9c84yazWPXQYu38R+kn0qzD0B5tQWH4WT0EkDyF7WiNVSnG1qP7JXqfBVGsHe4RcrX9nYx8bbtXCzcGboVPpTbxIQmLq9sq87zU96HaZnaB+HM5gAXKlUy8Iv7htFGSd2thtwZSpdpnCBlY66MS+tl+OjO4kOYew3kIq1p+nKZAb/I1WAB0/0ruR11gyOQNfWQHr9vQjUHuZkfGKPzUpiu4NVA/0vBi1sHtoYUpVfNVqcLRymezQy5Zz1tJW8HHjetLp4OdyYg6TuxVGIBmlJaSi81LM2dlAeboJrtxKE7+SCPVy5ANE1Tv9mDPfyJZBLJZaiVTdyM2YSRclDOM8sv8jEaJQnU6aFb6rIugMRMy7100uvvgQx+jtdajKOZEb31+ojrCqCRDfzlTqwlvXT2TNDY2h75FKShCcK7nMH6dEwb/gJHbqMfWQgzAEkvWogd5oL/Xh2sQLOa5UHTHVEAAIqPmacxnSUmMi/QuCxjjwQCvWB9fU/sUWi1Id+jO8LA502mBTO/ejHmhSPyt4ULNvuKE7MS8LUnmxOxinCLaPKrrlGJGW0yFvYd0hh7Xobfdr1gGFlNkKnI62gwMkD5QTKCJP0qIeqCXJwTMDKszC+/xWS5HkhxZ8CzY8xs7EiFYkEUON+EhHoh9ET0= 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)(396003)(39860400002)(376002)(136003)(346002)(451199021)(36840700001)(40470700004)(46966006)(1076003)(26005)(40480700001)(426003)(336012)(2616005)(36756003)(34070700002)(83380400001)(36860700001)(47076005)(186003)(40460700003)(82740400003)(81166007)(70206006)(86362001)(70586007)(478600001)(6916009)(8676002)(8936002)(54906003)(44832011)(5660300002)(7696005)(41300700001)(2906002)(82310400005)(4326008)(6666004)(316002);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2023 16:04:58.1581 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fb30aa70-b2a9-4eae-b3b7-08db45a6d151 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: DBAEUR03FT054.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB10170 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 Cloud Hypervisor guest firmware, update the CloudHvVirtMemInfoLib library to add a NULL implementation for ArmCcaConfigureMmio () that returns RETURN_UNSUPPORTED. 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)'