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

Re: [PATCH 2/5] xen/arm: Add asm/domain.h include to kernel.h


  • To: Julien Grall <julien@xxxxxxx>
  • From: Luca Fancellu <Luca.Fancellu@xxxxxxx>
  • Date: Fri, 11 Aug 2023 14:22:46 +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=wLmDCRpf5blIZrxi08KRUsg1dZk5p+yh6h9M79fnbUY=; b=MyZDAMjkyKbjDp7+tXEfi2fQDU5PjQ5VaOx+WDbNZw5PQyxB2hv1LdPAjJ1CL85UHp28XhiJijKG/9RKDS97NkDBXsrme8O2VeO5GxwNtoQowJgSOTbNUO+a0JI2JRNuwRVazPNHYQUrc6Ffosxd9TYU7qWiVBgKlReCecBI44CSgeGin8bb23kxK+Hd2fvb7ZQIF5Xdc3v+m3XTco0B5d/G/WZNdXk/GK/DohBHdmmxxE3P1pEZIgexH95HLeOx4WOnq1YUYgJkBP/NL18C/mpTsGj5qBlwuvX/JgFjsVBcbFT27619LdaBe5FC0+p0MrXY2D1DKaR9tI2rvaS4sQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mveqlEgOgPyYwNXsw5l7yS8w61x6QhDiliUlcoj9uJm7s4sTKTBHDjt2yL3zwPgl48fVsr3M/gNuiSW9/IuSJrCAtEcNl9jMWjDQrpVm7WnbgSVoOeXAAtsdbhznUV50ZtZABLda1ufq6S9UhRj3TvX/ygbC4pnKB0wyt6zsEquDPTUPnK/NEOqPboWfkypsa70i4AWvZbehip2f4Qbg09p2q4wFujFHKOcLdwkHh7DtPvg+j9b0CYIhO5TrrGurVPXVB0uH6iD5RO9si1byaj1dYCEpnhKxLiZxj/JMcJ1DOTs4aqcfIJKkFzbVHyGHg5oB/YhtGGXCFUJMahNyxw==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Wei Chen <Wei.Chen@xxxxxxx>, Rahul Singh <Rahul.Singh@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Fri, 11 Aug 2023 14:23:39 +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: AQHZyc51AtDCvMz7Yk+h8v6wea9TNK/lEvIAgAAMOACAAAkagIAAAqsA
  • Thread-topic: [PATCH 2/5] xen/arm: Add asm/domain.h include to kernel.h


> On 11 Aug 2023, at 15:13, Julien Grall <julien@xxxxxxx> wrote:
> 
> Hi Luca,
> 
> On 11/08/2023 14:40, Luca Fancellu wrote:
>>> On 11 Aug 2023, at 13:56, Julien Grall <julien@xxxxxxx> wrote:
>>> 
>>> Hi Luca,
>>> 
>>> On 08/08/2023 09:00, Luca Fancellu wrote:
>>>> Add asm/domain.h that is defining the type 'enum domain_type', it
>>>> is needed on arm64 build where this type is used for a member of
>>>> the structure kernel_info.
>>> 
>>> I read "needed" as in it Xen build is broken. But AFAIK, this is more a 
>>> latent issue if someone else want to include the header. Is that correct?
>> Yes correct
>>> 
>>> If so, how about:
>>> 
>>> The 'enum domain_type' is defined by 'asm/domain.h' which is not included 
>>> (directly or indirectly) by 'asm/kernel.h'.
>>> 
>>> This currently doesn't break the compilation because asm/domain.h will 
>>> included by the user of 'kernel.h'. But it would be better to avoid relying 
>>> on it. So add the include in 'asm/domain.h'.
>> Yeah much better, should I push a v2?
> 
> No. I can deal with it on commit.

Ok thank you for doing that

> 
>>> 
>>>> Fixes: 66e994a5e74f ("xen: arm64: add guest type to domain field.")
>>> 
>>> While we aim to have header self-contained, this has never been a guarantee 
>>> in Xen. So I would argue this is not a fix in the sense it someone would 
>>> want to ingest it in there tree.
>> Ok I see, I thought it could be linked to the issue about sorting headers 
>> that led to build breakage, but I’ve
> 
> I am probably missing something here. Which issue are you referring to? Is it 
> a follow-up patch that will sort headers?

It’s an issue I’ve faced when trying to sort automatically the include using 
clang-format, I’ve seen issues building domain_build.c after sorting the 
headers in the way we expect from coding style, I thought was related to some 
headers not being self-contained.

> 
>> not investigated further so I would be ok to drop the Fixes:
> 
> Cheers,
> 
> -- 
> Julien Grall


 


Rackspace

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