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

Re: [PATCH v6 3/5] arm/dom0less: put dom0less feature code in a separate module


  • To: Julien Grall <julien@xxxxxxx>
  • From: Luca Fancellu <Luca.Fancellu@xxxxxxx>
  • Date: Tue, 28 Nov 2023 20:52:20 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=lists.xenproject.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=armh.onmicrosoft.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])
  • 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=2; 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=XxYaol03jahPOcnE++S1SY3EL13uXar5VSQyVIbH6O4=; b=OtoGYXpUxWtDxaH9yZt1pjqJzNtGAzF07war6YucBy5eydECWNTLXLm4mfIL0EgxzhpAh5sB2oNVet53je1R+4Vrpw7GbmHhKpVl2/QHWEnT3kC84z0VjtS9nbMSpIItOGQvvtod6fGojCBPhugWTba+madueyWMxJpCZUdONLnGX4mkq43Mp5YrnlyvzaDObjG9S4Tr888bXOL2Y0WB7VKHTxnd47jDOtt9yHlUtwgal0mjm9xD8GWwyndGB6q13/HnYCvtL6c8T2xKaFIWXlA3PIrVW03Yxau71DGioikBodhxpjGdUPjGKGxjiJdeYfw4EYMWH14xWBvUmhz8Cg==
  • 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=XxYaol03jahPOcnE++S1SY3EL13uXar5VSQyVIbH6O4=; b=mCFmK5Y/m4DBJwjFp1k0CWM9rYwyIe7FdM4519IvWTv6o5gq60bSuhxzK1kZMTZr3huejDZMSNz7121mLOsJnb5U7Ybg4pWpJmqQNMcrJY1puLz1yWOtXkE5dRYbY/vSgRrkhok051Ojgv8lwMl1a19hd86f3Rq6VRdJQA7lPaLIETCLClzZjeRCSgn0vtA1i0LvrtOS345YTWdBXMkBgvALFuy9iGA64vQqacHRmH+iydbw3cF7CiViFzFjKsqsR+QD8uuknpfCiP/S6S3guhIQpWpWALrTdaatn2WFWAjugKgzmQVUVAQja+c+7UNRVgsbt+dTHgOEZxrr2gpDKA==
  • Arc-seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=UQakxam8Uiwv3Y1QNGcUaVIoYIeUPCJmeJ75ALjTa1kbuFXgw+ckI19xpzPzuuliEXpZA64yGDRiFIaETf+9qRtnT5bT57Z0wBVP0h/LYOvfaP+nbClONyn973AdsrafUu7y5jVuyyga2NB9oTcsFJcmT05X1/KEiXuc8lNTyUJ71YMbzr9rKtgbsxxAtB9ssRs6QmdTYD0R2aHPep0oLUOD9IiD/yxdM9AZK4QzkgBw6zubEIV5Pag6IER/0N158ITccpBGjPlhttwFIZ2YssZoGWA7Y4AIKu55f+f8s4AQ3pPR73h2V/6ZgG8Q9Glp4KHk4cLlTZNqcE4EMIIW9w==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TDXmLICJh2QWz37dV45Gs7Fqe6J7yp9fF6yyWf5Er3NGHEj1z/jeAhsd5ntZZm1vgVtY9Y2hyO453tAFwERe2bnsXklDczTHVEPEmho2zK9MfI4vjXhMQJfius+xd+44/JCK9L6FczmS4afpwihTU5ObVGNfw4FcF7YrPfLjbLLT0f2gNCdQD3+SpZ0A0aRTCTD1r7XtvSZZLuJC/O2WP6iy1Pf5JAsEOL8y+tMZtqwqGOUpgJyyMeu4wXwfzOyY9tB9V5WqVIMfhRmYSZTrRVCj2ToXE+Nje03bDjXMdLf0Yis257o5XOXRd9u59NoMVN0rdgm1VrEN/+5YLYyMIA==
  • 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@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
  • Delivery-date: Tue, 28 Nov 2023 20:52:55 +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: AQHaHrt/WprXlZTUHkiZogAC2cn9MLCJTZ6AgAbFfwCAACjuAA==
  • Thread-topic: [PATCH v6 3/5] arm/dom0less: put dom0less feature code in a separate module


> On 28 Nov 2023, at 18:25, Julien Grall <julien@xxxxxxx> wrote:
> 
> Hi,
> 
> On 24/11/2023 12:01, Michal Orzel wrote:
>> On 24/11/2023 10:48, Luca Fancellu wrote:
>>> 
>>> 
>>> Currently the dom0less feature code is mostly inside domain_build.c
>>> and setup.c, it is a feature that may not be useful to everyone so
>>> put the code in a different compilation module in order to make it
>>> easier to disable the feature in the future.
>>> 
>>> Move gic_interrupt_t in domain_build.h to use it with the function
>>> declaration, move its comment above the declaration.
>>> 
>>> The following functions are now visible externally from domain_build
>>> because they are used also from the dom0less-build module:
>>>  - get_allocation_size
>>>  - set_interrupt
>>>  - domain_fdt_begin_node
>>>  - make_memory_node
>>>  - make_resv_memory_node
>>>  - make_hypervisor_node
>>>  - make_psci_node
>>>  - make_cpus_node
>>>  - make_timer_node
>>>  - handle_device_interrupts
>>>  - construct_domain
>>>  - process_shm
>>>  - allocate_bank_memory
>>> 
>>> The functions allocate_static_memory and assign_static_memory_11
>>> are now externally visible, so put their declarations into
>>> domain_build.h and move the #else and stub definition in the header
>>> as well.
>>> 
>>> Move is_dom0less_mode from setup.c to dom0less-build.c and make it
>>> externally visible.
>>> 
>>> The function allocate_bank_memory is used only by dom0less code
>>> at the moment, but it's been decided to leave it in domain_build.c
>>> in case that in the future the dom0 code can use it.
>>> 
>>> Where spotted, fix code style issues.
>>> 
>>> No functional change is intended.
>>> 
>>> Signed-off-by: Luca Fancellu <luca.fancellu@xxxxxxx>
>>> Reviewed-by: Michal Orzel <michal.orzel@xxxxxxx>
>>> ---
>>> Changes from v5:
>>>  - remove unneeded include (Michal)
>> Including asm/kernel.h was indeed not required. However, I'm thinking that 
>> if we want the header
>> to be self-contained and given that ...
>> [...]
>>> diff --git a/xen/arch/arm/include/asm/dom0less-build.h 
>>> b/xen/arch/arm/include/asm/dom0less-build.h
>>> new file mode 100644
>>> index 000000000000..c5625925d940
>>> --- /dev/null
>>> +++ b/xen/arch/arm/include/asm/dom0less-build.h
>>> @@ -0,0 +1,18 @@
>>> +/* SPDX-License-Identifier: GPL-2.0-only */
>>> +
>>> +#ifndef __ASM_DOM0LESS_BUILD_H_
>>> +#define __ASM_DOM0LESS_BUILD_H_
>>> +
>>> +void create_domUs(void);
>>> +bool is_dom0less_mode(void);
>> here we use bool, I think we should include <xen/stdbool.h>
> 
> I have done the change on commit. However, this introduced a clash in the 
> next patch.
> 
> I have done it this time because it is minor.

Thank you for that Julien, I didn’t realise there would have been a clash, 
sorry for the
Inconvenience.

Cheers,
Luca

> 
> Cheers,
> 
> -- 
> Julien Grall


 


Rackspace

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