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 45EE0740045 for ; Fri, 12 Apr 2024 14:34:25 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=KMa6fqcy9lDkk86cQrbjvRZIt8okVa5f5aX3jrSBL3k=; 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=1712932464; v=1; b=JACMUFNwUzLoLceeJcJ9oGPTjGafZAeG4GN9PhV0ESXea4V5NG6+U6KsPw9D5FNvMoX78b1s oVsoGMfDjEbwQ8BKDIjYgCa1K0GLomx3eZto/R+xbA3+kSg23JuaAFcvhMxpWv/ltTwDcESHzTY qh1PCik4Nvs4zT64DiMVBqParCHyjNqJDceKtdxLn/Okk0vuBPS3+Z5p0mFOzgMwuLmIxwWgbrB O4w6WtyzPtniOiQGsRHO6I4khR7+sfTD7fNJEPykX2/61f4fRIGUTaPsZg2bWnEykDwlOBPSHhn PjBGR2g6n4PnfqO16sIRQ2dG+aSIpXS4QBkG25AQy07UA== X-Received: by 127.0.0.2 with SMTP id nx1eYY7687511xp2YNsyf9JN; Fri, 12 Apr 2024 07:34:24 -0700 X-Received: from EUR02-VI1-obe.outbound.protection.outlook.com (EUR02-VI1-obe.outbound.protection.outlook.com [40.107.241.51]) by mx.groups.io with SMTP id smtpd.web10.48561.1712932454862051041 for ; Fri, 12 Apr 2024 07:34:15 -0700 X-Received: from DB3PR06CA0021.eurprd06.prod.outlook.com (2603:10a6:8:1::34) by AM0PR08MB5396.eurprd08.prod.outlook.com (2603:10a6:208:182::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.55; Fri, 12 Apr 2024 14:34:07 +0000 X-Received: from DU2PEPF00028D0E.eurprd03.prod.outlook.com (2603:10a6:8:1:cafe::44) by DB3PR06CA0021.outlook.office365.com (2603:10a6:8:1::34) 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:34:07 +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 DU2PEPF00028D0E.mail.protection.outlook.com (10.167.242.22) 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:34:07 +0000 X-Received: ("Tessian outbound 8c03561b2da6:v313"); Fri, 12 Apr 2024 14:34:07 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 5babee329785c1fd X-CR-MTA-TID: 64aa7808 X-Received: from 397a7538f767.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id F9C2CC1C-AB17-4AF1-A78F-928520BB67FA.1; Fri, 12 Apr 2024 14:33:56 +0000 X-Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 397a7538f767.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 12 Apr 2024 14:33:56 +0000 X-Received: from DB6PR0301CA0082.eurprd03.prod.outlook.com (2603:10a6:6:30::29) by AM8PR08MB5732.eurprd08.prod.outlook.com (2603:10a6:20b:1d4::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.55; Fri, 12 Apr 2024 14:33:53 +0000 X-Received: from DU2PEPF00028CFF.eurprd03.prod.outlook.com (2603:10a6:6:30:cafe::8) by DB6PR0301CA0082.outlook.office365.com (2603:10a6:6:30::29) 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:51 +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 DU2PEPF00028CFF.mail.protection.outlook.com (10.167.242.183) 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:51 +0000 X-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.35; Fri, 12 Apr 2024 14:33:44 +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:43 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , , Subject: [edk2-devel] [PATCH v2 38/45] ArmVirtPkg: RMM 1.0-eac2 - Add RsiRipasChangeFlags definitions Date: Fri, 12 Apr 2024 15:33:15 +0100 Message-ID: <20240412143322.5244-39-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: DU2PEPF00028CFF:EE_|AM8PR08MB5732:EE_|DU2PEPF00028D0E:EE_|AM0PR08MB5396:EE_ X-MS-Office365-Filtering-Correlation-Id: f924461b-09f8-4e67-6894-08dc5afd9c71 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: J0RKShI7xEQ+y53dnlLAObI7F7nM7nTJEJF2DOiy3Pj71mHX+eplNAG7f+UzJmKrk5n80hrW4BktzkXCv2stazbueUDZCF9CUkYzzGpH25yNFZQ8L9tRLvv3YebtdkXby8d+Z+BVxm40LKL7DsSNWe/y7OsLKqG8n5cNg2dnpQDvHQe1Rp52Ya7KmhUsezHvPjv0l2n6TI1923ZUTexQANcDvx4KyvniOP+LqkjJYl6qMpBkRYCWEPswO00cWh0LTEqSIFDaashPkVuEB2a03yJ3L7jnaRCI11fWJVrNTRgvrU/8z6wO2MULuyFrz/VuqTZUxLO2Q13Nucs5nFVB+S0s5yHRedOEMytR/bKZCbtmWRgP6n0oaGSoNR9Q1Cf+uXFobGkpxQAM9JPcNGTW6o1OKU4E9S3hq8V5Zp2PIRviBjNgTUXPxuR3wt4q1z1ZROVUYG1x2A5HsEQuRfMwYSdtE2jUsxlfXZbCaMqTBEzuegceo1JtT/kkHx/Ixae7P6QetW2y5REba++j1F5TrVfHr8wh0Mopt5u+6j9KjTBRWB4fQ44RRYUXcYh+M42NEH1kGtRR/n3+NitfQt3/dGzHcXUJvu73GE+AQXoCbPEfrgXGgRrPbdsDvhM+/eh+4bpFYWGimtT9OOhZhhaEysIIpnu0/jFtL83Fz2G+PqGLWy3vZKhrsk8oJoodpMAtEZKB436DuT0sid98alrkXk7WpvEsupye54StEpdBStGYgrl67O3h9RvydZRO5gKA 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)(36860700004)(82310400014)(376005)(1800799015);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR08MB5732 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DU2PEPF00028D0E.eurprd03.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 28a914a2-3234-4b06-6335-08dc5afd92cc X-Microsoft-Antispam-Message-Info: AIwH7o/52qaQc5AJUwj48P/Pa69ddioa3WkSlR8OZ0vKH41MIq1svYEVDGGKnH5rZQiAy+zVg7yaAZLNj0yUlCEvLPEakiIbt8/fJJOwO0u6eQc2cgGD2sqccTbFoNCK3r06ReHbVlM8yGM8CehMadKJP1+o3fTvy9gSXW8S2ByrHnTjqSopnPV9/4zXwY/V46KDyAlKKuIDYrHRCl5PQ35H+5ptwvzeHZoPYxabU9vt5lfJTp+bS9/nqMB3Vt+mEa2zZsadfw5OmHF+yOlFy5QlSkxbtmtovZV9hoGyGIM7GO+W+5bmEUPc97U0wQHN+Nfk/FRyWEeyalJZi4iGjlzz9QiX9otycDHigvUVdnIDUeiX/Oljrt06C3Imst522rRw8CtEDMxvNiqrqgPqyOlXgMUDrUfvY7sH8jPxReLnYuvbDAbEj6ry4FeNYVDlEF5976vq0mYQik8HG5EMSZX8B0eCx3XUTBPhxIdvgxf9nbHkBxr4t/0Sjiie3FgC2lq3/07NOIsZ4rXZUmOiG+B0M/fg0DL2vmG+lUoa8ERAHFhBBJt6x4IijJ/5+7PcNNyvn4/eYLWaZ4PpIEInQAbp8gOiuzEfd7s1LP/x5AFPIbE7mBVCBn3H/M4gE+MPVi5WIr7PnqSOHMLu6RjKy6KSVdIJz0kGXgaeSzBYcOm5O15GtBQqAk6MaoX4BuRj4mIxhV4pUG2ONzKVbvsoBow/oRU9sKzwlE0dzK3g9jhBQi6hOmNUoSw9GstFJ8Qr X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Apr 2024 14:34:07.7359 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f924461b-09f8-4e67-6894-08dc5afd9c71 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: DU2PEPF00028D0E.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB5396 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:34:15 -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: lRTc3ItVsXeNviHfqUGarnKnx7686176AA= 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=JACMUFNw; 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 The RMM specification 1.0-eac2 updates the RSI_IPA_STATE_SET interface to add a new parameter RsiRipasChangeFlags. The RsiRipasChangeFlags fieldset is 64 bits and the bit 0 describes the RsiRipasChangeDestroyed type which is used to indicate if a RIPAS change from DESTROYED should be permitted or not. Therefore, define the macros for specifying the RsiRipasChangeFlags that represent the RsiRipasChangeDestroyed type. Cc: Ard Biesheuvel Cc: Leif Lindholm Cc: Gerd Hoffmann Signed-off-by: Sami Mujawar --- ArmVirtPkg/Include/Library/ArmCcaRsiLib.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/ArmVirtPkg/Include/Library/ArmCcaRsiLib.h b/ArmVirtPkg/Include/Library/ArmCcaRsiLib.h index e237187dbc481d32aa6018c135aabe6f5a0781c6..154a5717f259502952a36312f6c3b3d6b75f15cb 100644 --- a/ArmVirtPkg/Include/Library/ArmCcaRsiLib.h +++ b/ArmVirtPkg/Include/Library/ArmCcaRsiLib.h @@ -71,6 +71,26 @@ */ #define RSI_HASH_SHA_512 1 +/* The RsiRipasChangeFlags fieldset contains flags provided by + the Realm when requesting a RIPAS change. + See section B4.4.8 RsiRipasChangeFlags type in the + RMM Specification, version 1.0-eac2. + The following macros prefixed RIPAS_CHANGE_FLAGS_xxx + define the values of the RsiRipasChangeFlags fieldset. +*/ + +/* A RIPAS change from DESTROYED should not be permitted. + See section B4.4.7 RsiRipasChangeDestroyed type in the + RMM Specification, version 1.0-eac2 +*/ +#define RIPAS_CHANGE_FLAGS_RSI_NO_CHANGE_DESTROYED 0 + +/* A RIPAS change from DESTROYED should be permitted. + See section B4.4.7 RsiRipasChangeDestroyed type in the + RMM Specification, version 1.0-eac2 +*/ +#define RIPAS_CHANGE_FLAGS_RSI_CHANGE_DESTROYED 1 + /** An enum describing the RSI RIPAS. See Section A5.2.2 Realm IPA state, RMM Specification, version 1.0-eac2 */ -- 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)' -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#117708): https://edk2.groups.io/g/devel/message/117708 Mute This Topic: https://groups.io/mt/105483452/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-