All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julien Grall <julien@xen.org>
To: Michal Orzel <michal.orzel@arm.com>, Olaf Hering <olaf@aepfle.de>
Cc: xen-devel@lists.xenproject.org,
	Stefano Stabellini <sstabellini@kernel.org>,
	Volodymyr Babchuk <Volodymyr_Babchuk@epam.com>,
	Andrew Cooper <andrew.cooper3@citrix.com>,
	George Dunlap <george.dunlap@citrix.com>,
	Ian Jackson <iwj@xenproject.org>, Jan Beulich <jbeulich@suse.com>,
	Wei Liu <wl@xen.org>, Tamas K Lengyel <tamas@tklengyel.com>,
	Alexandru Isaila <aisaila@bitdefender.com>,
	Petre Pircalabu <ppircalabu@bitdefender.com>,
	bertrand.marquis@arm.com
Subject: Re: [PATCH v4] arm64: Change type of hsr, cpsr, spsr_el1 to uint64_t
Date: Tue, 6 Jul 2021 13:52:45 +0100	[thread overview]
Message-ID: <a640cbcc-1fff-57de-ae4b-a782d99e6b42@xen.org> (raw)
In-Reply-To: <cc4c56cf-4f3a-46d5-ad9c-05596badee70@arm.com>

Hi,

On 06/07/2021 13:50, Michal Orzel wrote:
> 
> 
> On 06.07.2021 14:31, Julien Grall wrote:
>>
>>
>> On 06/07/2021 13:30, Michal Orzel wrote:
>>> Hi,
>>>
>>> On 06.07.2021 14:00, Olaf Hering wrote:
>>>> Am Mon,  5 Jul 2021 08:39:52 +0200
>>>> schrieb Michal Orzel <michal.orzel@arm.com>:
>>>>
>>>>> Modify type of hsr, cpsr, spsr_el1 to uint64_t.
>>>>
>>>> I think this is now commit 918b8842a852e0e7446286f546724b1c63c56c66, which fails to build:
>>>>
>>>> ...
>>>> diff -u reference.size tmp.size
>>>> --- reference.size      2021-06-29 10:50:32.237518309 +0200
>>>> +++ tmp.size    2021-07-06 13:58:19.052592351 +0200
>>>> @@ -4,8 +4,8 @@
>>>>    start_info                |       -       -    1112    1168
>>>>    trap_info                 |       -       -       8      16
>>>>    cpu_user_regs             |       -       -      68     200
>>>> -vcpu_guest_core_regs      |     304     304       -       -
>>>> -vcpu_guest_context        |     344     344    2800    5168
>>>> +vcpu_guest_core_regs      |     312     312       -       -
>>>> +vcpu_guest_context        |     352     352    2800    5168
>>>>    arch_vcpu_info            |       0       0      24      16
>>>>    vcpu_time_info            |      32      32      32      32
>>>>    vcpu_info                 |      48      48      64      64
>>>> gmake[2]: *** [Makefile:24: check-headers] Error 1
>>>>
>>>> osstest may catch this error as well.
>>>>
>>>> Olaf
>>>>
>>>
>>> Where does this report come from so that I can investigate it?
>>> Locally I can build this patch on arm64,arm32,x86 without any issues.
>>
>> This is coming from the tools/include/xen-foreign. I could reproduce it with a:
>>
>> make tools
>>
>> I am currently writing a patch for it. I will send it once I have tested it.
>>
>> Cheers,
>>
>>>
>>> Cheers,
>>> Michal
>>>
>>
> 
> As far as I understand this checker, it is all about the size of these structures.
> What is the reason that the size of them cannot change?
Those structures are meant to be part of the stable ABI. So you would 
break compatibility if the structure size changed across Xen version.

However, we know that vcpu_guest_core_regs and vcpu_guest_context are 
not part of the stable ABI on Arm. However, the tools doesn't understand 
that...

Cheers,

-- 
Julien Grall


      reply	other threads:[~2021-07-06 12:53 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-05  6:39 [PATCH v4] arm64: Change type of hsr, cpsr, spsr_el1 to uint64_t Michal Orzel
2021-07-05 10:53 ` Bertrand Marquis
2021-07-06  9:02 ` Julien Grall
2021-07-06 12:00 ` Olaf Hering
2021-07-06 12:11   ` Andrew Cooper
2021-07-06 12:30   ` Michal Orzel
2021-07-06 12:31     ` Julien Grall
2021-07-06 12:50       ` Michal Orzel
2021-07-06 12:52         ` Julien Grall [this message]

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=a640cbcc-1fff-57de-ae4b-a782d99e6b42@xen.org \
    --to=julien@xen.org \
    --cc=Volodymyr_Babchuk@epam.com \
    --cc=aisaila@bitdefender.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=bertrand.marquis@arm.com \
    --cc=george.dunlap@citrix.com \
    --cc=iwj@xenproject.org \
    --cc=jbeulich@suse.com \
    --cc=michal.orzel@arm.com \
    --cc=olaf@aepfle.de \
    --cc=ppircalabu@bitdefender.com \
    --cc=sstabellini@kernel.org \
    --cc=tamas@tklengyel.com \
    --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.