[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.grall.oss@xxxxxxxxx>
- From: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
- Date: Mon, 15 Apr 2024 07:48:11 +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=Ax7pH6n0SRY0NYR75mNBgD/5jZS4gxAl1d3evgc0CL8=; b=b6GJamtARCol9F52s0jKht/kfN5iUaw8Up+JpxJLihbeJ4tl4gJyvVYlBJhcGqfsZMmNB2im1TqryKlvv+s/UgOjipNUp7SldA9FAHi+008R5YE8Y1PxWrO5poMTsQtpzklBQhM17aemu956HswZMnHYFvzuIEqygGq+6QfeKrtVkxL8tkawhXBxBCZ0j3BhynVazIDCpgl9viZexwHRAJhROZF5xcGuAICcrn5cuxvw2dd4ZPJQORodpcdCKN4Sc/9essvsd9UOS1+Z77MhduqERW2WrTHtxJFHf8TxQPaOYWX92PiRlwcCKhs/bfmAatLsU86dYS47PqtmaHKtFQ==
- 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=Ax7pH6n0SRY0NYR75mNBgD/5jZS4gxAl1d3evgc0CL8=; b=H3X+Xsfs8oRGFSNpawO4UmjflpGTCctOhjxCloGLahRLl1Z2LGEBfvc5DVyod8SUjbgwE8WOJ64sgn4HTeiWlxZtQm77uP32uvOfdnnilG4p/Zz9HpCbZVAC4aSxDZhCXA90qb7qCBthz+6R55Yh8eTy4V+vIE448InAHa9iENG1KmCN6sM0ufd5TkNIWZI3b5VKRDAbrxK46sxNUMAmPZ56OUsDlhnhyQQgk0D5pq5NIcVemQAKo12+K1lff8Urmy27skYJuo4Xi4wfsaOvEL3xUTzBTt2skCwZMMFtWTmAh0K/sapyZzfKtWoQZFTWsm5GcyOzyCqwj1CcLoqvzQ==
- Arc-seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=AeKoqANcHOFlmYiswcjUouVIuJ6hJcq2U+AHnwvZUK/+OCy9/uDZYfNwCgUiu33I6/nxDVWRHRXgpj02GrZoVru+O2ZNyacj3QgvK+jdQp8kBGUuvuTaUIKJayxWywy+/vOVCP3rVBqOWH1ZhDVcDULJoJwGRqTL7eZdu0WMgsEjCxC3YOEEmLrbblBRXfr6CLIUyz7jmvQzGbblqMlzYPwNaTZvLVJwWnTyML2tvfpvMZrl3Kk+1fw+b14/RJiBP8DFI8IRu5zsp1BjUPgK462ga7OJFmsuCwzYUaQ09IiYsbpB7DZZ5qV+9RUTasTAENak5jM9Y1rUsTvb9V5liA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oBIFU+qItRJIet0xM2DOuEz630NJu4RJURl+kohXJefkEzCabFVeZOK30t8OFaY4EVZkz0O3rEWR9JPJRCfB1CbDloU1eRwx5gCirTc54W9vmsYGyIhLspOKtYtMj3ccIsI1+4BlqjC18JWRglz+to02UKA4hc7m65POP7QJAYYwRLkqInQHNL6LoCfQgULWcQGFAUNt0oHBf/Pj6WpWHMB8n1EatHkD9i+DC5FSQO1UYsG+ChaWjCc3F44eZguYcOFzhUpm7mwl1DBPjuVDC9dzvB6goMZgjex/QUmbMwRyyLpSQzNjjaWIowUyj0BpwjMLQ7DfT82Poac4YDwAxg==
- Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
- Cc: 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 07:48: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++yfNJA87FiLIoAgAF1zYCAAQgbgIAAGvcAgAAZZ4CABBxngA==
- Thread-topic: [PATCH v2 1/4] docs: add xen_ulong_t to the documented integers sizes/alignments
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.
Armv8-R currently cannot work at all so it is a different state.
Cheers
Bertrand
>
> Cheers,
>
>
>
> Cheers
> Bertrand
|