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

Re: [PATCH v2 1/4] docs: add xen_ulong_t to the documented integers sizes/alignments


  • To: Julien Grall <julien@xxxxxxx>
  • From: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
  • Date: Mon, 15 Apr 2024 11:28:21 +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=S2e3ExXGLyyUSwE4aebGFz7EaOhMFzR0UwuD+5mKaW0=; b=fY6TzLvSL7gy6hWpLy5Qo4cWlHFPubajKcJtjPKKBZKfqREngHyOJ4Us06P8rlFZYygjylSYrWuVoP8w63xG3h47Fj7B8A6MaUo/L4gjo9zEMerOYvVsN1JwCnwCjfjqur52oDmxitnaTLsYrOhcdxcw2MFulRQbobNM7ji5B8DU0SgI79uBHa0DBaCY8mk+7j/PbXVjQTqeO66xAhcHSMXhbscgXJk2IoRSqtuGcmrRHyKVvYI2XSL/5Ywkw6S+NJWs5qVWDyuXi/JHuAK9Wtq3i4NDED+CAFyrDIjNV8GOBvJSlV1WnIEZmwLDsH/Zi35k240GeA+wn1l2RrYNqg==
  • 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=S2e3ExXGLyyUSwE4aebGFz7EaOhMFzR0UwuD+5mKaW0=; b=UoDqNi1LfINILIR7hXjB/f6BFvxMBJgbMgbCotCHlgtPUZtAxz1XYm3pSg2W1BEgtFSRBIS1w3gchIfF36S6ltutm2/mG/bBnd1VTqbFIV+8Gd2F3JYa/9J/hhznKMJzjdPhC+MGBZ8ADQsF+401py615N0O4kaWuQ5oVq7ftouw4Db5PKYNTGXYIMS1iZ3XJ/NtOAsUfWN1kZ3IFmXwsp64a12XQFZ/DaLVfxXO5BmV5mvlLPWyEGxexSCPZ+oC1TWVxI2jdcDe5+6/paEDiWBRGNkQ4FlBN8N1w21qsTySTdCb/2Tez4z1lIV5Gu/8LNrG7ygN574BQyiiPsZzTQ==
  • Arc-seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=PlmflEaA2yfVA6huv4O/M15Vrds2J2YOOeplJEsfUmYWSKTiayOvqAublMfHocPfj55BuVTdd/cCwzsfqt0lC9R7m4THYelBybXV3VBbS8HoxRigZicoGL120lp+gYeygfO66muLKlESVZ+h2XWpS4yfrB/re76jdoc3DFEoUIuFuDrR4+EJ6qW3N/SCBfKc7+zXtGDI6RH2T7fwhWqwtXwQFPFx04liTC1NHiUdPuQI7EhlFc8ty3VqPtyds3WMsDgJVFWq/2dYVoan6xs1FL1IcKODrareymRyv0Qv+vjYE34jZHlvQvt75JT/G1QGw9KUY9fqbtIfYWiidNoZ7g==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MUcImqp1duZCuNJhcIGXp5neRSnvkOZmtGgMdndfBgEB23/f8NBcW45AtYBFFyU/x9q5vIuzEYm4x4eESgp2IAUTVos9hBm7Qd6k1VKAawTUwnToa4V3xyEWaPenUm7bBq12vqhu+x6MHJdTmxBfJ7dblEn6BG1bWiDHiO4eMM/Ei75gYn3L+wDa0p9NHVlBbX3N13vxFIBzLniTPRm/lWywraPd3BlY4MD3AMiMiUFxMUtIGqg8bXN6mnTN46tVcD1fiM2kzH06LmZ1yzCAMykRFruwafoXlqBSBvFB4p5edA9TYg9A2l2pV0lxYSwoYTNcX0kE3VglLeL1RfzRvA==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: Julien Grall <julien.grall.oss@xxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Stefano Stabellini <stefano.stabellini@xxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Mon, 15 Apr 2024 11:28:43 +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: AQHai6GBZ8b+Nd1+T0SyR++yfNJA87FiLIoAgAF1zYCAAQgbgIAAGvcAgAAZZ4CABBxngIAAJ16AgAAWJQA=
  • Thread-topic: [PATCH v2 1/4] docs: add xen_ulong_t to the documented integers sizes/alignments

Hi Julien,

