CI: Extend eclair-*-allcode to enable as much as possible
PATCH 1/1 CI: Extend eclair-*-allcode to enable as much as possible
On x86, this is basically everything.
For ARM, CONFIG_MPU and CONFIG_MMU are mutually exclusive (with CONFIG_STATIC_MEMORY in the mix), as well as CONFIG_NEW_VGIC being mutually exclusive with the other VGIC infrastructure.
No functional change, but a lot of new Eclair reports (non-blocking).
---
CC: Stefano Stabellini <[email protected]>
CC: [email protected] <[email protected]>
CC: Nicola Vetrini <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Julien Grall <[email protected]>
CC: Volodymyr Babchuk <[email protected]>
CC: Bertrand Marquis <[email protected]>
CC: Michal Orzel <[email protected]>
https://gitlab.com/xen-project/hardware/xen-staging/-/pipelines/2245142422
Maintaining these lists is going to be a nightmare. I think we really do need to implement CONFIG_COMPILE_TEST
--- automation/gitlab-ci/analyze.yaml | 45 +++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+)
automation/gitlab-ci/analyze.yaml +45 -0
@@ -44,6 +44,24 @@ eclair-x86_64-allcode: LOGFILE: "eclair-x86_64.log" VARIANT: "X86_64" RULESET: "monitored" + EXTRA_XEN_CONFIG: | + CONFIG_ARGO=y + CONFIG_DEBUG_LOCK_PROFILE=y + CONFIG_DEBUG_TRACE=y + CONFIG_EFI_SET_VIRTUAL_ADDRESS_MAP=y + CONFIG_EXPERT=y + CONFIG_HYPERV_GUEST=y + CONFIG_LATE_HWDOM=y + CONFIG_MEM_PAGING=y + CONFIG_MEM_SHARING=y + CONFIG_PERF_ARRAYS=y + CONFIG_PERF_COUNTERS=y + CONFIG_PV32=y + CONFIG_UNSUPPORTED=y + CONFIG_XENOPROF=y + CONFIG_XEN_GUEST=y + CONFIG_XHCI=y + CONFIG_XSM=y allow_failure: true eclair-x86_64-testing:
@@ -104,6 +122,33 @@ eclair-ARM64-allcode: LOGFILE: "eclair-ARM64.log" VARIANT: "ARM64" RULESET: "monitored" + EXTRA_XEN_CONFIG: | + CONFIG_ACPI=y + CONFIG_ARGO=y + CONFIG_ARM64_SVE=y + CONFIG_ARM_SMMU_V3=y + CONFIG_BOOT_TIME_CPUPOOLS=y + CONFIG_DEBUG_LOCK_PROFILE=y + CONFIG_DEBUG_TRACE=y + CONFIG_DEVICE_TREE_DEBUG=y + CONFIG_EFI_SET_VIRTUAL_ADDRESS_MAP=y + CONFIG_EXPERT=y + CONFIG_FFA=y + CONFIG_FFA_VM_TO_VM=y + CONFIG_GICV3_ESPI=y + CONFIG_HAS_ITS=y + CONFIG_IOREQ_SERVER=y + CONFIG_IPMMU_VMSA=y + CONFIG_LIVEPATCH=y + CONFIG_LLC_COLORING=y + CONFIG_OPTEE=y + CONFIG_OVERLAY_DTB=y + CONFIG_PCI_PASSTHROUGH=y + CONFIG_PERF_ARRAYS=y + CONFIG_PERF_COUNTERS=y + CONFIG_STACK_PROTECTOR=y + CONFIG_UNSUPPORTED=y + CONFIG_VM_EVENT=y allow_failure: true eclair-ARM64-testing:
Signature · 1 line
2.39.5
Quoted 9 lines · Andrew Cooper
On x86, this is basically everything.
For ARM,
CONFIG_MPUandCONFIG_MMUare mutually exclusive (withCONFIG_STATIC_MEMORYin the mix), as well asCONFIG_NEW_VGICbeing mutually exclusive with the other VGIC infrastructure.No functional change, but a lot of new Eclair reports (non-blocking).
Signed-off-by Andrew Cooper <[email protected]>
What I would have wished to be clarified here is why allyesconfig isn't suitable to use. After all that would address ...
Quoted 1 line
Maintaining these lists is going to be a nightmare.
... e.g. this concern.
Jan
Quoted 69 lines
I think we really do need
to implementCONFIG_COMPILE_TEST--- automation/gitlab-ci/analyze.yaml | 45 +++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+)automation/gitlab-ci/analyze.yaml +45
-0@@ -44,6 +44,24 @@ eclair-x86_64-allcode: LOGFILE: "eclair-x86_64.log" VARIANT: "X86_64" RULESET: "monitored" + EXTRA_XEN_CONFIG: | + CONFIG_ARGO=y + CONFIG_DEBUG_LOCK_PROFILE=y + CONFIG_DEBUG_TRACE=y + CONFIG_EFI_SET_VIRTUAL_ADDRESS_MAP=y + CONFIG_EXPERT=y + CONFIG_HYPERV_GUEST=y + CONFIG_LATE_HWDOM=y + CONFIG_MEM_PAGING=y + CONFIG_MEM_SHARING=y + CONFIG_PERF_ARRAYS=y + CONFIG_PERF_COUNTERS=y + CONFIG_PV32=y + CONFIG_UNSUPPORTED=y + CONFIG_XENOPROF=y + CONFIG_XEN_GUEST=y + CONFIG_XHCI=y + CONFIG_XSM=y allow_failure: true eclair-x86_64-testing:@@ -104,6 +122,33 @@ eclair-ARM64-allcode: LOGFILE: "eclair-ARM64.log" VARIANT: "ARM64" RULESET: "monitored" + EXTRA_XEN_CONFIG: | + CONFIG_ACPI=y + CONFIG_ARGO=y + CONFIG_ARM64_SVE=y + CONFIG_ARM_SMMU_V3=y + CONFIG_BOOT_TIME_CPUPOOLS=y + CONFIG_DEBUG_LOCK_PROFILE=y + CONFIG_DEBUG_TRACE=y + CONFIG_DEVICE_TREE_DEBUG=y + CONFIG_EFI_SET_VIRTUAL_ADDRESS_MAP=y + CONFIG_EXPERT=y + CONFIG_FFA=y + CONFIG_FFA_VM_TO_VM=y + CONFIG_GICV3_ESPI=y + CONFIG_HAS_ITS=y + CONFIG_IOREQ_SERVER=y + CONFIG_IPMMU_VMSA=y + CONFIG_LIVEPATCH=y + CONFIG_LLC_COLORING=y + CONFIG_OPTEE=y + CONFIG_OVERLAY_DTB=y + CONFIG_PCI_PASSTHROUGH=y + CONFIG_PERF_ARRAYS=y + CONFIG_PERF_COUNTERS=y + CONFIG_STACK_PROTECTOR=y + CONFIG_UNSUPPORTED=y + CONFIG_VM_EVENT=y allow_failure: true eclair-ARM64-testing:
ARM64 notes: Re: [PATCH] CI: Extend eclair-*-allcode to enable as much as possible
In reply to Andrew CooperQuoted 23 lines · Andrew Cooper
eclair-x86_64-testing:
(quoted diff) +18
-0@@ -104,6 +122,33 @@ eclair-ARM64-allcode: LOGFILE: "eclair-ARM64.log" VARIANT: "ARM64" RULESET: "monitored" + EXTRA_XEN_CONFIG: | + CONFIG_ACPI=y + CONFIG_ARGO=y + CONFIG_ARM64_SVE=y + CONFIG_ARM_SMMU_V3=y + CONFIG_BOOT_TIME_CPUPOOLS=y + CONFIG_DEBUG_LOCK_PROFILE=y + CONFIG_DEBUG_TRACE=y + CONFIG_DEVICE_TREE_DEBUG=y + CONFIG_EFI_SET_VIRTUAL_ADDRESS_MAP=y + CONFIG_EXPERT=y + CONFIG_FFA=y + CONFIG_FFA_VM_TO_VM=y + CONFIG_GICV3_ESPI=y + CONFIG_HAS_ITS=y + CONFIG_IOREQ_SERVER=y + CONFIG_IPMMU_VMSA=y + CONFIG_LIVEPATCH=y
Review eclair-ARM64-allcode: · line 152
Quoted 10 lines
(quoted diff) +9
-0+ CONFIG_LLC_COLORING=y + CONFIG_OPTEE=y + CONFIG_OVERLAY_DTB=y + CONFIG_PCI_PASSTHROUGH=y + CONFIG_PERF_ARRAYS=y + CONFIG_PERF_COUNTERS=y + CONFIG_STACK_PROTECTOR=y + CONFIG_UNSUPPORTED=y + CONFIG_VM_EVENT=y allow_failure: true
https://gitlab.com/xen-project/hardware/xen-staging/-/jobs/12604499722
shows 122 failures in otherwise-clean guidelines. Some observations:
llc-colouring.c uses binary literals. These are safe to use now since 4.21 with the updated toolchain baseline, but the Eclair config wants updating to allow this language extension.
ipmmu-vmsa.c has a git:// url inside a block comment, which is considered to be a Rule 3.1 violation. In principle this ought to fix it:
automation/eclair_analysis/ECLAIR/deviations.ecl +0 -0
@@ -60,7 +60,7 @@ removed by the compiler, the resulting slowdown is negligible."
-doc_begin="Comments starting with '/*' and containing hyperlinks are safe as they are not instances of commented-out code." --config=MC3A2.R3.1,reports+={safe, "first_area(text(^.*https?://.*$))"} +-config=MC3A2.R3.1,reports+={safe, "first_area(text(^.*(https?|git)://.*$))"} -doc_end
#
but I've not tried it yet.
There's a R8.4 violation against __stack_chk_guard. I think this wants deviating locally, because it's a fairly magic construct.
Other than that, there's a smattering of violations. Some will be fixed by some work I've got pending for the x86 side of things, but most are specific to arch/arm/.
~Andrew
Re: ARM64 notes: Re: [PATCH] CI: Extend eclair-*-allcode to enable as much as possible
Quoted 38 lines · Andrew Cooper
Quoted 23 lines · Andrew Cooper
eclair-x86_64-testing:
(quoted diff) +18
-0@@ -104,6 +122,33 @@ eclair-ARM64-allcode: LOGFILE: "eclair-ARM64.log" VARIANT: "ARM64" RULESET: "monitored" + EXTRA_XEN_CONFIG: | + CONFIG_ACPI=y + CONFIG_ARGO=y + CONFIG_ARM64_SVE=y + CONFIG_ARM_SMMU_V3=y + CONFIG_BOOT_TIME_CPUPOOLS=y + CONFIG_DEBUG_LOCK_PROFILE=y + CONFIG_DEBUG_TRACE=y + CONFIG_DEVICE_TREE_DEBUG=y + CONFIG_EFI_SET_VIRTUAL_ADDRESS_MAP=y + CONFIG_EXPERT=y + CONFIG_FFA=y + CONFIG_FFA_VM_TO_VM=y + CONFIG_GICV3_ESPI=y + CONFIG_HAS_ITS=y + CONFIG_IOREQ_SERVER=y + CONFIG_IPMMU_VMSA=y + CONFIG_LIVEPATCH=yReview eclair-ARM64-allcode: · line 152
Quoted 10 lines
(quoted diff) +9
-0+ CONFIG_LLC_COLORING=y + CONFIG_OPTEE=y + CONFIG_OVERLAY_DTB=y + CONFIG_PCI_PASSTHROUGH=y + CONFIG_PERF_ARRAYS=y + CONFIG_PERF_COUNTERS=y + CONFIG_STACK_PROTECTOR=y + CONFIG_UNSUPPORTED=y + CONFIG_VM_EVENT=y allow_failure: truehttps://gitlab.com/xen-project/hardware/xen-staging/-/jobs/12604499722
shows 122 failures in otherwise-clean guidelines. Some observations:
Quoted 4 lines
llc-colouring.cuses binary literals. These are safe to use now since 4.21 with the updated toolchain baseline, but the Eclair config wants updating to allow this language extension.
Yeah (though I don't see a strong reason to do so, for a single literal); I can write the patch.
Also xen/arch/arm/acpi/boot.c could use __func__ as almost everywhere else in xen/
Quoted 3 lines
ipmmu-vmsa.chas agit://url inside a block comment, which is considered to be a Rule 3.1 violation. In principle this ought to fix it:
Indeed it should.
Quoted 18 lines
automation/eclair_analysis/ECLAIR/deviations.ecl +0
-0@@ -60,7 +60,7 @@ removed by the compiler, the resulting slowdown isnegligible."
-doc_begin="Comments starting with '/*' and containing hyperlinks are safe as they are not instances of commented-out code." --config=MC3A2.R3.1,reports+={safe, "first_area(text(^.*https?://.*$))"}+-config=MC3A2.R3.1,reports+={safe, "first_area(text(^.*(https?|git)://.*$))"}-doc_end
#
Quoted 5 lines
but I've not tried it yet.
There's a R8.4 violation against __stack_chk_guard. I think this wants deviating locally, because it's a fairly magic construct.
ack.
Quoted 5 lines
Other than that, there's a smattering of violations. Some will be fixed by some work I've got pending for the x86 side of things, but most are specific to
arch/arm/.~Andrew
Signature · 4 lines
Nicola Vetrini, B.Sc. Software Engineer BUGSENG (https://bugseng.com) LinkedIn: https://www.linkedin.com/in/nicola-vetrini-a42471253
Re: ARM64 notes: Re: [PATCH] CI: Extend eclair-*-allcode to enable as much as possible
Quoted 9 lines · Nicola Vetrini
Quoted 5 lines · Andrew Cooper
llc-colouring.cuses binary literals. These are safe to use now since 4.21 with the updated toolchain baseline, but the Eclair config wants updating to allow this language extension.Yeah (though I don't see a strong reason to do so, for a single literal); I can write the patch.
A separate discussion happened about starting to use binary literals more widely. It's a capability we'd like to be able to use.
Quoted 3 lines
Also
xen/arch/arm/acpi/boot.ccould use__func__as almost everywhere else in xen/
Yeah (although I considered that not interesting enough to discuss.)
Quoted 27 lines
Quoted 5 lines
ipmmu-vmsa.chas agit://url inside a block comment, which is considered to be a Rule 3.1 violation. In principle this ought to fix it:Indeed it should.
Quoted 19 lines
automation/eclair_analysis/ECLAIR/deviations.ecl +0
-0@@ -60,7 +60,7 @@ removed by the compiler, the resulting slowdown isnegligible."
-doc_begin="Comments starting with '/*' and containing hyperlinks are safe as
they are not instances of commented-out code." --config=MC3A2.R3.1,reports+={safe, "first_area(text(^.*https?://.*$))"}+-config=MC3A2.R3.1,reports+={safe, "first_area(text(^.*(https?|git)://.*$))"}-doc_end
#
Quoted 7 lines
Quoted 5 lines
but I've not tried it yet.
There's a R8.4 violation against __stack_chk_guard. I think this wants deviating locally, because it's a fairly magic construct.
ack.
For the x86 side,
https://eclair-analysis-logs.xenproject.org/fs/space/verdesse0/XEN.ecdf/xen-project/hardware/xen-staging/ECLAIR_normal/andrew/eclair/X86_64/12595699289/PROJECT.ecd;/by_service/MC3A2.R8.4.html
shows that we've got the same problem with pvh_start_info_pa and early_hypercall_insn.
Like __stack_chk_guard, these are external because they're accessed by assembly, but don't need/want to be declared anywhere else in C. What's the recommended way of handling these issues?
~Andrew
Re: ARM64 notes: Re: [PATCH] CI: Extend eclair-*-allcode to enable as much as possible
In reply to Andrew CooperHi Andrew,
Quoted 62 lines · Andrew Cooper
Quoted 23 lines · Andrew Cooper
eclair-x86_64-testing:
(quoted diff) +18
-0@@ -104,6 +122,33 @@ eclair-ARM64-allcode: LOGFILE: "eclair-ARM64.log" VARIANT: "ARM64" RULESET: "monitored" + EXTRA_XEN_CONFIG: | + CONFIG_ACPI=y + CONFIG_ARGO=y + CONFIG_ARM64_SVE=y + CONFIG_ARM_SMMU_V3=y + CONFIG_BOOT_TIME_CPUPOOLS=y + CONFIG_DEBUG_LOCK_PROFILE=y + CONFIG_DEBUG_TRACE=y + CONFIG_DEVICE_TREE_DEBUG=y + CONFIG_EFI_SET_VIRTUAL_ADDRESS_MAP=y + CONFIG_EXPERT=y + CONFIG_FFA=y + CONFIG_FFA_VM_TO_VM=y + CONFIG_GICV3_ESPI=y + CONFIG_HAS_ITS=y + CONFIG_IOREQ_SERVER=y + CONFIG_IPMMU_VMSA=y + CONFIG_LIVEPATCH=yReview eclair-ARM64-allcode: · line 152
Quoted 10 lines
(quoted diff) +9
-0+ CONFIG_LLC_COLORING=y + CONFIG_OPTEE=y + CONFIG_OVERLAY_DTB=y + CONFIG_PCI_PASSTHROUGH=y + CONFIG_PERF_ARRAYS=y + CONFIG_PERF_COUNTERS=y + CONFIG_STACK_PROTECTOR=y + CONFIG_UNSUPPORTED=y + CONFIG_VM_EVENT=y allow_failure: truehttps://gitlab.com/xen-project/hardware/xen-staging/-/jobs/12604499722
shows 122 failures in otherwise-clean guidelines. Some observations:
llc-colouring.cuses binary literals. These are safe to use now since 4.21 with the updated toolchain baseline, but the Eclair config wants updating to allow this language extension.
ipmmu-vmsa.chas agit://url inside a block comment, which is considered to be a Rule 3.1 violation. In principle this ought to fix it:automation/eclair_analysis/ECLAIR/deviations.ecl +1
-1@@ -60,7 +60,7 @@ removed by the compiler, the resulting slowdown is negligible." -doc_begin="Comments starting with '/*' and containing hyperlinks are safe as they are not instances of commented-out code." --config=MC3A2.R3.1,reports+={safe, "first_area(text(^.*https?://.*$))"} +-config=MC3A2.R3.1,reports+={safe, "first_area(text(^.*(https?|git)://.*$))"} -doc_end #
Quoted 9 lines
but I've not tried it yet.
There's a R8.4 violation against
__stack_chk_guard. I think this wants deviating locally, because it's a fairly magic construct.Other than that, there's a smattering of violations. Some will be fixed by some work I've got pending for the x86 side of things, but most are specific to
arch/arm/.
They are quite a lot of violations coming from ffa.
I have a pending serie on FF-A waiting to be reviewed/committed. I can push something to fix the findings after it, if that is ok for you ?
I will retrigger the CI from the branch corresponding to my serie and work from there.
In any case, very good thing to activate all those and check with the CI, thanks a lot :-)
Cheers
Bertrand
Quoted 1 line
~Andrew
Re: ARM64 notes: Re: [PATCH] CI: Extend eclair-*-allcode to enable as much as possible
Quoted 82 lines · Bertrand Marquis
Hi Andrew,
Quoted 62 lines · Andrew Cooper
Quoted 23 lines · Andrew Cooper
eclair-x86_64-testing:
(quoted diff) +18
-0@@ -104,6 +122,33 @@ eclair-ARM64-allcode: LOGFILE: "eclair-ARM64.log" VARIANT: "ARM64" RULESET: "monitored" + EXTRA_XEN_CONFIG: | + CONFIG_ACPI=y + CONFIG_ARGO=y + CONFIG_ARM64_SVE=y + CONFIG_ARM_SMMU_V3=y + CONFIG_BOOT_TIME_CPUPOOLS=y + CONFIG_DEBUG_LOCK_PROFILE=y + CONFIG_DEBUG_TRACE=y + CONFIG_DEVICE_TREE_DEBUG=y + CONFIG_EFI_SET_VIRTUAL_ADDRESS_MAP=y + CONFIG_EXPERT=y + CONFIG_FFA=y + CONFIG_FFA_VM_TO_VM=y + CONFIG_GICV3_ESPI=y + CONFIG_HAS_ITS=y + CONFIG_IOREQ_SERVER=y + CONFIG_IPMMU_VMSA=y + CONFIG_LIVEPATCH=yReview eclair-ARM64-allcode: · line 152
Quoted 10 lines
(quoted diff) +9
-0+ CONFIG_LLC_COLORING=y + CONFIG_OPTEE=y + CONFIG_OVERLAY_DTB=y + CONFIG_PCI_PASSTHROUGH=y + CONFIG_PERF_ARRAYS=y + CONFIG_PERF_COUNTERS=y + CONFIG_STACK_PROTECTOR=y + CONFIG_UNSUPPORTED=y + CONFIG_VM_EVENT=y allow_failure: truehttps://gitlab.com/xen-project/hardware/xen-staging/-/jobs/12604499722
shows 122 failures in otherwise-clean guidelines. Some observations:
llc-colouring.cuses binary literals. These are safe to use now since 4.21 with the updated toolchain baseline, but the Eclair config wants updating to allow this language extension.
ipmmu-vmsa.chas agit://url inside a block comment, which is considered to be a Rule 3.1 violation. In principle this ought to fix it:automation/eclair_analysis/ECLAIR/deviations.ecl +0
-1@@ -60,7 +60,7 @@ removed by the compiler, the resulting slowdown is negligible." -doc_begin="Comments starting with '/*' and containing hyperlinks are safe asthey are not instances of commented-out code." --config=MC3A2.R3.1,reports+={safe, "first_area(text(^.*https?://.*$))"} +-config=MC3A2.R3.1,reports+={safe, "first_area(text(^.*(https?|git)://.*$))"} -doc_end
#
Quoted 9 lines
but I've not tried it yet.
There's a R8.4 violation against
__stack_chk_guard. I think this wants deviating locally, because it's a fairly magic construct.Other than that, there's a smattering of violations. Some will be fixed by some work I've got pending for the x86 side of things, but most are specific to
arch/arm/.They are quite a lot of violations coming from ffa.
I have a pending serie on FF-A waiting to be reviewed/committed. I can push something to fix the findings after it, if that is ok for you ?
Quoted 4 lines
I will retrigger the CI from the branch corresponding to my serie and work from there.
In any case, very good thing to activate all those and check with the CI, thanks a lot :-)
There are also a bunch of optee ones that i can handle in a patch.
Cheers
Bertrand
Quoted 5 lines
Cheers
BertrandQuoted 1 line
~Andrew
Re: ARM64 notes: Re: [PATCH] CI: Extend eclair-*-allcode to enable as much as possible
Quoted 79 lines · Bertrand Marquis
Quoted 79 lines · Bertrand Marquis
Hi Andrew,
Quoted 61 lines · Andrew Cooper
Quoted 23 lines · Andrew Cooper
eclair-x86_64-testing:
(quoted diff) +18
-0@@ -104,6 +122,33 @@ eclair-ARM64-allcode: LOGFILE: "eclair-ARM64.log" VARIANT: "ARM64" RULESET: "monitored" + EXTRA_XEN_CONFIG: | + CONFIG_ACPI=y + CONFIG_ARGO=y + CONFIG_ARM64_SVE=y + CONFIG_ARM_SMMU_V3=y + CONFIG_BOOT_TIME_CPUPOOLS=y + CONFIG_DEBUG_LOCK_PROFILE=y + CONFIG_DEBUG_TRACE=y + CONFIG_DEVICE_TREE_DEBUG=y + CONFIG_EFI_SET_VIRTUAL_ADDRESS_MAP=y + CONFIG_EXPERT=y + CONFIG_FFA=y + CONFIG_FFA_VM_TO_VM=y + CONFIG_GICV3_ESPI=y + CONFIG_HAS_ITS=y + CONFIG_IOREQ_SERVER=y + CONFIG_IPMMU_VMSA=y + CONFIG_LIVEPATCH=yReview eclair-ARM64-allcode: · line 152
Quoted 10 lines
(quoted diff) +9
-0+ CONFIG_LLC_COLORING=y + CONFIG_OPTEE=y + CONFIG_OVERLAY_DTB=y + CONFIG_PCI_PASSTHROUGH=y + CONFIG_PERF_ARRAYS=y + CONFIG_PERF_COUNTERS=y + CONFIG_STACK_PROTECTOR=y + CONFIG_UNSUPPORTED=y + CONFIG_VM_EVENT=y allow_failure: truehttps://gitlab.com/xen-project/hardware/xen-staging/-/jobs/12604499722
shows 122 failures in otherwise-clean guidelines. Some observations:
llc-colouring.cuses binary literals. These are safe to use now since 4.21 with the updated toolchain baseline, but the Eclair config wants updating to allow this language extension.
ipmmu-vmsa.chas agit://url inside a block comment, which is considered to be a Rule 3.1 violation. In principle this ought to fix it:automation/eclair_analysis/ECLAIR/deviations.ecl +0
-1@@ -60,7 +60,7 @@ removed by the compiler, the resulting slowdown is negligible." -doc_begin="Comments starting with '/*' and containing hyperlinks are safe asthey are not instances of commented-out code." --config=MC3A2.R3.1,reports+={safe, "first_area(text(^.*https?://.*$))"} +-config=MC3A2.R3.1,reports+={safe, "first_area(text(^.*(https?|git)://.*$))"} -doc_end
#
Quoted 9 lines
but I've not tried it yet.
There's a R8.4 violation against
__stack_chk_guard. I think this wants deviating locally, because it's a fairly magic construct.Other than that, there's a smattering of violations. Some will be fixed by some work I've got pending for the x86 side of things, but most are specific to
arch/arm/.They are quite a lot of violations coming from ffa.
I have a pending serie on FF-A waiting to be reviewed/committed. I can push something to fix the findings after it, if that is ok for you ?
Quoted 5 lines
Quoted 4 lines
I will retrigger the CI from the branch corresponding to my serie and work from there.
In any case, very good thing to activate all those and check with the CI, thanks a lot :-)
There are also a bunch of optee ones that i can handle in a patch.
These failures are non-blocking in Gitlab CI right now. Therefore, fixes can come independently of this patch.
Once all the code is being actively scanned, I'd like to see about creating a new blocking ruleset so the rules we've cleaned fully across the codebase are enforced.
One point that was only in the cover letter of the original email and needs discussing.
In ARM, MPU and MMU are mutually exclusive, as are VGIC and NEW_VGIC, so I can't find a way of getting ARM64-allcode to really match up with its name.
I strongly recommend deleting NEW_VGIC. It's had 0 development on it since it's introduction in 2018, is causing problems that Oleksii has had to work around to improve domain/vcpu allocation in common code (done now, series pending), and it has corruption problems when destroying domains (noticed during the review of Oleksii's series).
MMU vs MPU is harder. I'm not sure if it's even feasible to make a build that contains both.
~Andrew
Re: ARM64 notes: Re: [PATCH] CI: Extend eclair-*-allcode to enable as much as possible
Hi Andrew,
Quoted 103 lines · Andrew Cooper
Quoted 79 lines · Bertrand Marquis
Quoted 79 lines · Bertrand Marquis
Hi Andrew,
Quoted 61 lines · Andrew Cooper
Quoted 32 lines · Andrew Cooper
eclair-x86_64-testing:
(quoted diff) +27
-0@@ -104,6 +122,33 @@ eclair-ARM64-allcode: LOGFILE: "eclair-ARM64.log" VARIANT: "ARM64" RULESET: "monitored" + EXTRA_XEN_CONFIG: | + CONFIG_ACPI=y + CONFIG_ARGO=y + CONFIG_ARM64_SVE=y + CONFIG_ARM_SMMU_V3=y + CONFIG_BOOT_TIME_CPUPOOLS=y + CONFIG_DEBUG_LOCK_PROFILE=y + CONFIG_DEBUG_TRACE=y + CONFIG_DEVICE_TREE_DEBUG=y + CONFIG_EFI_SET_VIRTUAL_ADDRESS_MAP=y + CONFIG_EXPERT=y + CONFIG_FFA=y + CONFIG_FFA_VM_TO_VM=y + CONFIG_GICV3_ESPI=y + CONFIG_HAS_ITS=y + CONFIG_IOREQ_SERVER=y + CONFIG_IPMMU_VMSA=y + CONFIG_LIVEPATCH=y + CONFIG_LLC_COLORING=y + CONFIG_OPTEE=y + CONFIG_OVERLAY_DTB=y + CONFIG_PCI_PASSTHROUGH=y + CONFIG_PERF_ARRAYS=y + CONFIG_PERF_COUNTERS=y + CONFIG_STACK_PROTECTOR=y + CONFIG_UNSUPPORTED=y + CONFIG_VM_EVENT=yQuoted 1 line
allow_failure: truehttps://gitlab.com/xen-project/hardware/xen-staging/-/jobs/12604499722
shows 122 failures in otherwise-clean guidelines. Some observations:
llc-colouring.cuses binary literals. These are safe to use now since 4.21 with the updated toolchain baseline, but the Eclair config wants updating to allow this language extension.
ipmmu-vmsa.chas agit://url inside a block comment, which is considered to be a Rule 3.1 violation. In principle this ought to fix it:automation/eclair_analysis/ECLAIR/deviations.ecl +0
-1@@ -60,7 +60,7 @@ removed by the compiler, the resulting slowdown is negligible." -doc_begin="Comments starting with '/*' and containing hyperlinks are safe asthey are not instances of commented-out code." --config=MC3A2.R3.1,reports+={safe, "first_area(text(^.*https?://.*$))"} +-config=MC3A2.R3.1,reports+={safe, "first_area(text(^.*(https?|git)://.*$))"} -doc_end
#
Quoted 9 lines
but I've not tried it yet.
There's a R8.4 violation against
__stack_chk_guard. I think this wants deviating locally, because it's a fairly magic construct.Other than that, there's a smattering of violations. Some will be fixed by some work I've got pending for the x86 side of things, but most are specific to
arch/arm/.They are quite a lot of violations coming from ffa.
I have a pending serie on FF-A waiting to be reviewed/committed. I can push something to fix the findings after it, if that is ok for you ?Quoted 5 lines
Quoted 4 lines
I will retrigger the CI from the branch corresponding to my serie and work from there.
In any case, very good thing to activate all those and check with the CI, thanks a lot :-)
There are also a bunch of optee ones that i can handle in a patch.
These failures are non-blocking in Gitlab CI right now. Therefore, fixes can come independently of this patch.
Once all the code is being actively scanned, I'd like to see about creating a new blocking ruleset so the rules we've cleaned fully across the codebase are enforced.
One point that was only in the cover letter of the original email and needs discussing.
In ARM, MPU and MMU are mutually exclusive, as are VGIC and
NEW_VGIC, so I can't find a way of getting ARM64-allcode to really match up with its name.
Quoted 8 lines
I strongly recommend deleting
NEW_VGIC. It's had 0 development on it since it's introduction in 2018, is causing problems that Oleksii has had to work around to improve domain/vcpu allocation in common code (done now, series pending), and it has corruption problems when destroying domains (noticed during the review of Oleksii's series).MMU vs MPU is harder. I'm not sure if it's even feasible to make a build that contains both.
MMU and MPU are definitely not possible to select together and will never be. The allcode should definitely select GIC and MMU, for the new vgic I think there was some people still using that for some reason a while ago but not sure this is still the case, Julien is a lot more aware.
For MPU, at some point we will need to validate the code but I think we can do something like a virtual "arm64-mpu" allcode config when that is needed. At this stage, development is still in process so we do not need to check that part of the code.
Cheers
Bertrand
Quoted 2 lines
~Andrew
Re: ARM64 notes: Re: [PATCH] CI: Extend eclair-*-allcode to enable as much as possible
In reply to Bertrand MarquisHi Nicolas,
On this subject, could you help me understand what the following error mean and how I should fix that:
https://eclair-analysis-logs.xenproject.org/fs/space/verdesse0/XEN.ecdf/xen-project/hardware/xen-staging/ECLAIR_normal/andrew/eclair/ARM64/12604499722/PROJECT.ecd;/by_service/MC3A2.R20.12.html
Thanks
Bertrand
Quoted 89 lines · Bertrand Marquis
Hi Andrew,
Quoted 62 lines · Andrew Cooper
Quoted 23 lines · Andrew Cooper
eclair-x86_64-testing:
(quoted diff) +18
-0@@ -104,6 +122,33 @@ eclair-ARM64-allcode: LOGFILE: "eclair-ARM64.log" VARIANT: "ARM64" RULESET: "monitored" + EXTRA_XEN_CONFIG: | + CONFIG_ACPI=y + CONFIG_ARGO=y + CONFIG_ARM64_SVE=y + CONFIG_ARM_SMMU_V3=y + CONFIG_BOOT_TIME_CPUPOOLS=y + CONFIG_DEBUG_LOCK_PROFILE=y + CONFIG_DEBUG_TRACE=y + CONFIG_DEVICE_TREE_DEBUG=y + CONFIG_EFI_SET_VIRTUAL_ADDRESS_MAP=y + CONFIG_EXPERT=y + CONFIG_FFA=y + CONFIG_FFA_VM_TO_VM=y + CONFIG_GICV3_ESPI=y + CONFIG_HAS_ITS=y + CONFIG_IOREQ_SERVER=y + CONFIG_IPMMU_VMSA=y + CONFIG_LIVEPATCH=yReview eclair-ARM64-allcode: · line 152
Quoted 10 lines
(quoted diff) +9
-0+ CONFIG_LLC_COLORING=y + CONFIG_OPTEE=y + CONFIG_OVERLAY_DTB=y + CONFIG_PCI_PASSTHROUGH=y + CONFIG_PERF_ARRAYS=y + CONFIG_PERF_COUNTERS=y + CONFIG_STACK_PROTECTOR=y + CONFIG_UNSUPPORTED=y + CONFIG_VM_EVENT=y allow_failure: truehttps://gitlab.com/xen-project/hardware/xen-staging/-/jobs/12604499722
shows 122 failures in otherwise-clean guidelines. Some observations:
llc-colouring.cuses binary literals. These are safe to use now since 4.21 with the updated toolchain baseline, but the Eclair config wants updating to allow this language extension.
ipmmu-vmsa.chas agit://url inside a block comment, which is considered to be a Rule 3.1 violation. In principle this ought to fix it:automation/eclair_analysis/ECLAIR/deviations.ecl +0
-1@@ -60,7 +60,7 @@ removed by the compiler, the resulting slowdown is negligible." -doc_begin="Comments starting with '/*' and containing hyperlinks are safe asthey are not instances of commented-out code." --config=MC3A2.R3.1,reports+={safe, "first_area(text(^.*https?://.*$))"} +-config=MC3A2.R3.1,reports+={safe, "first_area(text(^.*(https?|git)://.*$))"} -doc_end
#
Quoted 9 lines
but I've not tried it yet.
There's a R8.4 violation against
__stack_chk_guard. I think this wants deviating locally, because it's a fairly magic construct.Other than that, there's a smattering of violations. Some will be fixed by some work I've got pending for the x86 side of things, but most are specific to
arch/arm/.They are quite a lot of violations coming from ffa.
I have a pending serie on FF-A waiting to be reviewed/committed. I can push something to fix the findings after it, if that is ok for you ?I will retrigger the CI from the branch corresponding to my serie and work from there.
In any case, very good thing to activate all those and check with the CI, thanks a lot :-)
Cheers
BertrandQuoted 1 line
~Andrew
Re: ARM64 notes: Re: [PATCH] CI: Extend eclair-*-allcode to enable as much as possible
Quoted 5 lines · Bertrand Marquis
Hi Nicolas,
On this subject, could you help me understand what the following error mean and how I should fix that:
https://eclair-analysis-logs.xenproject.org/fs/space/verdesse0/XEN.ecdf/xen-project/hardware/xen-staging/ECLAIR_normal/andrew/eclair/ARM64/12604499722/PROJECT.ecd;/by_service/MC3A2.R20.12.html
Hi Bertrand,
the point here is that the macro parameter 'FFA_VERSION' is itself a macro. This means that inside 'FW_ABI' and similar macros one occurrence of the 'abi' macro parameter will be further expanded to the value of 'FFA_VERSION', while the one used for stringification will not. This is potentially confusing for some programmers that do not know well the semantics of the preprocessor, which is why MISRA discourages it, but in these cases I would say it's very much intentional. There are already a few deviations for special cases (e.g. BUILD_BUG_ON uses the same pattern to print the condition), so I would suggest adding the macro FW_ABI to the deviation.
Quoted 96 lines
Thanks
BertrandQuoted 93 lines · Bertrand Marquis
Hi Andrew,
Quoted 66 lines · Andrew Cooper
Quoted 23 lines · Andrew Cooper
eclair-x86_64-testing:
(quoted diff) +18
-0@@ -104,6 +122,33 @@ eclair-ARM64-allcode: LOGFILE: "eclair-ARM64.log" VARIANT: "ARM64" RULESET: "monitored" + EXTRA_XEN_CONFIG: | + CONFIG_ACPI=y + CONFIG_ARGO=y + CONFIG_ARM64_SVE=y + CONFIG_ARM_SMMU_V3=y + CONFIG_BOOT_TIME_CPUPOOLS=y + CONFIG_DEBUG_LOCK_PROFILE=y + CONFIG_DEBUG_TRACE=y + CONFIG_DEVICE_TREE_DEBUG=y + CONFIG_EFI_SET_VIRTUAL_ADDRESS_MAP=y + CONFIG_EXPERT=y + CONFIG_FFA=y + CONFIG_FFA_VM_TO_VM=y + CONFIG_GICV3_ESPI=y + CONFIG_HAS_ITS=y + CONFIG_IOREQ_SERVER=y + CONFIG_IPMMU_VMSA=y + CONFIG_LIVEPATCH=yReview eclair-ARM64-allcode: · line 152
Quoted 10 lines
(quoted diff) +9
-0+ CONFIG_LLC_COLORING=y + CONFIG_OPTEE=y + CONFIG_OVERLAY_DTB=y + CONFIG_PCI_PASSTHROUGH=y + CONFIG_PERF_ARRAYS=y + CONFIG_PERF_COUNTERS=y + CONFIG_STACK_PROTECTOR=y + CONFIG_UNSUPPORTED=y + CONFIG_VM_EVENT=y allow_failure: truehttps://gitlab.com/xen-project/hardware/xen-staging/-/jobs/12604499722
shows 122 failures in otherwise-clean guidelines. Some observations:
llc-colouring.cuses binary literals. These are safe to use now since 4.21 with the updated toolchain baseline, but the Eclair config wants updating to allow this language extension.
ipmmu-vmsa.chas agit://url inside a block comment, which is considered to be a Rule 3.1 violation. In principle this ought to fix it:automation/eclair_analysis/ECLAIR/deviations.ecl +0
-0@@ -60,7 +60,7 @@ removed by the compiler, the resulting slowdown isnegligible."
-doc_begin="Comments starting with '/*' and containing hyperlinks are safe as
they are not instances of commented-out code." --config=MC3A2.R3.1,reports+={safe, "first_area(text(^.*https?://.*$))"}+-config=MC3A2.R3.1,reports+={safe, "first_area(text(^.*(https?|git)://.*$))"}-doc_end
#
Quoted 9 lines
but I've not tried it yet.
There's a R8.4 violation against
__stack_chk_guard. I think this wants deviating locally, because it's a fairly magic construct.Other than that, there's a smattering of violations. Some will be fixed by some work I've got pending for the x86 side of things, but most are specific to
arch/arm/.They are quite a lot of violations coming from ffa.
I have a pending serie on FF-A waiting to be reviewed/committed. I can push something to fix the findings after it, if that is ok for you ?I will retrigger the CI from the branch corresponding to my serie and work from there.
In any case, very good thing to activate all those and check with the CI, thanks a lot :-)
Cheers
BertrandQuoted 1 line
~Andrew
Signature · 4 lines
Nicola Vetrini, B.Sc. Software Engineer BUGSENG (https://bugseng.com) LinkedIn: https://www.linkedin.com/in/nicola-vetrini-a42471253
Re: ARM64 notes: Re: [PATCH] CI: Extend eclair-*-allcode to enable as much as possible
Quoted 11 lines · Nicola Vetrini
Quoted 7 lines · Bertrand Marquis
Hi Nicolas,
On this subject, could you help me understand what the following error mean and how I should fix that:
https://eclair-analysis-logs.xenproject.org/fs/space/verdesse0/XEN.ecdf/xen-project/hardware/xen-staging/ECLAIR_normal/andrew/eclair/ARM64/12604499722/PROJECT.ecd;/by_service/MC3A2.R20.12.htmlHi Bertrand,
Quoted 10 lines
the point here is that the macro parameter '
FFA_VERSION' is itself a macro. This means that inside 'FW_ABI' and similar macros one occurrence of the 'abi' macro parameter will be further expanded to the value of 'FFA_VERSION', while the one used for stringification will not. This is potentially confusing for some programmers that do not know well the semantics of the preprocessor, which is why MISRA discourages it, but in these cases I would say it's very much intentional. There are already a few deviations for special cases (e.g.BUILD_BUG_ONuses the same pattern to print the condition), so I would suggest adding the macroFW_ABIto the deviation.
We have a bunch of those on the x86 side too.
Here, we're using the numeric value for making a hypercall, but rendering the textural name for failure messages as it's more helpful than just the param number.
~Andrew
Hi Andrew
Quoted 11 lines · Andrew Cooper
On x86, this is basically everything.
For ARM,
CONFIG_MPUandCONFIG_MMUare mutually exclusive (withCONFIG_STATIC_MEMORYin the mix), as well asCONFIG_NEW_VGICbeing mutually exclusive with the other VGIC infrastructure.No functional change, but a lot of new Eclair reports (non-blocking).
Signed-off-by Andrew Cooper <[email protected]>
Cheers
Bertrand
Quoted 85 lines
---
CC: Stefano Stabellini <[email protected]>
CC: [email protected] <[email protected]>
CC: Nicola Vetrini <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Julien Grall <[email protected]>
CC: Volodymyr Babchuk <[email protected]>
CC: Bertrand Marquis <[email protected]>
CC: Michal Orzel <[email protected]>https://gitlab.com/xen-project/hardware/xen-staging/-/pipelines/2245142422
Maintaining these lists is going to be a nightmare. I think we really do need to implement
CONFIG_COMPILE_TEST
---automation/gitlab-ci/analyze.yaml| 45 +++++++++++++++++++++++++++++++1 file changed, 45 insertions(+)automation/gitlab-ci/analyze.yaml +18
-0@@ -44,6 +44,24 @@ eclair-x86_64-allcode: LOGFILE: "eclair-x86_64.log" VARIANT: "X86_64" RULESET: "monitored" + EXTRA_XEN_CONFIG: | + CONFIG_ARGO=y + CONFIG_DEBUG_LOCK_PROFILE=y + CONFIG_DEBUG_TRACE=y + CONFIG_EFI_SET_VIRTUAL_ADDRESS_MAP=y + CONFIG_EXPERT=y + CONFIG_HYPERV_GUEST=y + CONFIG_LATE_HWDOM=y + CONFIG_MEM_PAGING=y + CONFIG_MEM_SHARING=y + CONFIG_PERF_ARRAYS=y + CONFIG_PERF_COUNTERS=y + CONFIG_PV32=y + CONFIG_UNSUPPORTED=y + CONFIG_XENOPROF=y + CONFIG_XEN_GUEST=y + CONFIG_XHCI=y + CONFIG_XSM=y allow_failure: trueeclair-x86_64-testing:
automation/gitlab-ci/analyze.yaml +27
-0@@ -104,6 +122,33 @@ eclair-ARM64-allcode: LOGFILE: "eclair-ARM64.log" VARIANT: "ARM64" RULESET: "monitored" + EXTRA_XEN_CONFIG: | + CONFIG_ACPI=y + CONFIG_ARGO=y + CONFIG_ARM64_SVE=y + CONFIG_ARM_SMMU_V3=y + CONFIG_BOOT_TIME_CPUPOOLS=y + CONFIG_DEBUG_LOCK_PROFILE=y + CONFIG_DEBUG_TRACE=y + CONFIG_DEVICE_TREE_DEBUG=y + CONFIG_EFI_SET_VIRTUAL_ADDRESS_MAP=y + CONFIG_EXPERT=y + CONFIG_FFA=y + CONFIG_FFA_VM_TO_VM=y + CONFIG_GICV3_ESPI=y + CONFIG_HAS_ITS=y + CONFIG_IOREQ_SERVER=y + CONFIG_IPMMU_VMSA=y + CONFIG_LIVEPATCH=y + CONFIG_LLC_COLORING=y + CONFIG_OPTEE=y + CONFIG_OVERLAY_DTB=y + CONFIG_PCI_PASSTHROUGH=y + CONFIG_PERF_ARRAYS=y + CONFIG_PERF_COUNTERS=y + CONFIG_STACK_PROTECTOR=y + CONFIG_UNSUPPORTED=y + CONFIG_VM_EVENT=y allow_failure: trueeclair-ARM64-testing:
Signature · 1 line
2.39.5