From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (EUR04-DB3-obe.outbound.protection.outlook.com [40.107.6.55]) by mx.groups.io with SMTP id smtpd.web10.83979.1682438712203936005 for ; Tue, 25 Apr 2023 09:05:12 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=BhOWOFEG; spf=pass (domain: arm.com, ip: 40.107.6.55, 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=MR5EFXo7WKI4P4GsXqtz4DKwZ1KO3uW4C2cMo5bP+RQ=; b=BhOWOFEGpaLv7b2bIOmRtwSmIF2IAvp6e0zq9tEqt6jcYsNZaB4jNLlCQQ9lk7TIB5FCqGVYgHSJ9BpxmFZxwXACZxgg4rR/eLjl3tse4pH79yd0vkwZPKnqTuhavpO5aj2+m3bcnLbsIJG6h4i7K1UVJQl6dAWt2N+FH2vqiqA= Received: from AS9PR04CA0165.eurprd04.prod.outlook.com (2603:10a6:20b:530::25) by AM8PR08MB6564.eurprd08.prod.outlook.com (2603:10a6:20b:314::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:05:04 +0000 Received: from AM7EUR03FT046.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:530:cafe::a9) by AS9PR04CA0165.outlook.office365.com (2603:10a6:20b:530::25) 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:05: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 (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 AM7EUR03FT046.mail.protection.outlook.com (100.127.140.78) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6340.21 via Frontend Transport; Tue, 25 Apr 2023 16:05:04 +0000 Received: ("Tessian outbound 3570909035da:v136"); Tue, 25 Apr 2023 16:05:04 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 68bfa3d4164144dc X-CR-MTA-TID: 64aa7808 Received: from 5b13d284e0ce.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 9C270824-12A0-452C-B541-60DBE3F4601A.1; Tue, 25 Apr 2023 16:04:57 +0000 Received: from EUR01-VE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 5b13d284e0ce.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 25 Apr 2023 16:04:57 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Hqn8bnj1nle2IVl8pJN2KMIYGEALgAi0543FluF48P3SHP+q5WCSiE0dhBGPetf/w3DaIslpoJ3Uz8NveqTWkuv7CKKA242F95A7SS4jKglZrM4bzqpi+5lzMfyl4wtmEu6Q84pbHQe9qQU2a8iNUi3IMzfdayPoqXQMM4LV5J6wxVxdQD6VHZWraZNoJbzVIPCv9LxPv1GKBIfwp0qdHkUcFo+ombYHxpEfVblI/PLy3HGI6HvARlj+4U3lB5VdpQVFEg3vIzTuvz1uK2Ho0LMLBl3fs96KE5TfeVYgp7WKlCZmQHO9paYECmzT7OIDoEYRv8eDA5s7OOvi0qnYIg== 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=MR5EFXo7WKI4P4GsXqtz4DKwZ1KO3uW4C2cMo5bP+RQ=; b=d9Ii67Z4bCGBa/G091uw/gy6HYEAwB5sWdB1K8nzob3RSWLXFNicxP31kvFfPMEI1GBbtUDT0fdQBYBIC/4XUy3jXHonvcR6I3ET8A5BzmJ33bqDTB4Nw4H7i83wdmWtRGF6kCGv46nEhYSJfRMLn1joZuWYEQr2gsECOG71E7rJ4BZSrMwLc2oM54wn7ZJaftjV6NFqvfRvsu9xrMFYFKD+o7BHjSEaZ2HOxRPOPy4y6HJc4R0ohNScbbre2TUaPG113PDk/Z4Fe2efR5nbBm0bIP+RoQlbfuy0V4hxXsxFtx1FNjAoXfGGle3zK2S7zNdzn03hxIrPPj4OY41BeA== 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=MR5EFXo7WKI4P4GsXqtz4DKwZ1KO3uW4C2cMo5bP+RQ=; b=BhOWOFEGpaLv7b2bIOmRtwSmIF2IAvp6e0zq9tEqt6jcYsNZaB4jNLlCQQ9lk7TIB5FCqGVYgHSJ9BpxmFZxwXACZxgg4rR/eLjl3tse4pH79yd0vkwZPKnqTuhavpO5aj2+m3bcnLbsIJG6h4i7K1UVJQl6dAWt2N+FH2vqiqA= Received: from DU2PR04CA0264.eurprd04.prod.outlook.com (2603:10a6:10:28e::29) by AS8PR08MB8946.eurprd08.prod.outlook.com (2603:10a6:20b:5b4::16) 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:52 +0000 Received: from DBAEUR03FT055.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:28e:cafe::9f) by DU2PR04CA0264.outlook.office365.com (2603:10a6:10:28e::29) 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:52 +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 DBAEUR03FT055.mail.protection.outlook.com (100.127.142.171) 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:52 +0000 Received: from AZ-NEU-EX02.Emea.Arm.com (10.251.26.5) by AZ-NEU-EX04.Arm.com (10.251.24.32) 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:52 +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:51 +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:51 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , , , , , Subject: [RFC PATCH v1 22/30] ArmVirtPkg: Add Arm CCA libraries for Kvmtool guest firmware Date: Tue, 25 Apr 2023 17:04:20 +0100 Message-ID: <20230425160428.27980-23-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: DBAEUR03FT055:EE_|AS8PR08MB8946:EE_|AM7EUR03FT046:EE_|AM8PR08MB6564:EE_ X-MS-Office365-Filtering-Correlation-Id: d96c9d36-3b04-42ec-8f5d-08db45a6d540 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: L0yXWb798HLhQx/HLK2Vmx59uWT1wgNOzCtq/oeYIFQUGNdsCnVS3hmhg6G6YDo0uxzMfAggfpKZraU3w3fGFw5UEkm/4TNB71yDmplhpWh/0X0A8kgPsrQy8JLRqCBwJL4k2Fpgc62EWIrI3xi5p3cnbToeaL8VpSgaHqK8k+QBcko8Nt/ylBKMx0GYjCM7Rwr7Jh9a6jZrlx1I33/DFAeMxWXaTOyU64UIrHBUifkroDqY6X6iY7qLIFb8cQ8saoMdngnAXoRZqEM/0zzEodnG3OrLqrhb/wI0MiNt39OortK35zqnVHHOilV09hIrFn8sXPgGCMIKy+hTdEFVWlyWtuah6ImJZLzVjnX1Xq7KfSpDhyy1I3Efxm8G61wlWH9gOmV8m5Bshzn8QfPNWtVcPnG+6kWuXiEg9hgaVIwOy2iCk/Y/n8928sV3MXbEJ4VOpWOcRyfgzFMxabCbPYXbdIq9sfMaXZLPBQHe6iRdfSIWgMoAtXeOkarqpixWUvDX0VSZ1MvfjInytclVGWNufRzokbcB6+KFWnYx1LFrB3B4ToR0UAtw5ibfDT009Gl5vtkPnvcUfwHutYSSB64I48bUekouGcQ81mewXN86mwtbrAwXp+VYE0Sz4kEdFTVwF+LPEc2R8MGr2mbP+iuimGTQLUTBRJvhuSmJfeYKMbAQKyuoO+DuY7Q7aMk9lYvhEJh/+uA4THTZITu5czdcvwcoeJnmZjOfTyoBVIc= 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)(376002)(346002)(396003)(136003)(39860400002)(451199021)(36840700001)(46966006)(36756003)(8676002)(8936002)(54906003)(34070700002)(478600001)(70586007)(6916009)(4326008)(70206006)(40480700001)(356005)(81166007)(44832011)(316002)(41300700001)(82740400003)(2906002)(5660300002)(2616005)(86362001)(36860700001)(186003)(336012)(426003)(26005)(1076003)(7696005)(6666004)(47076005)(82310400005)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB8946 Return-Path: Sami.Mujawar@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT046.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: c68f76fa-44db-402f-c265-08db45a6cde8 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: t4yIl+oPVckMsifQQ8NGMUYPR5Zf0lDf7Ppq/eg3NoPcNJDM3AQQKv1PfLiB2OSsxrtA7h4Qs5e6aO9Gy9qSDj6l0zrpm2498BgnXl7zwh3UlYY0ho6UTZEeDfOROhavUN1BBCX5gd3BS33UNA9XosTSnzCFnOreBClPv7oqt9Z0vzx0qADwu0bATS/HzpSLYb6VJ0jZZT6c/b+BG0MDt13yFZ6ugOSqXhMCKzj9bcgt5DqqRVNwOLNymelR72Ca5No4YvPAMLA2fuarrvuyegOEXdRN7zIa75BBWdfFtCAR3K/s3MSLIX92qG+vebCzHpgyVyI9AErusyXFOFPJg++Qg0BijJPa5k1X0iTCAQ/zS7kjrSqrl7sMYvVCcK4xxJMxvawe4EpKz+fkFaXrqnvRiMJPI+YMpW/OeyInQo8HRjURAficoPADODKXNirAPDIwYgTqL0HD4+PESvKHFhTZwvXaptp0trFReb+3ojg9MhfTxI8Ayg2mWDOypOjoTyf3MHIEh8E9mjo8RKulpzIvGWIj4XSpxNgg1UAwBNgGh8n4gYPGyrG+NYW5EB66jqPIgusSZuNpc3gddcV4XarZwngABJUMiV3nIkpMBXP2VOEd/sM0z4n4qG0ruGtW3VBupkhq0vUjupWG8/V6Moo+ZhA/nqrdchd1N/DtiFe81WkZixUHhcHKh6IfDS0Hk6mP0Hx+5n7hEkYzPVLk1S6gnMhrjvJEqQS1NoReTPs= 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)(346002)(136003)(39860400002)(376002)(451199021)(46966006)(36840700001)(40470700004)(7696005)(2906002)(2616005)(6666004)(186003)(40480700001)(1076003)(70206006)(70586007)(8936002)(8676002)(41300700001)(6916009)(4326008)(316002)(26005)(478600001)(44832011)(5660300002)(54906003)(82740400003)(81166007)(82310400005)(36756003)(86362001)(40460700003)(36860700001)(47076005)(336012)(426003)(34070700002);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2023 16:05:04.7254 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d96c9d36-3b04-42ec-8f5d-08db45a6d540 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: AM7EUR03FT046.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR08MB6564 Content-Type: text/plain The following libraries have been introduced for Arm CCA: * ArmCcaInitPeiLib - provides functions for ARM CCA initialisations in early PEI phase. * ArmCcaLib - provides the necessary helper functions for Arm CCA * ArmCcaRsiLib - implements functions to call the Realm Service Interface. Therefore, add these libraries in the Kvmtool guest firmware workspace as part of enabling support for Arm CCA. Signed-off-by: Sami Mujawar --- ArmVirtPkg/ArmVirtKvmTool.dsc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ArmVirtPkg/ArmVirtKvmTool.dsc b/ArmVirtPkg/ArmVirtKvmTool.dsc index 1cfd9e7ed8a6d2b0b054e130a84c66c2fec54e57..9bc857ea88d00431bf4223f588f908eab7561a19 100644 --- a/ArmVirtPkg/ArmVirtKvmTool.dsc +++ b/ArmVirtPkg/ArmVirtKvmTool.dsc @@ -86,11 +86,18 @@ [LibraryClasses.common] ArmMonitorLib|ArmPkg/Library/ArmMonitorLib/ArmMonitorLib.inf ArmTrngLib|ArmPkg/Library/ArmTrngLib/ArmTrngLib.inf +[LibraryClasses.AARCH64] + ArmCcaLib|ArmVirtPkg/Library/ArmCcaLib/ArmCcaLib.inf + ArmCcaRsiLib|ArmVirtPkg/Library/ArmCcaRsiLib/ArmCcaRsiLib.inf + [LibraryClasses.common.SEC, LibraryClasses.common.PEI_CORE, LibraryClasses.common.PEIM] PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf PlatformHookLib|ArmVirtPkg/Library/Fdt16550SerialPortHookLib/EarlyFdt16550SerialPortHookLib.inf SerialPortLib|MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.inf +[LibraryClasses.AARCH64.SEC, LibraryClasses.AARCH64.PEI_CORE, LibraryClasses.AARCH64.PEIM] + ArmCcaInitPeiLib|ArmVirtPkg/Library/ArmCcaInitPeiLib/ArmCcaInitPeiLib.inf + [LibraryClasses.common.UEFI_DRIVER] UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf -- 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'