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.49]) by mx.groups.io with SMTP id smtpd.web11.83455.1682438703439645671 for ; Tue, 25 Apr 2023 09:05:03 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=0ZjcJLxK; spf=pass (domain: arm.com, ip: 40.107.105.49, 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=qR+gwe9fZ0OgPOsrk+R+qFXljCdmF7F4EyoKq1gxYxs=; b=0ZjcJLxKMGZN2jqNwKXb6dW4kw2OFj6yDRRupGk0iTR910+NrH//V8QU1hZYYYcc1GQWPDGBx5VJOyCEYCk9JRH6De2CVpaCKQBS+ia0LR9MyXW6JrCxdYITJJ96DDWwmjsYPhDTU73fhn+Bdf4TrARS7D/t1L3jc/+CRdOokXQ= Received: from DU2PR04CA0026.eurprd04.prod.outlook.com (2603:10a6:10:3b::31) by PAXPR08MB6431.eurprd08.prod.outlook.com (2603:10a6:102:157::8) 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:58 +0000 Received: from DBAEUR03FT036.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:3b:cafe::a4) by DU2PR04CA0026.outlook.office365.com (2603:10a6:10:3b::31) 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 DBAEUR03FT036.mail.protection.outlook.com (100.127.142.193) 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 5bb4c51d5a1f:v136"); Tue, 25 Apr 2023 16:04:58 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 53631f6a375f9944 X-CR-MTA-TID: 64aa7808 Received: from 83be432f7823.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 88FC8230-DB6E-4668-88EC-C8E23039C3E3.1; Tue, 25 Apr 2023 16:04:51 +0000 Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 83be432f7823.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=kwRF8FASqGQEZxYjnSBTO74Up1ZcJYuhvvicqMLHpjlX03FPc8ONLwETNDyGEkNvhcAFGoGslM4FpmetSMMsPIaNuH1S5c67XCRez0N/1YnsiVWfr+7EHYFY/cdWJTdBAiI3kbFtNcLpvdnbMy2B87XpvOLnMyLL8gro6cibRhtiNB413NcqJ1omHjpKjZdAEsZiYyX2Cp1Ja/XeedZjSe4KZJtJLsndC8L1Sn+cmASiWC1+NwDglRp67Bhvnq9U/e8vRLi0q7u44f2e1C6VO/z/cLWrYu9mYGaWA+D+e+/OEOTg/JxlqMEkKyeMiZzdI9hOOrrz8t9agNBOpcqRcw== 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=qR+gwe9fZ0OgPOsrk+R+qFXljCdmF7F4EyoKq1gxYxs=; b=PbznfrZBlgPZFudRZy+sBwj7fKPr0CbYqzzfer3j/6d5d3VICUQ348i6vGu+Nj6wiZ0p976W/wus1fzPJWkIeUjs54xw/jZztbPJ+eKeOAkQUcbsMPSoRy++zIiUERoT2lsm3mejUGg+Tgc8s31y8RSCLFGGfiQ5bBF1xEb8rr3ETW8hSnVHN5IkiBV5rVZ5gEoEZqZs7L3I+ePLcj8JejNVy8BjUVXl3D4+dgK6deTswKtjxUDo6A6MQ9mjht9ZQ319o/R41IOqZYExfdDPYSomw6zH4M/l7tpcJaYzTCWD+TIdf3qRNKJLqM9OPE4fgcYRMd140GpMuecDVIddTg== 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=qR+gwe9fZ0OgPOsrk+R+qFXljCdmF7F4EyoKq1gxYxs=; b=0ZjcJLxKMGZN2jqNwKXb6dW4kw2OFj6yDRRupGk0iTR910+NrH//V8QU1hZYYYcc1GQWPDGBx5VJOyCEYCk9JRH6De2CVpaCKQBS+ia0LR9MyXW6JrCxdYITJJ96DDWwmjsYPhDTU73fhn+Bdf4TrARS7D/t1L3jc/+CRdOokXQ= Received: from DUZPR01CA0086.eurprd01.prod.exchangelabs.com (2603:10a6:10:46a::13) by DU0PR08MB8397.eurprd08.prod.outlook.com (2603:10a6:10:407::17) 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:49 +0000 Received: from DBAEUR03FT022.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:46a:cafe::93) by DUZPR01CA0086.outlook.office365.com (2603:10a6:10:46a::13) 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: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-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:49 +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 19/30] ArmVirtPkg: Xen: Add a NULL implementation of ArmCcaConfigureMmio Date: Tue, 25 Apr 2023 17:04:17 +0100 Message-ID: <20230425160428.27980-20-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_|DU0PR08MB8397:EE_|DBAEUR03FT036:EE_|PAXPR08MB6431:EE_ X-MS-Office365-Filtering-Correlation-Id: 7905b9f5-63db-4a75-7510-08db45a6d183 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: 37VvTAkMExljxrg2zl8zsS94siubS50ZCEkPLPK7MCTZGMtV1rBuDoYPYTONfCXLkI7c2jt2wusfEgIJ7Xz47k9em+6/AsvvvjWPKJa+ChdpbpPFLfLdHVhIVh1dlXCSimYhQGoy9uh5r/p0Ph/hhROaVTwWLjdclS7aRLpHb5UhYVQOpfDxYdSRF1AH+SfZIZnktbEGdN6AGU2fWfnsxrch33a+rfWI6LXPeWEUNP3x0fHGDnBzbG8cBZL9yTd6LuUsy+m+FqOrMKD1Zuph75E1B1D1SxkEGnMOQHzdS353XBsJIeDVQdMAJ5T5rdmzJ4/TcAmgOLyILpUrxFV0G/KUGvze5kPMIJDID6/BMHHFVy4UXQN5IZ5o0CMmdMrzi8IjJJUnpSL9DqWdGuYkhKvnLaFl8rjp/ChzjZ2LByE1qyOiH96UYV4CMMijj3y48VleyftIcB2CE74wlv6tmA9xD39Rhco1UDQDBsXcqI5qRbkoT48B4RjElEz9cOPsdxgZIUnazmNcTi8LhXAMLho+0WU+pVD7GumYY+WPMo/IuNScQZa6lSj/kyQdxc+3ujFvWe2Vpe74zNPZLPcpmaD4K3IUZgMAZXInCoZSrjIJ6o6upLHQE9xYx7vig9R9bpbZ/+VeQh46vDU4OQ4xSoUksvQEOX9G68ipyzd6BOW+oC2Ubn1/03FqnlKF6VBTkshaM+newxksF1Sy92j91eF6b/FvJ3Yu/DZZPyceQCs= 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)(346002)(376002)(396003)(136003)(39860400002)(451199021)(36840700001)(46966006)(26005)(1076003)(186003)(40480700001)(34070700002)(6666004)(426003)(336012)(54906003)(86362001)(478600001)(8936002)(47076005)(8676002)(83380400001)(5660300002)(82740400003)(316002)(44832011)(70586007)(70206006)(4326008)(6916009)(81166007)(356005)(41300700001)(2906002)(2616005)(7696005)(82310400005)(36756003)(36860700001)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB8397 Return-Path: Sami.Mujawar@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT036.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: a5e0b9f9-a3d3-450e-7870-08db45a6cc5f X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: J6cV/HJ0kLdPLMhEIl/1bZxbcI+zMbcVNHmxAzPT9jkT/xVnksyN3kaUYEODKHlwDxJUPEHw/sPTF8E4t3LXh4buVUaWBTg0jz9eSH4FojHQCXQ5xeWaFG8XQvnhO3KIVHf2IvgK2LaYXS0fXnIOgW9HnKUzqPDvRVR6otf3BXVcaaePToWq1nI9DUasIN9Fsy4idvPewJHm11peNDTbZ1cdr99Ov3rtKo/NexLvH4TaB4rFAOZuJR2sfVl94bhpFjArGRtfYIxTMoToRCMZyZ7kinZSK88vFa3E7Ydq7z2n/SOm0xO62PdUnHJBRgWX7CNn3+O6+RD2ER6kCprBovzJS7CvibSjYtQFo3xwc3QkOErcQDsBIViQoTNEaEwVIGYCBZKOPyc7SST3Q36YVP/JzCLODiIDVCMPu0QCnvHyiffNNn/ynw8DWDkQpy+bpg29nwft0GLYfhQxtBDODPxy2So8iuq6lDxyZRp2zUx9UR4EQ/v3NoJ+dQOlKBYWC5eY7hNTOqY2g5df2iNoAmAA3jVgc3O4hOJVRvFTVIKDmgcMF3Sd8h/n1bvI6LeOv9I44+VErlLNmDif3T7A7C6IcJoSpL5gTB7epd0BMMH0Z4zsRTE4Tl5rTCCAd9NvzO2aatktr/Re2mc405Om2Vo7xtI5+GmbOQ5TlvRrWJM8TQ8Qju9Ae1I72CWjiRBAlKHscDJyb7fXX/3vtssIR8ZATIl9kAztj7UfXJvrYuI= 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)(346002)(396003)(39860400002)(376002)(451199021)(46966006)(40470700004)(36840700001)(186003)(40480700001)(40460700003)(34070700002)(54906003)(478600001)(86362001)(36756003)(7696005)(6666004)(82310400005)(2906002)(5660300002)(44832011)(8676002)(8936002)(70586007)(70206006)(4326008)(6916009)(81166007)(82740400003)(41300700001)(316002)(26005)(1076003)(336012)(426003)(2616005)(36860700001)(47076005)(83380400001);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2023 16:04:58.4373 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7905b9f5-63db-4a75-7510-08db45a6d183 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: DBAEUR03FT036.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR08MB6431 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 Xen guest firmware, update the XenVirtMemInfoLib library to add a NULL implementation for ArmCcaConfigureMmio () that returns RETURN_UNSUPPORTED. Signed-off-by: Sami Mujawar --- ArmVirtPkg/Library/XenVirtMemInfoLib/XenVirtMemInfoLib.c | 21 ++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/ArmVirtPkg/Library/XenVirtMemInfoLib/XenVirtMemInfoLib.c b/ArmVirtPkg/Library/XenVirtMemInfoLib/XenVirtMemInfoLib.c index ac0c75aecfe54090788836f2eea097f4abb112a3..8a9f6e1e1eee91ec2fc1418b342c0966548e8a6c 100644 --- a/ArmVirtPkg/Library/XenVirtMemInfoLib/XenVirtMemInfoLib.c +++ b/ArmVirtPkg/Library/XenVirtMemInfoLib/XenVirtMemInfoLib.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 @@ -55,3 +56,23 @@ ArmVirtGetMemoryMap ( *VirtualMemoryMap = mVirtualMemoryTable; } + +/** + 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)'