From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0FE94CFC27F for ; Tue, 15 Oct 2024 09:57:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version: Content-Transfer-Encoding:Content-Type:In-Reply-To:From:References:Cc:To: Subject:Date:Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Fxo0034oQei77aEQA8eboxrK3kfTKT64TeU9b4BwAlA=; b=SjC9ApD9SVAaT0C2OVkYolkTIx 1gt81zISbjcnHsl+A3Ol4vRqNK9FiAZUkxttC5BaP9+dd3qQ2lSj91SPW1i4NxgK7husyvSRB1q+E 8CROaKi7uaTCY1GMYsbvZ5HI2WpRgFglJ8UdeUqMOEmB+ne0UcPLEkeISKpXcqBzK4SbpsjdD7i56 9v3NvACubX/5RYVPgE+7kjN11p/5FrTOFcQ9Hzng3bfcPIGOAWLC4gE9UpBdCaLTQ7Nr9cXBs7muG hlrTKzE5mzTW7764V/+NB8FchFleBU/EDBrLa2qtoAKKP59hM1KAp4RomPOo4BM/g3iah+tNP8ZVo dcs0byBQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0eJB-00000007krT-0PIl; Tue, 15 Oct 2024 09:57:41 +0000 Received: from mail-am7eur03on2062a.outbound.protection.outlook.com ([2a01:111:f403:260e::62a] helo=EUR03-AM7-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t0eHj-00000007kg4-04m5 for linux-arm-kernel@lists.infradead.org; Tue, 15 Oct 2024 09:56:14 +0000 ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=WfIhRX2f8vlQR3m3yFmA3D04KPy9B0FR6bTFzPRuZoUzJGQa4GnB4Bz/XUqlzKbu0zVhyjhHkvaA5Kbfs5Sa7ZZkcDdQhNe5xrQdxXeMCkzyAyZj9WIiYJL9Xw7RkscvwP7iDiHkUN71AhjF5AaguIHVPiZehHfjbhSJD6PTxOTl6jEyk0sWL6BW+qgCFd7jbU0p+KD6Nhh/OtvtH5GraXZD8oywfZzLXWva6oeb4xSpqL2nF7+Wq0utw5U03n8zj9XiPPXCUdKpF/vIVZmtcl7rDgYBS23YTPCrY8lRLwztV0tC/pu0FzcNV4G4wETJDDOuDe8dQU6d0eHlC+bDpw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=Fxo0034oQei77aEQA8eboxrK3kfTKT64TeU9b4BwAlA=; b=giiQZHnOznSTSSz//RewR2xmNiZZH6ageuKnjGKxdJHE0eWUsmdstUDGfIqjBWFEc3N4PbA/W22ZRDipO+5XLALTAU+1khOsieQwaEKtI76weoF0AT80ig4GrJCw8EMAegthR+I93tT5ZR7UnmffCpIa64virlTWdiEUwRag4gClpYkV3Q7NgkpXoAYsZtRCLAZGp47gj5vcR4xlM9He8hmLbsSBDveXlB/j0nZolHztcdH3P5yxYooxGXkjIPCFQzQSRX+XcSbxrF6v8ie60/DhI6bUZIcPCRGka0a7jl9zZk+k0ytUiFuVhtmE//P9zTW5I1ABSPF1pxKexzmq8g== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=lists.infradead.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=arm.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Fxo0034oQei77aEQA8eboxrK3kfTKT64TeU9b4BwAlA=; b=pnhgSmBDaxdhQ+zDNwT3bNCFza1JIamKWb+1fdect8zdLLhRjYFJePeF0cngEE81baGm17+G67PWkg5SHW5rEWC/EhQreBeA3NPqTCNrRRiRRdZ4A0kT7AZ15R4KZb9sAbJsdVRm7oTB35qGVO7G9F8khTAvXHA2E713jCKMgqc= Received: from DUZPR01CA0287.eurprd01.prod.exchangelabs.com (2603:10a6:10:4b7::29) by GV2PR08MB9328.eurprd08.prod.outlook.com (2603:10a6:150:d4::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.26; Tue, 15 Oct 2024 09:56:01 +0000 Received: from DU6PEPF0000B61C.eurprd02.prod.outlook.com (2603:10a6:10:4b7:cafe::e8) by DUZPR01CA0287.outlook.office365.com (2603:10a6:10:4b7::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.27 via Frontend Transport; Tue, 15 Oct 2024 09:56:01 +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=arm.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 DU6PEPF0000B61C.mail.protection.outlook.com (10.167.8.135) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8069.17 via Frontend Transport; Tue, 15 Oct 2024 09:55:59 +0000 Received: ("Tessian outbound 5c9bb61b4476:v473"); Tue, 15 Oct 2024 09:55:59 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 1fe33367947a5308 X-TessianGatewayMetadata: 3awlzYEwt0DMe7+iprxZjrCQERfzQG8heXlNJnaWxbSqhWiQWGmcRG+jqQNoGy4pOa3JkH1ASWoODvJSyG5R2iRIhjkaOnZ8/1F08TXnLkBTiPN3+HCfQ66q4h90gVLbow8LFNkxUr2IE6wa0jCdz1O2HMxVX1iy5KFypGV1vCc= X-CR-MTA-TID: 64aa7808 Received: from L5030f799defd.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 544C5CF6-6824-463A-81A5-5C4C3A0C76E3.1; Tue, 15 Oct 2024 09:55:48 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id L5030f799defd.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 15 Oct 2024 09:55:48 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=u7xgFIvTgKlbyRShrTo/HgeWy8/OK3K0wcAdmxTAD3MG4fbFnUkoeezoEQb4BIaUWNHtNVWnmc5CmTEktHyApJPLYBoJFwhg2F6SV6PUWyRgk0sS9OJTVZhcgJm2cc5bp23jvYRaD2ObivZJECf5rSv+Oiq+cSMB5qVM8xCmHaKP3h8vp2138JHa0TfKSCtDUY3M3KE5o0UkYHCvGgbudEJrb6bg5N5M3mEMLH5w5NyOO1TjEwxQu8E/ai/lRPUeo3WOKGKxQRhsgk9B44MkmXY8/npIIEhI+OjL4826RIgEiSFg5Olrv5j6cTFtDPpsiQROXIGyaXesSGtqGjc5VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=Fxo0034oQei77aEQA8eboxrK3kfTKT64TeU9b4BwAlA=; b=TArszB6JuH5tDU0ujJrvsCXniCRIpcFOswC65PWXWRjk6aFuCV+iPcAc+H/ic7Ibgrni8kryhe6Ei7KtAoWVG0NtdQnafKhnl3pdZfkIdKjEoHeP0tWBCEDhX7sOUihH9Ld6sPUJJSIItz47el402xc6zWJ3tf1JCo8CJxAMDM2SmynTlGGH3h35ci1fHgZBXQeX7Ay5EKchXIUaAzXaLAd96A5TPAHKFVjTYi6Gc7ZUaOzZ9g2g7zRRluUhL50pIQ9WQdJ2sdJ53L0ypwQcfOysibSd8XFJp9XrSqGj0BIzTlk1jjTbIVwf0Ts84boMx+E2+a9XkSwERKKoJrVOPQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Fxo0034oQei77aEQA8eboxrK3kfTKT64TeU9b4BwAlA=; b=pnhgSmBDaxdhQ+zDNwT3bNCFza1JIamKWb+1fdect8zdLLhRjYFJePeF0cngEE81baGm17+G67PWkg5SHW5rEWC/EhQreBeA3NPqTCNrRRiRRdZ4A0kT7AZ15R4KZb9sAbJsdVRm7oTB35qGVO7G9F8khTAvXHA2E713jCKMgqc= Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from GVXPR08MB7727.eurprd08.prod.outlook.com (2603:10a6:150:6b::6) by AS8PR08MB6293.eurprd08.prod.outlook.com (2603:10a6:20b:23e::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.20; Tue, 15 Oct 2024 09:55:45 +0000 Received: from GVXPR08MB7727.eurprd08.prod.outlook.com ([fe80::9672:63f7:61b8:5469]) by GVXPR08MB7727.eurprd08.prod.outlook.com ([fe80::9672:63f7:61b8:5469%7]) with mapi id 15.20.8048.020; Tue, 15 Oct 2024 09:55:45 +0000 Message-ID: <0bb96cfd-8994-4a74-8ef2-fe5dcd5a1508@arm.com> Date: Tue, 15 Oct 2024 10:55:41 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v6 11/11] arm64: Document Arm Confidential Compute Content-Language: en-GB To: Steven Price , Jean-Philippe Brucker Cc: kvm@vger.kernel.org, kvmarm@lists.linux.dev, Catalin Marinas , Marc Zyngier , Will Deacon , James Morse , Oliver Upton , Zenghui Yu , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Joey Gouly , Alexandru Elisei , Christoffer Dall , Fuad Tabba , linux-coco@lists.linux.dev, Ganapatrao Kulkarni , Gavin Shan , Shanker Donthineni , Alper Gun , "Aneesh Kumar K . V" References: <20241004144307.66199-1-steven.price@arm.com> <20241004144307.66199-12-steven.price@arm.com> <20241008110549.GA1058742@myrica> <846c43a8-9720-4dd5-b40a-73ec00b9a9a7@arm.com> From: Suzuki K Poulose In-Reply-To: <846c43a8-9720-4dd5-b40a-73ec00b9a9a7@arm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P123CA0614.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:314::15) To GVXPR08MB7727.eurprd08.prod.outlook.com (2603:10a6:150:6b::6) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: GVXPR08MB7727:EE_|AS8PR08MB6293:EE_|DU6PEPF0000B61C:EE_|GV2PR08MB9328:EE_ X-MS-Office365-Filtering-Correlation-Id: c0d7b7c4-8496-42f3-b8d2-08dcecff9286 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0;ARA:13230040|7416014|376014|366016|1800799024; X-Microsoft-Antispam-Message-Info-Original: =?utf-8?B?UDdOOUVzMStYTitGTERWK3ZvT2d6YXJGZFlyNG9GdUZwcGFxTzlUYXg0blNs?= =?utf-8?B?UDM2T1ZKZFk0R015TU5qN1hXeWhDUkxSVzVhV3JkeGIxa0MrSmVpNXcrRlBh?= =?utf-8?B?Wmx5ejJLMU8yQXJVR0tVVmVwUDVyMFI1djdjWDFlS2Z0Z0xEZ3FGWkVKdlBK?= =?utf-8?B?SkxJclg3UGhGZVk5Tkd4bkFJcC9ZQ0Exc3BNUUJKWnNwSnBUdnZFYmdkbzky?= =?utf-8?B?WlNpb1RqL205aUVnWElOQXg0K1F1TFBmVnFLOW1NV1FvQTVOR2MxQmNSZk5u?= =?utf-8?B?R3BKb1k1RHhEZWk0L3pqNXhiVHJ1L2tFNVdqR21lZGxWV1BSdFdIbDFTT1lK?= =?utf-8?B?V256RDk2dkRrbjh4QS9HckxmVnZ1cEY2MmRySENpTDN5Q0F5TW9abktqL0pi?= =?utf-8?B?UkdaSEhNVlNLUjYrYUc1UGYyd2tiYVE5OXVHT2NndTdCK0MrU2ZVZ3Z6bkRU?= =?utf-8?B?ekRCUU0rc085dXFFTXpyV3o2Uk1SVjJrblBVOE1FNlUvZ1o0c1pHTGRzRHZN?= =?utf-8?B?bGpVUHRIbTM1dE4zNkxMTVh4L0JrWDMrdld5OEVHeThWSkFDMHM4Y3I3YlRx?= =?utf-8?B?Ri9LUU41LzMrTjlFNkhOc0xj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ZFpaT01LN2M2SWhwU0ttUE8rVzdyT0NvSWltb2kyenhL?= =?utf-8?B?aE9tWTJKL3hNV2RLb1NNVVdIMGc4eUwzYnZVdmhudHdxSS9aU0pwTitjRDVu?= =?utf-8?B?NVdKdTZBbnpNR1ozdHkwMDBFNzROUmgyS29SbXhKMXZpaEVURlJzR3E5S2Jw?= =?utf-8?B?UDZtd2pVN1NUTFVFRUMwbDJsWS9OcUFHZUE4Tms1YTdYT1NKU3F2WklRPT0=?= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:GVXPR08MB7727.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(7416014)(376014)(366016)(1800799024);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB6293 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-SkipListedInternetSender: ip=[2603:10a6:150:6b::6];domain=GVXPR08MB7727.eurprd08.prod.outlook.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: DU6PEPF0000B61C.eurprd02.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 35582aeb-555b-425a-0e4a-08dcecff8988 X-Microsoft-Antispam: BCL:0;ARA:13230040|35042699022|36860700013|376014|1800799024|82310400026; X-Microsoft-Antispam-Message-Info: =?utf-8?B?aFczaVdVVkNVQ1RNVVh4RGhlOW1VcExwOVBCRUZad2ZGc2U5Sjc0ZDNDcmx4?= =?utf-8?B?dnRDZzd1TjcwWUJNdk9UWUw1YWdHNlZ3T3JpUzlNMnZHRkk3ZmRpb3RmNVcz?= =?utf-8?B?Mkg5UkFrYkNnMHZRbGoxTzR0aFoxbllXL0FtV0VSaGVpQStsSWpxbURYeENo?= =?utf-8?B?YldETGhOY3ZCaVQ1dWN6OXRHL29qKzVWQ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SL1VwS2RFSm9ZWHBOK0tDRGxRc0IwZWgya1Jl?= =?utf-8?B?TzdMZnh2WjdPS1dKR1lPVWorSWwwWXZIWXA5dno1VmlXV05FZHNmY2RHdlhx?= =?utf-8?B?ZVBsRjJiT05vZlFZSk1neGxKSVk4L2RIbG8wVStYMmlsdmhrSVhFeW5mUUNW?= =?utf-8?B?bVlvSVltZ0ZlSVEzMGwyc3FOaTJLMnBEMkZ4QjAwWDNuZGI5YnYzMWVUWVpF?= =?utf-8?B?UUM3RDBPd1hlM0xlZFdCNEREaUlOdE1KVEhITGw4VW9BMGRISng4UW5ySkNp?= =?utf-8?B?TkcvV2ZsaHZNb3VkNTE0TnlsbFFERHlYbjh1ai9lUEpXbTJOaE4wSlBreE5J?= =?utf-8?B?ejFLTVVBeXhVTzVmbm54UkdNSjRPZFZINHhwSFFSLzBoTk4wV1ZJTVN2djds?= =?utf-8?B?MDNsckR6ZWtZSm81ajlmVVJhSms0WXJiaGhpSUhSZ0tIaWhyemxnamVwM0dS?= =?utf-8?B?Z21IVmVMSy84OXVUTndGa3ZvOEZJbnNObFljNno2M2ZKYU5WdGpRTTRHNWY3?= =?utf-8?B?OS9JSFVLVHhQM0lRRnpWbGhzcG9KN1F2RXRGQmtrWlo1WUpQUFg3TXNHanhn?= =?utf-8?B?cWhqcE5KUnhSbTV0VFVUTnltSWpvMWg5U09EcFZJeEh0RW9YRHNTNVRUbzFj?= =?utf-8?B?VUp2MTZveCt5VnFLT3Q1VzFweVhvNkV1M3JhUkRvVktURDZjeTlVdjU4VzZX?= =?utf-8?B?aUllaVBYN2IvRCtCMUI2b1JaYUtqSzVjZ2h3Y09aTDJUVS9TbmloZ1VDZmZD?= =?utf-8?Q?ln3tv1Q7yrRCv?= 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:(13230040)(35042699022)(36860700013)(376014)(1800799024)(82310400026);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2024 09:55:59.7636 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c0d7b7c4-8496-42f3-b8d2-08dcecff9286 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: DU6PEPF0000B61C.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV2PR08MB9328 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241015_025612_909495_9FEF5819 X-CRM114-Status: UNSURE ( 8.84 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 11/10/2024 15:14, Steven Price wrote: > On 08/10/2024 12:05, Jean-Philippe Brucker wrote: >> On Fri, Oct 04, 2024 at 03:43:06PM +0100, Steven Price wrote: >>> Add some documentation on Arm CCA and the requirements for running Linux >>> as a Realm guest. Also update booting.rst to describe the requirement >>> for RIPAS RAM. >>> >>> Signed-off-by: Steven Price >>> --- >>> Documentation/arch/arm64/arm-cca.rst | 67 ++++++++++++++++++++++++++++ >>> Documentation/arch/arm64/booting.rst | 3 ++ >>> Documentation/arch/arm64/index.rst | 1 + >>> 3 files changed, 71 insertions(+) >>> create mode 100644 Documentation/arch/arm64/arm-cca.rst >>> >>> diff --git a/Documentation/arch/arm64/arm-cca.rst b/Documentation/arch/arm64/arm-cca.rst >>> new file mode 100644 >>> index 000000000000..ab7f90e64c2f >>> --- /dev/null >>> +++ b/Documentation/arch/arm64/arm-cca.rst >>> @@ -0,0 +1,67 @@ >>> +.. SPDX-License-Identifier: GPL-2.0 >>> + >>> +===================================== >>> +Arm Confidential Compute Architecture >>> +===================================== >>> + >>> +Arm systems that support the Realm Management Extension (RME) contain >>> +hardware to allow a VM guest to be run in a way which protects the code >>> +and data of the guest from the hypervisor. It extends the older "two >>> +world" model (Normal and Secure World) into four worlds: Normal, Secure, >>> +Root and Realm. Linux can then also be run as a guest to a monitor >>> +running in the Realm world. >>> + >>> +The monitor running in the Realm world is known as the Realm Management >>> +Monitor (RMM) and implements the Realm Management Monitor >>> +specification[1]. The monitor acts a bit like a hypervisor (e.g. it runs >>> +in EL2 and manages the stage 2 page tables etc of the guests running in >>> +Realm world), however much of the control is handled by a hypervisor >>> +running in the Normal World. The Normal World hypervisor uses the Realm >>> +Management Interface (RMI) defined by the RMM specification to request >>> +the RMM to perform operations (e.g. mapping memory or executing a vCPU). >>> + >>> +The RMM defines an environment for guests where the address space (IPA) >>> +is split into two. The lower half is protected - any memory that is >>> +mapped in this half cannot be seen by the Normal World and the RMM >>> +restricts what operations the Normal World can perform on this memory >>> +(e.g. the Normal World cannot replace pages in this region without the >>> +guest's cooperation). The upper half is shared, the Normal World is free >>> +to make changes to the pages in this region, and is able to emulate MMIO >>> +devices in this region too. >>> + >>> +A guest running in a Realm may also communicate with the RMM to request >>> +changes in its environment or to perform attestation about its >>> +environment. In particular it may request that areas of the protected >>> +address space are transitioned between 'RAM' and 'EMPTY' (in either >>> +direction). This allows a Realm guest to give up memory to be returned >>> +to the Normal World, or to request new memory from the Normal World. >>> +Without an explicit request from the Realm guest the RMM will otherwise >>> +prevent the Normal World from making these changes. >> >> We could mention that this interface is "RSI", so readers know what to >> look for next > > Good idea. > >>> + >>> +Linux as a Realm Guest >>> +---------------------- >>> + >>> +To run Linux as a guest within a Realm, the following must be provided >>> +either by the VMM or by a `boot loader` run in the Realm before Linux: >>> + >>> + * All protected RAM described to Linux (by DT or ACPI) must be marked >>> + RIPAS RAM before handing over the Linux. >> >> "handing control over to Linux", or something like that? > > Indeed that actually makes grammatical sense! ;) > >>> + >>> + * MMIO devices must be either unprotected (e.g. emulated by the Normal >>> + World) or marked RIPAS DEV. >>> + >>> + * MMIO devices emulated by the Normal World and used very early in boot >>> + (specifically earlycon) must be specified in the upper half of IPA. >>> + For earlycon this can be done by specifying the address on the >>> + command line, e.g.: ``earlycon=uart,mmio,0x101000000`` >> >> This is going to be needed frequently, so maybe we should explain in a >> little more detail how we come up with this value: "e.g. with an IPA size >> of 33 and the base address of the emulated UART at 0x1000000, >> ``earlycon=uart,mmio,0x101000000``" >> >> (Because the example IPA size is rather unintuitive and specific to the >> kvmtool memory map) > With the above addressed: Reviewed-by: Suzuki K Poulose