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

Re: ECLAIR Xen x86 results and progress


  • To: Stefano Stabellini <sstabellini@xxxxxxxxxx>, "jbeulich@xxxxxxxx" <jbeulich@xxxxxxxx>, "julien@xxxxxxx" <julien@xxxxxxx>, "Bertrand.Marquis@xxxxxxx" <Bertrand.Marquis@xxxxxxx>, Roger Pau Monne <roger.pau@xxxxxxxxxx>
  • From: Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>
  • Date: Fri, 6 May 2022 19:39:42 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • 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=bZzx+L6wGo6YelnL7p14XuNDn14mIwZ+1GirtjQfpbc=; b=AkfZ4MztxpQrIXMuzwBseri0gv2MqgrszZQyP7F1kvHlKSl1G2A/om6zmd7CiDdeVsYyDAKeGyMFedUa1YN8ldpXE4DuRDYkQnzfkg1DcTfkjUBMXvjHo0Bqrr6pOXl20gDnMZKBudpL8+8uiqNr43vJ4zF2f3cGVdwgO+4LgawhNhKWHb62/gjzyVgbrcnpaCOOYoHZLhrvEf0hSnnOGWJJ3S7LJqRrXYsmV0eU7W/4iB9HnRpP6Q0K1TOhQl61vv8XWJ+PlgmrSe44Et23zZJlguy3FJGQPgIlTIXSi6sx+4H+yKWmLgN5alrD8s/1nGfqUgoDS7tToHuhmOwFxw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Yba9JUjsHoLa5Pr7cOZ9/P+8BjEp5HxvnRzdjoLNIwk8Cq7Jl2Fx3346Tpz4vYS5jhrzCU9B4KwxAQH/2XDfvhZltwr4etKMy1byaGvxUnqLz2Pi8e3DMbHmqOK8lIFQ1CRHZtrz7rDgGk9AOdUatY5aoB2fCQtSTjlv3ppMxYdaMh2PuYZ+sljJWsABmP7sEOQYY/0El/4hJ7+goS2qkRr16HrNjx2+5PRvvAJwChnq7O8IE073QicoKD4lE4dwsU6XRhq3pbRJjK3JcfvWKSmjOD6Q2tsk6OKgcHGuK/8i3RReSg3OCyRLV6GMOe/vVNUdppyfVYDw44o5ux88nA==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Cc: George Dunlap <George.Dunlap@xxxxxxxxxx>, "Artem_Mygaiev@xxxxxxxx" <Artem_Mygaiev@xxxxxxxx>, "roberto.bagnara@xxxxxxxxxxx" <roberto.bagnara@xxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Fri, 06 May 2022 19:40:00 +0000
  • Ironport-data: A9a23:01xS96P2puEBVDfvrR1BlsFynXyQoLVcMsEvi/4bfWQNrUp33jBSz jAfCD+GPvfZZGv2ed0iPI6zpk0H78KEydA1TAto+SlhQUwRpJueD7x1DKtR0wB+jCHnZBg6h ynLQoCYdKjYdleF+lH1dOKJQUBUjclkfJKlYAL/En03FFYMpBsJ00o5wbZk2tAw27BVPivW0 T/Mi5yHULOa82Yc3lI8s8pvfzs24ZweEBtB1rAPTagjUG32zhH5P7pGTU2FFFPqQ5E8IwKPb 72rIIdVXI/u10xF5tuNyt4Xe6CRK1LYFVDmZnF+A8BOjvXez8CbP2lS2Pc0MC9qZzu1c99Zl ZIXj7uiZVkTGILmgcQ4SklESh5TFPgTkFPHCSDXXc276WTjKiGp79AwSUY8MMsf5/p9BnxI+ boAMjcRYxufhuWwhrWmVu1rgcdlJ87uVG8dkig4kXeFUrB7ENaaHP6iCdxwhV/cguhnG/rEa tVfQj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ZQOwpd3kJ PdUElAvWp3YE7qAd3m5uw9zvkMehTIYd3A8LAv23EigMyMeFPCC1zxdHk+1829vv4YHsrXH/ 6uJZM+OY6XEVfT
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHYYWbKxDkd+3tW3E+LoQLYc1h9j60SP0GA
  • Thread-topic: ECLAIR Xen x86 results and progress

On 06/05/2022 17:31, Stefano Stabellini wrote:
> Hi all,
>
> Roberto kindly provided the ECLAIR x86 results:
>
> https://eclairit.com:8443/job/XEN/Target=X86_64,agent=public/lastSuccessfulBuild/eclair/
>
> Click on "See ECLAIR in action", then you can select "Show 100 entries"
> and see all the results in one page. As an example MC3R1.R1.3
> corresponds to Rule 1.3 in the spreadsheet.

Thanks.  Some observations:

1) D4.10 "use header guards to prevent multiple inclusion"

asm/p2m.h lacks header guards at all.  asm/softirq.h has some decidedly
dodgy looking logic.  These should obviously be fixed, and there are
probably more too in the 57 violations.

However, we have files like public/errno.h which are explicitly designed
to be included multiple times, and are not going to change unless we
have a fundamental shift in opinion on the utility of trying to make a
single set of header files for all environments.

Also, Eclair really doesn't like how we include C files.  TBH, I don't
much either, but some of the hypercall compat logic explicitly depends
on including itself, to avoid coding the hypercall logic twice.  There
is an argument to say that this is differently-less-bad than other
options, but it certainly doesn't help with general comprehensibility of
the code.

2) R6.2 "don't use signed bitfields"

We have one single violation, and it's only used as a regular boolean. 
It doesn't even need to be a bitfield at all, because there's 63 bits of
padding at the end of sh_emulate_ctxt.

(In the time that I've been browsing, someone has apparently done
another build with in particular CONFIG_SHADOW_PAGING disabled, so this
has fallen off the list of violations.)

3) R8.10 "inline functions shall be static".

We have 3 violations.  One is a legitimate complaint in spinlock.c.

The other two violations are from extern inline.  Given that extern
inline explicitly gives the compiler the choice to inline, or use a
single common out-of-line implementation, I think extern inline also
meets the spirit of what MISRA is trying to do here, insofar as it
prevents there being dead functions emitted into the final binary.

~Andrew

 


Rackspace

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