[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC PATCH] arm/gicv2: make GICv2 driver and vGICv2 optional


  • To: Julien Grall <julien@xxxxxxx>
  • From: Luca Fancellu <Luca.Fancellu@xxxxxxx>
  • Date: Thu, 3 Aug 2023 08:39:02 +0000
  • Accept-language: en-GB, en-US
  • 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
  • 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=24UuytHTGu6W1sbBtxfuRtUA8GkKrUW9H/7CxJT7wNM=; b=adWpHjqwX+wWLqy+zQvB70oD4OAMaWtRvOf61f/K8LGPSaS/9VwLskEPpQabQ/XQOG3Bz+E/aTdG02/IKpHRh21K6liN6+B5W9bdprLdxDAEyVLwgqQxZXb2EqBrW4MGhR8GoCuKyMG3cvrHnWynushMFWeHzV9wLIAFf8fRFe+wiyYbW/up2xd5Nc4rbNAB3lnNbt9oKX33Mr8rftmbM12J4jXURfcWY6FEMX0ivvl0ZANwqdFiJYSO3aIttBnUnOGEOi8wTfWFV1HXGYYSjrtu9Yy9/2N0rERjk01GvZHImvGmOMPpG9QrkCzKZL5IPemGMuC/BxcYbrKQawZOeg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XZ23lFN038n8ZDBXy5oii3/ePupS7J/kaPHidYXZmmEpu8QJ7EGJcLNBO7rR4qBC3hyrmNUtpDymxG+XLW4ToAjW6kC8woT/AP41RqkXWNIyHpfap39HfoiiD/KctQq217kAxjK+uAu3KXGohse9u0eScvXMOE/gBa8oT70uFkUy5jOiJiUbDM4VDTSqzFhFusQBMh1yI28UdOxK7gCpK9n0WrixClNUqV884gPe2lZy/L3x4xxe9g6cxYU1X1/rogNXxeweSk251mg6XFi430/mF5bFZPiroiSlQbjSuzqV52dsBkv0ddaQe9IQMBkMeWRkAVBFhjdqJbJRnAo8MA==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: Michal Orzel <michal.orzel@xxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Thu, 03 Aug 2023 08:39:42 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHZxUjDKmzjB69oo0mbnCqJ2MJvKa/XEDgAgAAEZQCAAAGbgIAABJqAgAArPoCAAOPegIAABcoAgAAIA4CAAAcSgIAAAn4A
  • Thread-topic: [RFC PATCH] arm/gicv2: make GICv2 driver and vGICv2 optional


> On 3 Aug 2023, at 09:29, Julien Grall <julien@xxxxxxx> wrote:
> 
> 
> 
> On 03/08/2023 09:04, Luca Fancellu wrote:
>>>> There are so many things that can go wrong during early boot including the 
>>>> entire boofdt parsing
>>>> and having earlycon would be so desirable.
>>> It is not clear what to take from your reply. Earlier you were concerned 
>>> about the error not showing up in the log if the .config is not correct.
>>> 
>>> There is no really quick fix for that as a .config may work for platform A 
>>> but not platform B. The only viable solution is having an early console.
>>> 
>>> Anything else like forcing to always have one GICvX selected is just a hack 
>>> that would work for one set of people but not the others.
>> I agree with you in part, when you say that it would work for one set of 
>> people but not the others, isn’t it always the case? We are providing
>> a defconfig that would fit the majority of the people, but it’s always a set 
>> of them.
> 
> Correct.
> 
>> More specific to this patch, with the provided Kconfig “hack” as you say, it 
>> is not only providing the same user experience as the current state,
>> it is doing more, it is providing a way to exclude from the build the GICv2 
>> which is not possible currently, this work aims to provide a more
>> fine granular configuration so that experienced users can remove entire 
>> modules that they don’t need in their platform so that they don’t have
>> to take them into account when going to, for example, safety critical audits.
> 
> There seems to be some misunderstanding about the hack I am referring to. 
> This is not about the patch itself but the following line:
> 
> select GICV2 if !GICV3 && !NEW_VGIC
> 
> Now that GICv2 can be deselecting, I see no point to force select GICV2 if 
> GICV3 is not selected.

Ok I see

> 
> As I wrote earlier, there is so many way for someone to create .config that 
> is wrong or doesn't boot on their platform. So someone tweaking .config 
> should always be careful when selecting/deselecting options.

Yes indeed

> 
>> I agree with you that earlycon would be perfect, so that we could make the 
>> user remove every module and let him know quickly the issue,
>> but on the other hand it is a complete new feature that you are requesting 
>> (are you?) to make this patch go forward.
> 
> I didn't suggest it. I was making the point that if you have time, it is best 
> to spend it trying to enable the early console rather than trying to prevent 
> the user to disable both GIC.

It will be for sure something I will investigate, but in the mean time 
unfortunately I won’t have time at least until October
to even start an investigation.

I would like to ask if you see this one going forwards or not (as it is), 
because I have a set of patches to isolate and Kconfig-out
the dom0less code, that is depending on this one (for a small bit) and before 
sending them I need to understand if this one can
see the light or not.


> 
> Cheers,
> 
> -- 
> Julien Grall


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.