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

Re: xen | Failed pipeline for staging | 221f2748


  • To: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Thu, 12 Sep 2024 17:13:04 +0200
  • Autocrypt: addr=jbeulich@xxxxxxxx; keydata= xsDiBFk3nEQRBADAEaSw6zC/EJkiwGPXbWtPxl2xCdSoeepS07jW8UgcHNurfHvUzogEq5xk hu507c3BarVjyWCJOylMNR98Yd8VqD9UfmX0Hb8/BrA+Hl6/DB/eqGptrf4BSRwcZQM32aZK 7Pj2XbGWIUrZrd70x1eAP9QE3P79Y2oLrsCgbZJfEwCgvz9JjGmQqQkRiTVzlZVCJYcyGGsD /0tbFCzD2h20ahe8rC1gbb3K3qk+LpBtvjBu1RY9drYk0NymiGbJWZgab6t1jM7sk2vuf0Py O9Hf9XBmK0uE9IgMaiCpc32XV9oASz6UJebwkX+zF2jG5I1BfnO9g7KlotcA/v5ClMjgo6Gl MDY4HxoSRu3i1cqqSDtVlt+AOVBJBACrZcnHAUSuCXBPy0jOlBhxPqRWv6ND4c9PH1xjQ3NP nxJuMBS8rnNg22uyfAgmBKNLpLgAGVRMZGaGoJObGf72s6TeIqKJo/LtggAS9qAUiuKVnygo 3wjfkS9A3DRO+SpU7JqWdsveeIQyeyEJ/8PTowmSQLakF+3fote9ybzd880fSmFuIEJldWxp Y2ggPGpiZXVsaWNoQHN1c2UuY29tPsJgBBMRAgAgBQJZN5xEAhsDBgsJCAcDAgQVAggDBBYC AwECHgECF4AACgkQoDSui/t3IH4J+wCfQ5jHdEjCRHj23O/5ttg9r9OIruwAn3103WUITZee e7Sbg12UgcQ5lv7SzsFNBFk3nEQQCACCuTjCjFOUdi5Nm244F+78kLghRcin/awv+IrTcIWF hUpSs1Y91iQQ7KItirz5uwCPlwejSJDQJLIS+QtJHaXDXeV6NI0Uef1hP20+y8qydDiVkv6l IreXjTb7DvksRgJNvCkWtYnlS3mYvQ9NzS9PhyALWbXnH6sIJd2O9lKS1Mrfq+y0IXCP10eS FFGg+Av3IQeFatkJAyju0PPthyTqxSI4lZYuJVPknzgaeuJv/2NccrPvmeDg6Coe7ZIeQ8Yj t0ARxu2xytAkkLCel1Lz1WLmwLstV30g80nkgZf/wr+/BXJW/oIvRlonUkxv+IbBM3dX2OV8 AmRv1ySWPTP7AAMFB/9PQK/VtlNUJvg8GXj9ootzrteGfVZVVT4XBJkfwBcpC/XcPzldjv+3 HYudvpdNK3lLujXeA5fLOH+Z/G9WBc5pFVSMocI71I8bT8lIAzreg0WvkWg5V2WZsUMlnDL9 mpwIGFhlbM3gfDMs7MPMu8YQRFVdUvtSpaAs8OFfGQ0ia3LGZcjA6Ik2+xcqscEJzNH+qh8V m5jjp28yZgaqTaRbg3M/+MTbMpicpZuqF4rnB0AQD12/3BNWDR6bmh+EkYSMcEIpQmBM51qM EKYTQGybRCjpnKHGOxG0rfFY1085mBDZCH5Kx0cl0HVJuQKC+dV2ZY5AqjcKwAxpE75MLFkr wkkEGBECAAkFAlk3nEQCGwwACgkQoDSui/t3IH7nnwCfcJWUDUFKdCsBH/E5d+0ZnMQi+G0A nAuWpQkjM1ASeQwSHEeAWPgskBQL
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Thu, 12 Sep 2024 15:13:10 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 12.09.2024 17:08, Roger Pau Monné wrote:
> On Thu, Sep 12, 2024 at 04:30:29PM +0200, Jan Beulich wrote:
>> On 12.09.2024 14:52, GitLab wrote:
>>>
>>>
>>> Pipeline #1450753094 has failed!
>>>
>>> Project: xen ( https://gitlab.com/xen-project/hardware/xen )
>>> Branch: staging ( 
>>> https://gitlab.com/xen-project/hardware/xen/-/commits/staging )
>>>
>>> Commit: 221f2748 ( 
>>> https://gitlab.com/xen-project/hardware/xen/-/commit/221f2748e8dabe8361b8cdfcffbeab9102c4c899
>>>  )
>>> Commit Message: blkif: reconcile protocol specification with in...
>>> Commit Author: Roger Pau Monné
>>> Committed by: Jan Beulich ( https://gitlab.com/jbeulich )
>>>
>>>
>>> Pipeline #1450753094 ( 
>>> https://gitlab.com/xen-project/hardware/xen/-/pipelines/1450753094 ) 
>>> triggered by Jan Beulich ( https://gitlab.com/jbeulich )
>>> had 13 failed jobs.
>>>
>>> Job #7809027717 ( 
>>> https://gitlab.com/xen-project/hardware/xen/-/jobs/7809027717/raw )
>>>
>>> Stage: build
>>> Name: ubuntu-24.04-x86_64-clang
>>> Job #7809027747 ( 
>>> https://gitlab.com/xen-project/hardware/xen/-/jobs/7809027747/raw )
>>>
>>> Stage: build
>>> Name: opensuse-tumbleweed-clang
>>> Job #7809027539 ( 
>>> https://gitlab.com/xen-project/hardware/xen/-/jobs/7809027539/raw )
>>>
>>> Stage: build
>>> Name: debian-bookworm-clang-debug
>>
>> I picked this one as example - Clang dislikes the switch to bool in
>>
>> --- a/xen/arch/x86/include/asm/mm.h
>> +++ b/xen/arch/x86/include/asm/mm.h
>> @@ -286,8 +286,8 @@ struct page_info
>>          struct {
>>              u16 nr_validated_ptes:PAGETABLE_ORDER + 1;
>>              u16 :16 - PAGETABLE_ORDER - 1 - 1;
>> -            u16 partial_flags:1;
>> -            s16 linear_pt_count;
>> +            bool partial_flags:1;
>> +            int16_t linear_pt_count;
>>          };
>>  
>>          /*
>>
>> for places where that field's set using PTF_partial_set:
>>
>> arch/x86/mm.c:1582:35: error: converting the result of '<<' to a boolean 
>> always evaluates to true [-Werror,-Wtautological-constant-compare]
>>             page->partial_flags = PTF_partial_set;
>>                                   ^
>> I wonder why we're not using plain "true" there. Alternatively the change to
>> bool would need undoing.
> 
> I'm hitting this locally when building with clang.
> 
> I find it confusing that the partial_flags field cannot possibly be a
> flags field, for it having a width of 1 bit.

I meanwhile guess the idea may have been that the field could be widened
if needed, and the low bit would then retain its present meaning. How
well that would work out if a need for that arose I can't tell of course.

> I think my proposal would be to rename to partially_validated (or
> similar) and set it using `true`, but that would also imply re-writing
> part of the comment in struct page_info definition.

This may have been named just "partial" originally. Yet with the above
maybe we really should switch back to uint16_t (for the time being; I'm
unconvinced of the use of fixed-width types here, or in general when it
comes to bitfields).

Jan



 


Rackspace

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