Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1F98BC07E96 for ; Tue, 6 Jul 2021 12:53:10 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DAF5F611AB for ; Tue, 6 Jul 2021 12:53:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DAF5F611AB Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=xen.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.151267.279573 (Exim 4.92) (envelope-from ) id 1m0kZN-0001fi-Gn; Tue, 06 Jul 2021 12:52:57 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 151267.279573; Tue, 06 Jul 2021 12:52:57 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1m0kZN-0001fb-DW; Tue, 06 Jul 2021 12:52:57 +0000 Received: by outflank-mailman (input) for mailman id 151267; Tue, 06 Jul 2021 12:52:56 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1m0kZM-0001fT-S7 for xen-devel@lists.xenproject.org; Tue, 06 Jul 2021 12:52:56 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1m0kZE-00013d-Rc; Tue, 06 Jul 2021 12:52:48 +0000 Received: from [54.239.6.188] (helo=a483e7b01a66.ant.amazon.com) by xenbits.xenproject.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1m0kZE-000834-Kk; Tue, 06 Jul 2021 12:52:48 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xen.org; s=20200302mail; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:Cc:To:Subject; bh=syoiKdCHPrszLVtSYXSTIlDoOThCnhS82hCXeN2ldxo=; b=Kbv4zOOnqPjea5kwblU5/o0CU6 B9CjMx4vnluEWh4bFi4oE2830HPMtGc4GvGb9I4RX9a0JqJS/T+5qlIVKx3ctUPBLa4Zg5bcCYJId ea26y50LYHS4+MJqE07I26ElQGfHbyjHL821ikn/kAbQu66IcN9tMlYHQmZE9Ay7G5aI=; Subject: Re: [PATCH v4] arm64: Change type of hsr, cpsr, spsr_el1 to uint64_t To: Michal Orzel , Olaf Hering Cc: xen-devel@lists.xenproject.org, Stefano Stabellini , Volodymyr Babchuk , Andrew Cooper , George Dunlap , Ian Jackson , Jan Beulich , Wei Liu , Tamas K Lengyel , Alexandru Isaila , Petre Pircalabu , bertrand.marquis@arm.com References: <20210705063952.25629-1-michal.orzel@arm.com> <20210706140010.4b8802d9.olaf@aepfle.de> <5d4ebedb-ebba-f586-f377-32467213369b@arm.com> <10e11e44-b643-b214-57d6-db4499e19da7@xen.org> From: Julien Grall Message-ID: Date: Tue, 6 Jul 2021 13:52:45 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit 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 : >>>> >>>>> 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