All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Beulich <jbeulich@suse.com>
To: Wei Chen <Wei.Chen@arm.com>
Cc: nd <nd@arm.com>, "Stefano Stabellini" <sstabellini@kernel.org>,
	"Bertrand Marquis" <Bertrand.Marquis@arm.com>,
	"Volodymyr Babchuk" <Volodymyr_Babchuk@epam.com>,
	"Andrew Cooper" <andrew.cooper3@citrix.com>,
	"Roger Pau Monné" <roger.pau@citrix.com>, "Wei Liu" <wl@xen.org>,
	"Jiamei Xie" <Jiamei.Xie@arm.com>,
	"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
	"Julien Grall" <julien@xen.org>
Subject: Re: [PATCH v6 1/8] xen: reuse x86 EFI stub functions for Arm
Date: Fri, 1 Jul 2022 12:07:05 +0200	[thread overview]
Message-ID: <7a6515c1-840a-65d7-645d-8a67e0f3c109@suse.com> (raw)
In-Reply-To: <PAXPR08MB74208E40EEE93B3EDA2DFF609EBD9@PAXPR08MB7420.eurprd08.prod.outlook.com>

On 01.07.2022 08:10, Wei Chen wrote:
> Hi Jan,
> 
>> -----Original Message-----
>> From: Jan Beulich <jbeulich@suse.com>
>> Sent: 2022年7月1日 13:54
>> To: Wei Chen <Wei.Chen@arm.com>
>> Cc: nd <nd@arm.com>; Stefano Stabellini <sstabellini@kernel.org>; Bertrand
>> Marquis <Bertrand.Marquis@arm.com>; Volodymyr Babchuk
>> <Volodymyr_Babchuk@epam.com>; Andrew Cooper <andrew.cooper3@citrix.com>;
>> Roger Pau Monné <roger.pau@citrix.com>; Wei Liu <wl@xen.org>; Jiamei Xie
>> <Jiamei.Xie@arm.com>; xen-devel@lists.xenproject.org; Julien Grall
>> <julien@xen.org>
>> Subject: Re: [PATCH v6 1/8] xen: reuse x86 EFI stub functions for Arm
>>
>>>>>>> this way.
>>>>>
>>>>> I have taken a look into this warning:
>>>>> This is because the "-fshort-wchar" flag causes GCC to generate
>>>>> code that is not binary compatible with code generated without
>>>>> that flag. Why this warning hasn't been triggered in Arm64 is
>>>>> because we don't use any wchar in Arm64 codes.
>>>>
>>>> I don't think that's quite right - you actually say below that we
>>>> do use it there when interacting with UEFI. There's no warning
>>>> there solely because the information isn't embedded in the object
>>>> files there, from all I can tell.
>>>>
>>>
>>> Maybe I should describe it this way: Arm64 does not use wchar type
>>> directly in any code for parameters, variables and return values.
>>> So Arm64 object files are exactly the same with "-fshort-wchar" and
>>> without "-fshort-wchar".
>>>
>>> Although Xen's EFI code interacts with UEFI firmware, similar to RPC
>>> function calls, these code also do not explicitly use wchar.
>>
>> How does it not? There are ample string literals as well as enough
>> uses of CHAR16 (the UEFI "abstraction" of wchar_t).
>>
> 
> But I don't think CHAR16 will be affected by -fshort-wchar, because we
> have specified CHAR16 as unsigned short type in typedef.

Oh, I didn't recall that anomaly. Yes, then only string literals are
affected. Albeit I'd hope gnu-efi would at some point switch to using
wchar_t as the underlying type, as long as the compiler provides it.

Jan


  reply	other threads:[~2022-07-01 10:07 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-10  5:53 [PATCH v6 0/8] Device tree based NUMA support for Arm - Part#1 Wei Chen
2022-06-10  5:53 ` [PATCH v6 1/8] xen: reuse x86 EFI stub functions for Arm Wei Chen
2022-06-23 12:53   ` Jan Beulich
2022-06-24  7:18     ` Wei Chen
2022-06-24  8:35       ` Julien Grall
2022-06-24  9:33         ` Jan Beulich
2022-06-24  9:49           ` Julien Grall
2022-06-24 10:05             ` Jan Beulich
2022-06-24 10:09               ` Jan Beulich
2022-06-30 11:25                 ` Wei Chen
2022-06-30 11:37                   ` Wei Chen
2022-06-30 12:36                   ` Jan Beulich
2022-07-01  3:11                     ` Wei Chen
2022-07-01  5:54                       ` Jan Beulich
2022-07-01  6:10                         ` Wei Chen
2022-07-01 10:07                           ` Jan Beulich [this message]
2022-07-01  5:57                     ` Jan Beulich
2022-06-28  8:30             ` Wei Chen
2022-06-10  5:53 ` [PATCH v6 2/8] xen/arm: Keep memory nodes in device tree when Xen boots from EFI Wei Chen
2022-06-10  5:53 ` [PATCH v6 3/8] xen: introduce an arch helper for default dma zone status Wei Chen
2022-06-10  5:53 ` [PATCH v6 4/8] xen: decouple NUMA from ACPI in Kconfig Wei Chen
2022-06-10  5:53 ` [PATCH v6 5/8] xen/arm: use !CONFIG_NUMA to keep fake NUMA API Wei Chen
2022-06-10  5:53 ` [PATCH v6 6/8] xen/x86: use paddr_t for addresses in NUMA node structure Wei Chen
2022-06-10  5:53 ` [PATCH v6 7/8] xen/x86: add detection of memory interleaves for different nodes Wei Chen
2022-06-10  5:53 ` [PATCH v6 8/8] xen/x86: use INFO level for node's without memory log message Wei Chen
2022-06-17  8:43 ` [PATCH v6 0/8] Device tree based NUMA support for Arm - Part#1 Julien Grall

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7a6515c1-840a-65d7-645d-8a67e0f3c109@suse.com \
    --to=jbeulich@suse.com \
    --cc=Bertrand.Marquis@arm.com \
    --cc=Jiamei.Xie@arm.com \
    --cc=Volodymyr_Babchuk@epam.com \
    --cc=Wei.Chen@arm.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=julien@xen.org \
    --cc=nd@arm.com \
    --cc=roger.pau@citrix.com \
    --cc=sstabellini@kernel.org \
    --cc=wl@xen.org \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.