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 lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (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 2D637ECE564 for ; Tue, 10 Sep 2024 12:16:43 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.795465.1204820 (Exim 4.92) (envelope-from ) id 1snznD-0003jV-4Z; Tue, 10 Sep 2024 12:16:23 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 795465.1204820; Tue, 10 Sep 2024 12:16:23 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1snznD-0003jO-1c; Tue, 10 Sep 2024 12:16:23 +0000 Received: by outflank-mailman (input) for mailman id 795465; Tue, 10 Sep 2024 12:16:21 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1snznB-0003jA-HH for xen-devel@lists.xenproject.org; Tue, 10 Sep 2024 12:16:21 +0000 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on20607.outbound.protection.outlook.com [2a01:111:f403:2418::607]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 7b8e84f6-6f6e-11ef-99a1-01e77a169b0f; Tue, 10 Sep 2024 14:16:19 +0200 (CEST) Received: from PH8PR12MB7326.namprd12.prod.outlook.com (2603:10b6:510:216::7) by SA3PR12MB7805.namprd12.prod.outlook.com (2603:10b6:806:319::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.19; Tue, 10 Sep 2024 12:16:14 +0000 Received: from PH8PR12MB7326.namprd12.prod.outlook.com ([fe80::6d76:9c33:d230:8264]) by PH8PR12MB7326.namprd12.prod.outlook.com ([fe80::6d76:9c33:d230:8264%4]) with mapi id 15.20.7939.017; Tue, 10 Sep 2024 12:16:13 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 7b8e84f6-6f6e-11ef-99a1-01e77a169b0f ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=gCZyXO0/yiIzo9USxTWZAKFdYFoLl9oW8LPKT0UZnLEGEuceZGCrDdQHIo8Jttzj8CIOki1GyfkevAu8LIAY14IakBpl0TuVlou3lXFx0Ne91EvjCA7P3kTRiqJk7Z3EzfK1Qtwk1kiRg3P1g7yBP8cz1S7c8DKG3U4J7ES5Tbxjg4k2uR8de3DxYCjQ6gsmMNXne1V2nh2JY7Cno8Sk8IbEgcRM6a/kodiZjes9vl/FQDsB7MJkWLvTaSQdNjwUsLlw3mGimYN3g6A0sMgNcG5zK9xsdIQABibLp0bzyUBUXRhiqiCTnfuN66ONey6wRe7trMViIYo9xCWIhmC2Mw== 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=p4G6CYPUEyx9C49GtL81PyqSUV/LZIWqTk5/JCVktjU=; b=WP+TTgaDkUnxeXS/hkPPX+zs/8WFUFuyJNN66Jym15sW8Y9Zl7aPzqXgOI6ZEQpr6yU/cX0EDCBevGSCMUHHSvcvH0hjk2epxD3wz5hsS7433un/Qr4r8pVwc/i5Di8xZYxIPYtVBmSN6IBMHW9nofjEJH91bT9YNW8ouTvXvxpddjxSrO0FGiKFjPdLyZpMAdPytT5pmK1jDBQLACIfl15xvplorYhpLq+8dVCDNsBxBF2P00AmkLhU5AdJZkoQl633mkcrZyQ930zJwAborugaCr8bSR10dsXXE3Lf0tk5wDVLQ1KIO+wGRxbdPAedtdFrUB9jb1oqIOzkRcvUeg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=p4G6CYPUEyx9C49GtL81PyqSUV/LZIWqTk5/JCVktjU=; b=pVFPYAmD9uriFv+wenSlhm9n3D/+bZo6lj2/x/fxBsGI+KBy+Ds9QPhehCUHPxw+2M3FZ2rzX5nFzeAHE92Dka6L33dT1Hc4ozAla9NTUMVZo2uVjakkwe5xyIONJBb6+zCUpVHVD2SNUKRABZtiWXNxS8IhHoSvpTvM4kviEho= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Message-ID: Date: Tue, 10 Sep 2024 13:16:08 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] docs: fusa: Add Assumption of Use (AOU) Content-Language: en-GB To: Julien Grall , Stefano Stabellini Cc: Michal Orzel , Ayan Kumar Halder , xen-devel@lists.xenproject.org, Bertrand Marquis , Artem Mygaiev References: <20240906101318.1419954-1-ayan.kumar.halder@amd.com> <57632c2f-82e6-49bb-b989-e75c95070b03@xen.org> <46b9567e-d27c-467b-b21d-65d63b6cd1e2@amd.com> <5de31172-8319-4cd3-9486-a6992a5cdc22@xen.org> <880e0578-c27b-45d3-8ed6-91ad648fa735@amd.com> From: Ayan Kumar Halder In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO3P123CA0021.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:388::9) To PH8PR12MB7326.namprd12.prod.outlook.com (2603:10b6:510:216::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH8PR12MB7326:EE_|SA3PR12MB7805:EE_ X-MS-Office365-Filtering-Correlation-Id: 54c93384-5c8e-4495-8ad7-08dcd1925d0e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|1800799024|366016; X-Microsoft-Antispam-Message-Info: =?utf-8?B?SjllajM4T2FyQTdJb2VDRXFlcS90ZUdXQUIrZjJmTGNiYjFGN0ZHaEpVTXRJ?= =?utf-8?B?ejBSaC81ZHBNVC90Qjg3U29YTmk5d0MrYXl1VTlyb1Z2UkhubUU5aFVxZmh0?= =?utf-8?B?VldlY2xWbmdBelNHcnJVQkJBTjVrTDR0WjdsaW84MFhjcnlFU1JaTWgwcDRj?= =?utf-8?B?dEhkZUFIYkkwSGJQNXo4WFJvaUI2bGJNNmpjVitZY3ZuNkJ2emRkRE80VjZO?= =?utf-8?B?V1NUc0JzZlpkdlc2eWx4ak55QkdlTTdMTG9oNjVMaklPb3cwNzZqRlByYmtj?= =?utf-8?B?T1JkTU5LQTd1c2EzZGdXUEtDQnNnNnlqd3VzemRnV1VXeGJkSmpKSE1mbWI1?= =?utf-8?B?REcxWDRBVHh3eVJocTA4Vm1ZSkVaS0p5QmhSRFBkVlR6a3I0WjlRdkIwY2VS?= =?utf-8?B?U2xzQjJ5ZSs3M0l3TjR6TE00bCszQmwvVGZ3YVRCS2s4cXhsU3FBT3c5bllr?= =?utf-8?B?SExybm04VjlIVGw5T3IrTzQxZ0sxbVZLek1UTjMxcUJ3dUZLWUZPbGdQaVhq?= =?utf-8?B?YkI5VXVnNXQ1RW5lVUZOUEltelovWUFDUXVGNlBaMVNWdG5YQzhVWHRlUFk0?= =?utf-8?B?dDFrNnhlaUxwSndyekc5UDBvYXF2a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1Rkx1dUVBWmlYb1U3VmRRMFRrbkFpODl0Y3c2eTNHc25yS01hb2Vz?= =?utf-8?B?aDFkUWtTNVRTZ1ZZNHp3ajNNQk1LM0QxcjhuR296Qm1lc2RPOTNZSEFERlUw?= =?utf-8?B?ZGJFZU9qa2s1RHR3Nlp1cldhb2xnTlVzamhsNWVaZkw2bXdqMXNBNm9aSTNV?= =?utf-8?B?U1lqWm4wVmZFOTVIdGtITmtaMTR3QmNwbjNGb29nUzJtQTlKNXRQcmhSaVJ2?= =?utf-8?Q?tw3X/g16tpH7aNyl3A=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH8PR12MB7326.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(1800799024)(366016);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?NHdkYi8yMjNjamZOcnMzSEhxQmlNOU1KOGlGN0lwZFVQYkNwM3BpdVdsQWVD?= =?utf-8?B?Wk1ROUU0QVhTTEhoUUF4N1RvdUt2Y1l2K1RBNU9WUkFTS1RjamkvTmpyVlVO?= =?utf-8?B?aWFGYzR4T0RSV0ZHU0x4cExqd0dRN3dSOVpJMThiUE9pN0RERDUySkJTRXJv?= =?utf-8?B?Rk1RdFdweUtSdU43akVuaThjRFB2Rk5MRjdyZHJiWFRUWWcvN2FvU3E0aTR0?= =?utf-8?B?WEpZV1F3Y0RkTWd4MnNiVmcraVlxcHB2cllPLzNqQ1BvaEtGVDBTSFFLdjgv?= =?utf-8?B?Smp4OW9aQnR0aDFtUVQ2M2E4Y3Z3cnVkUlVid0VZdzRFK3BNSG5BWTF1Nk5l?= =?utf-8?B?eUpYUUtqaXc3eHhRL1dSdkxKRDJFVkR0YkVZQ2I2VHBUcEZOY0h0aUR3Rmt4?= =?utf-8?B?WVRIcXJkM29QOU5GY1d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H8PR12MB7326.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2024 12:16:13.8675 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: /LBktwkfyjTgw9JlDu0YsSyRCRY2Nzji0Oyy/ziUqPWhJUzxG3/zG6uAURFU0/xYzhkC9ab5tTgojcZdyLC9eA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA3PR12MB7805 Hi Julien, On 09/09/2024 21:59, Julien Grall wrote: > Hi Stefano, > > On 09/09/2024 20:53, Stefano Stabellini wrote: >> On Mon, 9 Sep 2024, Julien Grall wrote: >>> On 09/09/2024 10:50, Ayan Kumar Halder wrote: >>>> On 09/09/2024 10:11, Julien Grall wrote: >>>>> >>>>> >>>>> On 09/09/2024 09:56, Michal Orzel wrote: >>>>>> Hi Julien, >>>>>> >>>>>> On 08/09/2024 23:05, Julien Grall wrote: >>>>>>> >>>>>>> >>>>>>> Hi Ayan, >>>>>>> >>>>>>> On 06/09/2024 11:13, Ayan Kumar Halder wrote: >>>>>>>> From: Michal Orzel >>>>>>>> >>>>>>>> AOU are the assumptions Xen relies on other components (eg >>>>>>>> platform, >>>>>>>> domains) >>>>>>> >>>>>>> Searching online, I think the abbrevition is AoU rather than >>>>>>> AOU. This >>>>>>> would also match how we abbreviate in Xen (IOW if we use a lower >>>>>>> case >>>>>>> letter from the expanded name, then the letter in the acronym is >>>>>>> also >>>>>>> lower case). >>>>>>> >>>>>>>> to fulfill its requirements. In our case, platform means a >>>>>>>> combination of >>>>>>>> hardware, firmware and bootloader. >>>>>>>> >>>>>>>> We have defined AOU in the intro.rst and added AOU for the generic >>>>>>>> timer. >>>>>>>> >>>>>>>> Signed-off-by: Michal Orzel >>>>>>>> Signed-off-by: Ayan Kumar Halder >>>>>>>> --- >>>>>>>>     .../reqs/design-reqs/arm64/generic-timer.rst  | 19 >>>>>>>> +++++++++++++ >>>>>>>> ++++++ >>>>>>>>     docs/fusa/reqs/intro.rst                      | 10 ++++++++++ >>>>>>>>     2 files changed, 29 insertions(+) >>>>>>>> >>>>>>>> diff --git a/docs/fusa/reqs/design-reqs/arm64/generic-timer.rst b/ >>>>>>>> docs/fusa/reqs/design-reqs/arm64/generic-timer.rst >>>>>>>> index f2a0cd7fb8..9df87cf4e0 100644 >>>>>>>> --- a/docs/fusa/reqs/design-reqs/arm64/generic-timer.rst >>>>>>>> +++ b/docs/fusa/reqs/design-reqs/arm64/generic-timer.rst >>>>>>>> @@ -116,6 +116,25 @@ Rationale: >>>>>>>> >>>>>>>>     Comments: >>>>>>>> >>>>>>>> +Covers: >>>>>>>> + - `XenProd~emulated_timer~1` >>>>>>>> + >>>>>>>> +Assumption of Use on the Platform >>>>>>>> +================================= >>>>>>>> + >>>>>>>> +Expose system timer frequency via register >>>>>>>> +------------------------------------------ >>>>>>>> + >>>>>>>> +`XenSwdgn~arm64_generic_timer_pf_program_cntfrq_el0~1` >>>>>>>> + >>>>>>>> +Description: >>>>>>>> +Underlying platform shall ensure that CNTFRQ_EL0 register >>>>>>>> contains >>>>>>>> the system >>>>>>>> +timer frequency. >>>>>>> >>>>>>> The wording in [1] (not yet merged) implies that CNTFRQ_EL0 may be >>>>>> It is merged: >>>>>> https://xenbits.xen.org/gitweb/? >>>>>> p=xen.git;a=commit;h=51ad2c57a2d21b583a5944a0dc21c709af022f3c >>>>>> >>>>>>> invalid. This seems to contradict the Assumption of Use. Can you >>>>>>> explain >>>>>>> the difference? >>>>>> The requirement you refer to is written from a domain perspective >>>>>> and is >>>>>> about Xen exposing the frequency >>>>>> to domains via CNTFRQ and/or dt property. In case of a presence >>>>>> of dt >>>>>> property in the host dtb, Xen could for instance decide >>>>>> to emulate CNTFRQ instead of relying on the domain to parse the >>>>>> dt at >>>>>> runtime. >>>>> >>>>> AFAICT, you can't trap CNTFRQ access. So what you suggest would >>>>> not work. >>>>> >>>>>> >>>>>> The AoU on the platform (hw/firmware/bootloader) is written from Xen >>>>>> perspective and is about the platform >>>>>> exposing the correct frequency via register. This is Xen expected >>>>>> behavior on the platform. In other words, the platform should >>>>>> expose the correct frequency via register. >>>>> >>>>> Xen is able to deal with broken CNTFRQ_EL0. >>>> Yes, this is correct if the user provides "clock-frequency" dt >>>> property. >>>>> So I don't understand why we we would want to make an assumption >>>>> that it >>>>> shall not be broken. What do you gain? >>>> >>>> Refer https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/ >>>> linux.git/tree/Documentation/devicetree/bindings/timer/arm,arch_timer.yaml >>>> >>>> >>>> ``` >>>> >>>> Use of this property is strongly discouraged; fix your firmware unless >>>> absolutely impossible. >>>> >>>> ``` >>>> >>>> We wish to put the onus on the platform/firmware provider to >>>> program the >>>> register correctly. Otherwise, we will have to document it >>>> somewhere (may be >>>> safety manual) that User needs to provide the "clock-frequency" dt >>>> property. >>> >>> I think you will have to. The integrator may not have the >>> possibility to >>> modify the firmware. >> >> Without getting into the specifics of CNTFRQ_EL0 and clock-frequency, >> given that this is one of the first AoUs, let me clarify the spirit of >> the AoUs. >> >> When we say that Xen is "safe" we mean that it went through thousands of >> tests so we are sure that in this specific configuration it is as >> bug-free as we can reasonably make it. >> >> "in this specific configuration" is important. Changing the >> configuration might expand the scope or invalidate some of the tests. >> Think of moving from a board with GICv2 to GICv3 as an example (we are >> actually targeting GICv3 for safety, so this is not a great example, >> but just to explain the point.) >> >> So the AoUs are the set of assumptions Xen has toward the rest of the >> system to make sure Xen operates "safely", with the word "safely" >> defined as above. >> >> Of course, Xen could totally work on systems with different AoUs (see >> the GICv2 vs GICv3 example) but it would be outside the safety >> parameters. In a way, it is similar to "security supported": there are >> a bunch of Xen features that should work fine but are outside of >> "security support" for one reason or the other. >> >> If a user wants to use Xen on a system that breaks one of the AoUs, they >> can, but we wouldn't promise it is "safe". For instance, imagine a user >> running Xen on a GICv3 system if the safe version of Xen only validated >> the GICv2 driver. Similarly to "security support", sometimes it is a bit >> of a judgement call and it could be argued either way. >> >> In the specific case of CNTFRQ_EL0, if we think Xen can be "safe" on a >> system with a broken CNTFRQ_EL0 (thanks to the clock-frequency DT >> property or other mechanisms), then we can remove this from the AoU. We >> would probably have to have a different AoU about the presence of >> clock-frequency. Otherwise, if we think we cannot really promise that >> Xen is "safe" if CNTFRQ_EL0 is broken, then it is better to leave as is. >> >> Keep in mind that users interested in safety, they are very likely to be >> interested in the safety-certification of the entire system, which >> includes the hardware as well. It is very likely that users will choose >> a safety-certified board, which I am guessing would have a working >> CNTFRQ_EL0. This is just a guess, I don't know the relationship between >> CNTFRQ_EL0 and achieving hardware safety certifications. > > Thanks for your input. I am open with the idea to require CNTFRQ_EL0 > to be valid. But I think we need some consistency across the safety docs. Agreed. > > In this case, I think it would be inconsistent to mention > "clock-frequency" in the requirement. Yes, I see your point now. So the requirement should just state. "Xen shall expose the frequency of the system counter to the domains in CNTFRQ_EL0". The AoU will complement this requirement "Underlying platform shall ensure that CNTFRQ_EL0 register contains the system timer frequency.". It makes sense to me. @Michal , any inputs. - Ayan