> On 15 Apr 2024, at 12:08, Julien Grall <julien@xxxxxxx> wrote:
> 
> Hi Bertrand,
> 
> On 15/04/2024 08:48, Bertrand Marquis wrote:
>> Hi Julien,
>>> On 12 Apr 2024, at 19:01, Julien Grall <julien.grall.oss@xxxxxxxxx> wrote:
>>> 
>>> 
>>> 
>>> On Fri, 12 Apr 2024 at 11:30, Bertrand Marquis <Bertrand.Marquis@xxxxxxx> 
>>> wrote:
>>> Hi Julien,
>>> 
>>>> On 12 Apr 2024, at 15:53, Julien Grall <julien.grall.oss@xxxxxxxxx> wrote:
>>>> 
>>>> 
>>>> 
>>>> On Thu, 11 Apr 2024 at 18:08, Stefano Stabellini <sstabellini@xxxxxxxxxx> 
>>>> wrote:
>>>> On Wed, 10 Apr 2024, Julien Grall wrote:
>>>>> On Wed, 10 Apr 2024 at 19:47, Stefano Stabellini 
>>>>> <stefano.stabellini@xxxxxxx> wrote:
>>>>>       xen_ulong_t is widely used in public headers.
>>>>> 
>>>>>       Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxx>
>>>>>       ---
>>>>> 
>>>>>       Given that xen_ulong_t is used in public headers there could be a 
>>>>> better
>>>>>       place for documenting it but this was the most straightforward to 
>>>>> add.
>>>>>       ---
>>>>>        docs/misra/C-language-toolchain.rst | 11 +++++++++++
>>>>>        1 file changed, 11 insertions(+)
>>>>> 
>>>>>       diff --git a/docs/misra/C-language-toolchain.rst 
>>>>> b/docs/misra/C-language-toolchain.rst
>>>>>       index 5ddfe7bdbe..7a334260e6 100644
>>>>>       --- a/docs/misra/C-language-toolchain.rst
>>>>>       +++ b/docs/misra/C-language-toolchain.rst
>>>>>       @@ -531,6 +531,17 @@ A summary table of data types, sizes and 
>>>>> alignment is below:
>>>>>             - 64 bits
>>>>>             - x86_64, ARMv8-A AArch64, RV64, PPC64
>>>>> 
>>>>>       +   * - xen_ulong_t
>>>>>       +     - 32 bits
>>>>>       +     - 32 bits
>>>>>       +     - x86_32
>>>>>       +
>>>>>       +   * - xen_ulong_t
>>>>>       +     - 64 bits
>>>>>       +     - 64 bits
>>>>>       +     - x86_64, ARMv8-A AArch64, RV64, PPC64, ARMv8-A AArch32, 
>>>>> ARMv8-R
>>>>>       +       AArch32, ARMv7-A
>>>>> 
>>>>> 
>>>>> We support neither ARMv8-R nor ARMv8-A Aarch32.
>>>>> 
>>>>> I could possibly accept the latter because it works to. But the former is 
>>>>> so far misleading.
>>>> 
>>>> Yes I think you are right. Moreover this document
>>>> (C-language-toolchain.rst) is meant for the Xen build. While this patch
>>>> is trying to document the types used in the public headers for the
>>>> external-facing ABI.
>>>> 
>>>> I'll move the information this patch is adding to a separate document,
>>>> specific to the public headers. I will only add the architectures
>>>> currently working: I'll add ARMv8-A Aarch32 because although it is
>>>> unsupported it is interesting to know the size of xen_ulong_t for
>>>> aarch32 in the public headers. I will remove ARMv8-R as it is not
>>>> available upstream.
>>>> 
>>>> Thinking a bit more. What about Armv9? Rather than listing each version, 
>>>> should we instead use ARMv7-A aarch32 and later, ARMv8-A aarch64 and later?
>>> 
>>> Definitely you are right here but as for Armv8-R, Armv9 is not something 
>>> that we explicitely support right now (even though it should work).
>>> 
>>> I am confused with the comparison. I thought you can’t boot Xen at all on 
>>> Armv8-R. But you can on Armv9-A as this just Armv8-A + features the 
>>> software don’t need to use.
>>> 
>>> Did you intend to draw the comparison with Armv8-A Aarch32?
>> Yes in my mind armv9 even if currently working it is not something 
>> officially supported so it is in the same state as armv8 aarch32.
> 
> AFAICT, Stefano said he will add ARMv8-A AArch32, so we should be consistent 
> and add Armv9-A in the list.

Yes that makes sense, I agree.

Cheers
Bertrand

> 
> Cheers,
> 
> -- 
> Julien Grall



 


Rackspace

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