Skip to contentSkip to conversation

Move Xen ECLAIR configuration to analyze.yaml

PATCH Superseded Nicola Vetrini 4 participants 10 messages Feb 14, 2025 – Feb 17, 2025

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover Move Xen ECLAIR configuration to analyze.yaml

The initial configuration for the ECLAIR MISRA C analysis integration into Xen consisted of two fixed configuration files (one for arm64 and one for x86_64). This approach shows its downsides as configuration options may change over time.

To address this issues, the configuration can be derived from the architecture's defconfig and overridden in analyze.yaml via EXTRA_XEN_CONFIG. While doing this, some inconsistencies that were overlooked in the hand-crafted configuration files have been resolved following the advice of Stefano Stabellini and Michal Orzel.

A few regressions on clean guidelines result from such configuration changes, therefore both patches are prerequisite to the last one to keep avoid pipeline failures.

Nicola Vetrini (3):
xen/arm: platform: address violation of MISRA C Rule 7.2 xen/sched: address violation of MISRA C Rule 8.2
automation: Update ECLAIR analysis configuration

 automation/eclair_analysis/prepare.sh      |   8 +-
 automation/eclair_analysis/xen_arm_config  | 141 --------------------
 automation/eclair_analysis/xen_x86_config  | 143 ---------------------
 automation/gitlab-ci/analyze.yaml          |  68 ++++++++++
 xen/arch/arm/platforms/brcm-raspberry-pi.c |   6 +-
 xen/common/sched/rt.c                      |   2 +-
 6 files changed, 77 insertions(+), 291 deletions(-)
 delete mode 100644 automation/eclair_analysis/xen_arm_config
 delete mode 100644 automation/eclair_analysis/xen_x86_config
Signature · 1 line
2.43.0
#1 lore raw

PATCH 1/3 xen/arm: platform: address violation of MISRA C Rule 7.2

Rule 7.2 states: "A u or U suffix shall be applied to all integer constants that are represented in an unsigned type".

Some PM_* constants are unsigned quantities, despite some of them being representable in a signed type, so a 'U' suffix should be present.

No functional change.

---
This fix is needed in order to keep the rule clean when the Xen configuration under static analysis is changed later in patch 3 of this series.

Only PM_RSTC_WRCFG_CLR is strictly needed to conform to the rule, but the other constants have a 'U' added for consistency. PM_RSTC and PM_WDOG are used as offsets, so in principle they can be negative, therefore they are left as is.

---
 xen/arch/arm/platforms/brcm-raspberry-pi.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
xen/arch/arm/platforms/brcm-raspberry-pi.c +3 -3
index 407ec07f63b8..d49460329cc8 100644
@@ -47,11 +47,11 @@ static const struct dt_device_match rpi4_blacklist_dev[] __initconst =
 };
 
 
-#define PM_PASSWORD                 0x5a000000
+#define PM_PASSWORD                 0x5a000000U
 #define PM_RSTC                     0x1c
 #define PM_WDOG                     0x24
-#define PM_RSTC_WRCFG_FULL_RESET    0x00000020
-#define PM_RSTC_WRCFG_CLR           0xffffffcf
+#define PM_RSTC_WRCFG_FULL_RESET    0x00000020U
+#define PM_RSTC_WRCFG_CLR           0xffffffcfU
 
 static void __iomem *rpi4_map_watchdog(void)
 {
Signature · 1 line
2.43.0
Reviewed-by on v1 1/3
#2 lore raw

Re: [XEN PATCH 1/3] xen/arm: platform: address violation of MISRA C Rule 7.2

Quoted 10 lines · Nicola Vetrini

Rule 7.2 states: "A u or U suffix shall be applied to all integer constants that are represented in an unsigned type".

Some PM_* constants are unsigned quantities, despite some of them being representable in a signed type, so a 'U' suffix should be present.

No functional change.

Quoted 35 lines

---
This fix is needed in order to keep the rule clean when the Xen configuration under static analysis is changed later in patch 3 of this series.

Only PM_RSTC_WRCFG_CLR is strictly needed to conform to the rule, but the other constants have a 'U' added for consistency. PM_RSTC and PM_WDOG are used as offsets, so in principle they can be negative, therefore they are left as is.

---
 xen/arch/arm/platforms/brcm-raspberry-pi.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
xen/arch/arm/platforms/brcm-raspberry-pi.c +3 -3
index 407ec07f63b8..d49460329cc8 100644
@@ -47,11 +47,11 @@ static const struct dt_device_match rpi4_blacklist_dev[] __initconst =
 };
 
 
-#define PM_PASSWORD                 0x5a000000
+#define PM_PASSWORD                 0x5a000000U
 #define PM_RSTC                     0x1c
 #define PM_WDOG                     0x24
-#define PM_RSTC_WRCFG_FULL_RESET    0x00000020
-#define PM_RSTC_WRCFG_CLR           0xffffffcf
+#define PM_RSTC_WRCFG_FULL_RESET    0x00000020U
+#define PM_RSTC_WRCFG_CLR           0xffffffcfU
 
 static void __iomem *rpi4_map_watchdog(void)
 {
Signature · 1 line
2.43.0
#3 lore raw

PATCH 2/3 xen/sched: address violation of MISRA C Rule 8.2

In reply to Nicola Vetrini

Rule 8.2 states: "Function types shall be in prototype form with named parameters".

The parameter name is missing from the function pointer type that constitutes the first parameter.

No functional change.

---
This small fix is needed in order to keep the rule clean in the follow-up patch that changes the Xen configuration under static analysis.

I wasn't really certain about the right name to give to the parameter, so if there are better options I'd be happy to accept them.

---
 xen/common/sched/rt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/common/sched/rt.c +1 -1
index f368e0fdd5a5..0300d2d2e454 100644
@@ -500,7 +500,7 @@ deadline_queue_remove(struct list_head *queue, struct list_head *elem)
 }
 
 static inline bool
-deadline_queue_insert(struct rt_unit * (*qelem)(struct list_head *),
+deadline_queue_insert(struct rt_unit * (*qelem)(struct list_head *q_iter),
                       struct rt_unit *svc, struct list_head *elem,
                       struct list_head *queue)
 {
Signature · 1 line
2.43.0
Reviewed-by on v1 2/3
#4 lore raw

Re: [XEN PATCH 2/3] xen/sched: address violation of MISRA C Rule 8.2

Quoted 25 lines · Nicola Vetrini

Rule 8.2 states: "Function types shall be in prototype form with named parameters".

The parameter name is missing from the function pointer type that constitutes the first parameter.

No functional change.

---
This small fix is needed in order to keep the rule clean in the follow-up patch that changes the Xen configuration under static analysis.

I wasn't really certain about the right name to give to the parameter, so if there are better options I'd be happy to accept them.

---
 xen/common/sched/rt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/common/sched/rt.c +0 -0
index f368e0fdd5a5..0300d2d2e454 100644

xen/common/sched/rt.c deadline_queue_remove(struct list_head *queue, struct list_head *elem) · line 503

Quoted 5 lines
xen/common/sched/rt.c +1 -1
@@ -500,7 +500,7 @@ deadline_queue_remove(struct list_head *queue, struct list_head *elem)
 }
 
 static inline bool
-deadline_queue_insert(struct rt_unit * (*qelem)(struct list_head *),
+deadline_queue_insert(struct rt_unit * (*qelem)(struct list_head *q_iter),

I think it should be "elem" instead of "q_iter"

Other than that:

The small change can be done on commit.

Quoted 6 lines
xen/common/sched/rt.c +0 -0
                       struct rt_unit *svc, struct list_head *elem,
                       struct list_head *queue)
 {
Signature · 1 line
2.43.0
#5 lore raw

Re: [XEN PATCH 2/3] xen/sched: address violation of MISRA C Rule 8.2

Quoted 15 lines · Stefano Stabellini
Quoted 14 lines · Nicola Vetrini

Rule 8.2 states: "Function types shall be in prototype form with named parameters".

The parameter name is missing from the function pointer type that constitutes the first parameter.

No functional change.

---
This small fix is needed in order to keep the rule clean in the follow-up patch that changes the Xen configuration under static analysis.

Quoted 5 lines
Quoted 5 lines

I wasn't really certain about the right name to give to the parameter, so if there are better options I'd be happy to accept them.

---
 xen/common/sched/rt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

This is a specific scheduler you touch, which I think wants expressing somehow (e.g. via an adjusted prefix) in the patch subject.

Quoted 10 lines

xen/common/sched/rt.c deadline_queue_remove(struct list_head *queue, struct list_head *elem) · line 503

Quoted 8 lines
xen/common/sched/rt.c +1 -1
@@ -500,7 +500,7 @@ deadline_queue_remove(struct list_head *queue, struct list_head *elem)
 }
 
 static inline bool
-deadline_queue_insert(struct rt_unit * (*qelem)(struct list_head *),
+deadline_queue_insert(struct rt_unit * (*qelem)(struct list_head *q_iter),

I think it should be "elem" instead of "q_iter"

Why would it matter what the name is? There's no separate decl to stay in sync with. (That said, I'd be happy with "elem"; it'll be a matter of the maintainers to judge.)

Jan

#6 lore raw

Re: [XEN PATCH 2/3] xen/sched: address violation of MISRA C Rule 8.2

Quoted 16 lines · Jan Beulich
Quoted 15 lines · Stefano Stabellini
Quoted 14 lines · Nicola Vetrini

Rule 8.2 states: "Function types shall be in prototype form with named parameters".

The parameter name is missing from the function pointer type that constitutes the first parameter.

No functional change.

---
This small fix is needed in order to keep the rule clean in the follow-up patch that changes the Xen configuration under static analysis.

Quoted 9 lines
Quoted 5 lines
Quoted 5 lines

I wasn't really certain about the right name to give to the parameter, so if there are better options I'd be happy to accept them.

---
 xen/common/sched/rt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

This is a specific scheduler you touch, which I think wants expressing somehow (e.g. via an adjusted prefix) in the patch subject.

Ok. I think it should be "xen/rt" then.

Quoted 13 lines
Quoted 6 lines
Quoted 6 lines
xen/common/sched/rt.c +0 -0
@@ -500,7 +500,7 @@ deadline_queue_remove(struct list_head *queue, 
 struct list_head *elem)
 }
 
Quoted 6 lines

xen/common/sched/rt.c deadline_queue_remove(struct list_head *queue, struct list_head *elem)

Quoted 4 lines
xen/common/sched/rt.c +1 -1
 static inline bool
-deadline_queue_insert(struct rt_unit * (*qelem)(struct list_head *),
+deadline_queue_insert(struct rt_unit * (*qelem)(struct list_head 
 *q_iter),

I think it should be "elem" instead of "q_iter"

Quoted 5 lines

Why would it matter what the name is? There's no separate decl to stay in sync with. (That said, I'd be happy with "elem"; it'll be a matter of the maintainers to judge.)

Jan

I'd be ok with that too.

Signature · 4 lines
Nicola Vetrini, B.Sc.
Software Engineer
BUGSENG (https://bugseng.com)
LinkedIn: https://www.linkedin.com/in/nicola-vetrini-a42471253
Reviewed-by
#7 lore raw

Re: [XEN PATCH 2/3] xen/sched: address violation of MISRA C Rule 8.2

Quoted 41 lines · Nicola Vetrini
Quoted 16 lines · Jan Beulich
Quoted 15 lines · Stefano Stabellini
Quoted 14 lines · Nicola Vetrini

Rule 8.2 states: "Function types shall be in prototype form with named parameters".

The parameter name is missing from the function pointer type that constitutes the first parameter.

No functional change.

---
This small fix is needed in order to keep the rule clean in the follow-up patch that changes the Xen configuration under static analysis.

Quoted 9 lines
Quoted 5 lines
Quoted 5 lines

I wasn't really certain about the right name to give to the parameter, so if there are better options I'd be happy to accept them.
---
 xen/common/sched/rt.c | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)

This is a specific scheduler you touch, which I think wants expressing somehow (e.g. via an adjusted prefix) in the patch subject.

Ok. I think it should be "xen/rt" then.

Quoted 12 lines
Quoted 11 lines

xen/common/sched/rt.c deadline_queue_remove(struct list_head *queue, struct list_head *elem) · line 503

Quoted 9 lines
xen/common/sched/rt.c +0 -0
@@ -500,7 +500,7 @@ deadline_queue_remove(struct list_head *queue, struct 
 list_head *elem)
  }
 

 static inline bool

xen/common/sched/rt.c +1 -1
-deadline_queue_insert(struct rt_unit * (*qelem)(struct list_head *),
+deadline_queue_insert(struct rt_unit * (*qelem)(struct list_head *q_iter),

I think it should be "elem" instead of "q_iter"

Quoted 8 lines
Quoted 5 lines

Why would it matter what the name is? There's no separate decl to stay in sync with. (That said, I'd be happy with "elem"; it'll be a matter of the maintainers to judge.)

Jan

I'd be ok with that too.

I think naming it "elem" is the better choice, as both functions used for the qelem() parameter name their parameter "elem" already.

With that change:

Juergen

#8 lore raw

PATCH 3/3 automation: Update ECLAIR analysis configuration

In reply to Nicola Vetrini

The Xen configurations for the ARM64 and X86_64 ECLAIR analyses is currently held in fixed files under 'automation/eclair_analysis/xen_{arm,x86}_config'. The values of the configuration options there are susceptible to going stale due to configuration option changes.

To enhance maintainability, the configuration under analysis is derived from the respective architecture's defconfig, with suitable changes added via EXTRA_XEN_CONFIG.

---
This patch should be applied on top of the other two in the series to ensure that the CI has no failures related to clean guidelines.

Note that any out of date values taken by configuration options currently in xen_*_config were determined to be benign with respect to the analysis results, but this wasn't the right approach in the long term.

---
 automation/eclair_analysis/prepare.sh     |   8 +-
 automation/eclair_analysis/xen_arm_config | 141 ---------------------
 automation/eclair_analysis/xen_x86_config | 143 ----------------------
 automation/gitlab-ci/analyze.yaml         |  68 ++++++++++
 4 files changed, 73 insertions(+), 287 deletions(-)
 delete mode 100644 automation/eclair_analysis/xen_arm_config
 delete mode 100644 automation/eclair_analysis/xen_x86_config
automation/eclair_analysis/prepare.sh +5 -3
index 3a646414a392..4285ff26de54 100755
@@ -25,18 +25,20 @@ fi
 export XEN_TARGET_ARCH
 
 if [ "$1" = "X86_64" ]; then
-  CONFIG_FILE="${script_dir}/xen_x86_config"
   XEN_TARGET_ARCH=x86_64
 elif [ "$1" = "ARM64" ]; then
-  CONFIG_FILE="${script_dir}/xen_arm_config"
   XEN_TARGET_ARCH=arm64
 else
   fatal "Unknown configuration: $1"
 fi
 
 (
+    make -C xen defconfig
+    if [[ -n "${EXTRA_XEN_CONFIG}" ]]; then
+        echo "${EXTRA_XEN_CONFIG}" >> xen/.config
+    fi
+
     ./configure
-    cp "${CONFIG_FILE}" xen/.config
     make clean
     find . -type f -name "*.safparse" -print -delete
     "${script_dir}/build.sh" "$1"
automation/eclair_analysis/xen_arm_config deleted +0 -141

141 lines not on this page · raw message

automation/eclair_analysis/xen_x86_config deleted +0 -143

143 lines not on this page · raw message

automation/gitlab-ci/analyze.yaml +68 -0

80 lines not on this page · raw message

Signature · 1 line
2.43.0
Reviewed-by on v1 3/3
#9 lore raw

Re: [XEN PATCH 3/3] automation: Update ECLAIR analysis configuration

Quoted 11 lines · Nicola Vetrini

The Xen configurations for the ARM64 and X86_64 ECLAIR analyses is currently held in fixed files under 'automation/eclair_analysis/xen_{arm,x86}_config'. The values of the configuration options there are susceptible to going stale due to configuration option changes.

To enhance maintainability, the configuration under analysis is derived from the respective architecture's defconfig, with suitable changes added via EXTRA_XEN_CONFIG.

Quoted 430 lines

---
This patch should be applied on top of the other two in the series to ensure that the CI has no failures related to clean guidelines.

Note that any out of date values taken by configuration options currently in xen_*_config were determined to be benign with respect to the analysis results, but this wasn't the right approach in the long term.

---
 automation/eclair_analysis/prepare.sh     |   8 +-
 automation/eclair_analysis/xen_arm_config | 141 ---------------------
 automation/eclair_analysis/xen_x86_config | 143 ----------------------
 automation/gitlab-ci/analyze.yaml         |  68 ++++++++++
 4 files changed, 73 insertions(+), 287 deletions(-)
 delete mode 100644 automation/eclair_analysis/xen_arm_config
 delete mode 100644 automation/eclair_analysis/xen_x86_config
automation/eclair_analysis/prepare.sh +5 -3
index 3a646414a392..4285ff26de54 100755
@@ -25,18 +25,20 @@ fi
 export XEN_TARGET_ARCH
 
 if [ "$1" = "X86_64" ]; then
-  CONFIG_FILE="${script_dir}/xen_x86_config"
   XEN_TARGET_ARCH=x86_64
 elif [ "$1" = "ARM64" ]; then
-  CONFIG_FILE="${script_dir}/xen_arm_config"
   XEN_TARGET_ARCH=arm64
 else
   fatal "Unknown configuration: $1"
 fi
 
 (
+    make -C xen defconfig
+    if [[ -n "${EXTRA_XEN_CONFIG}" ]]; then
+        echo "${EXTRA_XEN_CONFIG}" >> xen/.config
+    fi
+
     ./configure
-    cp "${CONFIG_FILE}" xen/.config
     make clean
     find . -type f -name "*.safparse" -print -delete
     "${script_dir}/build.sh" "$1"
automation/eclair_analysis/xen_arm_config deleted +0 -141
deleted file mode 100644
index ef140ceb7383..000000000000
@@ -1,141 +0,0 @@
-CONFIG_CC_IS_GCC=y
-CONFIG_GCC_VERSION=90400
-CONFIG_CLANG_VERSION=0
-CONFIG_LD_IS_GNU=y
-CONFIG_CC_HAS_VISIBILITY_ATTRIBUTE=y
-CONFIG_ARM_64=y
-CONFIG_ARM=y
-CONFIG_ARCH_DEFCONFIG="arch/arm/configs/arm64_defconfig"
-
-# UBSAN
-CONFIG_UBSAN=n
-
-#
-# Architecture Features
-#
-CONFIG_ARM64_SVE=n
-CONFIG_64BIT=y
-CONFIG_NR_CPUS=4
-# CONFIG_ACPI is not set
-CONFIG_ARM_EFI=y
-CONFIG_GICV3=y
-CONFIG_HAS_ITS=y
-CONFIG_HVM=y
-# CONFIG_NEW_VGIC is not set
-CONFIG_SBSA_VUART_CONSOLE=y
-CONFIG_ARM_SSBD=y
-CONFIG_HARDEN_BRANCH_PREDICTOR=y
-CONFIG_TEE=n
-CONFIG_OPTEE=n
-CONFIG_FFA=n
-# CONFIG_STATIC_SHM is not set
-# end of Architecture Features
-
-#
-# ARM errata workaround via the alternative framework
-#
-CONFIG_ARM64_ERRATUM_827319=y
-CONFIG_ARM64_ERRATUM_824069=y
-CONFIG_ARM64_ERRATUM_819472=y
-CONFIG_ARM64_ERRATUM_843419=y
-CONFIG_ARM64_ERRATUM_832075=y
-CONFIG_ARM64_ERRATUM_834220=y
-CONFIG_ARM64_ERRATUM_1508412=y
-CONFIG_ARM_ERRATUM_858921=y
-CONFIG_ARM64_WORKAROUND_REPEAT_TLBI=y
-CONFIG_ARM64_ERRATUM_1286807=y
-# end of ARM errata workaround via the alternative framework
-
-CONFIG_ARM64_HARDEN_BRANCH_PREDICTOR=y
-# CONFIG_ALL_PLAT is not set
-# CONFIG_QEMU is not set
-# CONFIG_RCAR3 is not set
-CONFIG_MPSOC=y
-# CONFIG_NO_PLAT is not set
-CONFIG_MPSOC_PLATFORM=y
-
-#
-# Common Features
-#
-CONFIG_GRANT_TABLE=y
-CONFIG_HAS_ALTERNATIVE=y
-CONFIG_HAS_DEVICE_TREE=y
-CONFIG_HAS_FAST_MULTIPLY=y
-CONFIG_HAS_PDX=y
-CONFIG_HAS_PMAP=y
-# CONFIG_MEM_ACCESS is not set
-CONFIG_STATIC_MEMORY=y
-
-#
-# Speculative hardening
-#
-CONFIG_SPECULATIVE_HARDEN_ARRAY=y
-# end of Speculative hardening
-
-# CONFIG_HYPFS is not set
-CONFIG_IOREQ_SERVER=y
-# CONFIG_EFI_SET_VIRTUAL_ADDRESS_MAP is not set
-# CONFIG_XSM is not set
-# CONFIG_ARGO is not set
-
-#
-# Schedulers
-#
-# CONFIG_SCHED_CREDIT is not set
-CONFIG_SCHED_CREDIT2=y
-# CONFIG_SCHED_RTDS is not set
-# CONFIG_SCHED_ARINC653 is not set
-CONFIG_SCHED_NULL=y
-CONFIG_SCHED_CREDIT2_DEFAULT=y
-# CONFIG_SCHED_NULL_DEFAULT is not set
-CONFIG_SCHED_DEFAULT="credit2"
-# end of Schedulers
-
-CONFIG_BOOT_TIME_CPUPOOLS=y
-# CONFIG_LIVEPATCH is not set
-# CONFIG_ENFORCE_UNIQUE_SYMBOLS is not set
-CONFIG_SUPPRESS_DUPLICATE_SYMBOL_WARNINGS=y
-CONFIG_CMDLINE=""
-CONFIG_DOM0_MEM=""
-CONFIG_DTB_FILE=""
-# CONFIG_TRACEBUFFER is not set
-# end of Common Features
-
-#
-# Device Drivers
-#
-# CONFIG_HAS_NS16550 is not set
-CONFIG_HAS_CADENCE_UART=y
-# CONFIG_HAS_IMX_LPUART is not set
-# CONFIG_HAS_MVEBU is not set
-# CONFIG_HAS_MESON is not set
-CONFIG_HAS_PL011=y
-# CONFIG_HAS_SCIF is not set
-CONFIG_SERIAL_TX_BUFSIZE=16384
-CONFIG_HAS_PASSTHROUGH=y
-CONFIG_ARM_SMMU=y
-CONFIG_ARM_SMMU_V3=y
-# CONFIG_IPMMU_VMSA is not set
-CONFIG_IOMMU_FORCE_PT_SHARE=y
-# end of Device Drivers
-
-CONFIG_EXPERT=y
-CONFIG_UNSUPPORTED=y
-
-#
-# Debugging Options
-#
-CONFIG_DEBUG=y
-CONFIG_FRAME_POINTER=y
-CONFIG_COVERAGE=y
-CONFIG_DEBUG_LOCK_PROFILE=y
-CONFIG_DEBUG_LOCKS=y
-CONFIG_PERF_COUNTERS=y
-CONFIG_PERF_ARRAYS=y
-CONFIG_VERBOSE_DEBUG=y
-CONFIG_DEVICE_TREE_DEBUG=y
-CONFIG_SCRUB_DEBUG=y
-CONFIG_DEBUG_TRACE=y
-CONFIG_XMEM_POOL_POISON=y
-CONFIG_DEBUG_INFO=y
-# end of Debugging Options
automation/eclair_analysis/xen_x86_config deleted +0 -143
deleted file mode 100644
index abc44d43e108..000000000000
@@ -1,143 +0,0 @@
-CONFIG_CC_IS_GCC=y
-CONFIG_GCC_VERSION=90400
-CONFIG_CLANG_VERSION=0
-CONFIG_LD_IS_GNU=y
-CONFIG_CC_HAS_VISIBILITY_ATTRIBUTE=y
-CONFIG_X86_64=y
-CONFIG_X86=y
-CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig"
-CONFIG_CC_HAS_INDIRECT_THUNK=y
-CONFIG_HAS_AS_CET_SS=y
-CONFIG_HAS_CC_CET_IBT=y
-
-CONFIG_REQUIRE_NX=n
-
-#
-# Architecture Features
-#
-CONFIG_64BIT=y
-CONFIG_NR_CPUS=16
-CONFIG_NR_NUMA_NODES=2
-# CONFIG_PV is not set
-CONFIG_HVM=y
-# CONFIG_XEN_SHSTK is not set
-# CONFIG_XEN_IBT is not set
-# CONFIG_SHADOW_PAGING is not set
-# CONFIG_BIGMEM is not set
-# CONFIG_HVM_FEP is not set
-# CONFIG_TBOOT is not set
-CONFIG_XEN_ALIGN_DEFAULT=y
-# CONFIG_XEN_ALIGN_2M is not set
-CONFIG_X2APIC_PHYSICAL=y
-# CONFIG_XEN_GUEST is not set
-# CONFIG_HYPERV_GUEST is not set
-# CONFIG_MEM_PAGING is not set
-# CONFIG_MEM_SHARING is not set
-# end of Architecture Features
-
-#
-# Common Features
-#
-CONFIG_COMPAT=y
-CONFIG_CORE_PARKING=y
-CONFIG_GRANT_TABLE=y
-CONFIG_ALTERNATIVE_CALL=y
-CONFIG_ARCH_MAP_DOMAIN_PAGE=y
-CONFIG_GENERIC_BUG_FRAME=y
-CONFIG_HAS_ALTERNATIVE=y
-CONFIG_HAS_COMPAT=y
-CONFIG_HAS_EX_TABLE=y
-CONFIG_HAS_FAST_MULTIPLY=y
-CONFIG_HAS_IOPORTS=y
-CONFIG_HAS_KEXEC=y
-CONFIG_HAS_PDX=y
-CONFIG_HAS_SCHED_GRANULARITY=y
-CONFIG_HAS_UBSAN=y
-CONFIG_MEM_ACCESS_ALWAYS_ON=y
-CONFIG_MEM_ACCESS=y
-CONFIG_NEEDS_LIBELF=y
-CONFIG_NUMA=y
-
-#
-# Speculative hardening
-#
-CONFIG_INDIRECT_THUNK=y
-CONFIG_SPECULATIVE_HARDEN_ARRAY=y
-CONFIG_SPECULATIVE_HARDEN_BRANCH=y
-# end of Speculative hardening
-
-# CONFIG_HYPFS is not set
-CONFIG_IOREQ_SERVER=y
-# CONFIG_KEXEC is not set
-# CONFIG_EFI_SET_VIRTUAL_ADDRESS_MAP is not set
-# CONFIG_XENOPROF is not set
-# CONFIG_XSM is not set
-# CONFIG_ARGO is not set
-
-#
-# Schedulers
-#
-# CONFIG_SCHED_CREDIT is not set
-CONFIG_SCHED_CREDIT2=y
-# CONFIG_SCHED_RTDS is not set
-# CONFIG_SCHED_ARINC653 is not set
-CONFIG_SCHED_NULL=y
-CONFIG_SCHED_CREDIT2_DEFAULT=y
-# CONFIG_SCHED_NULL_DEFAULT is not set
-CONFIG_SCHED_DEFAULT="credit2"
-# end of Schedulers
-
-# CONFIG_LIVEPATCH is not set
-# CONFIG_ENFORCE_UNIQUE_SYMBOLS is not set
-# CONFIG_SUPPRESS_DUPLICATE_SYMBOL_WARNINGS is not set
-CONFIG_CMDLINE=""
-CONFIG_DOM0_MEM=""
-# CONFIG_TRACEBUFFER is not set
-# end of Common Features
-
-#
-# Device Drivers
-#
-CONFIG_ACPI=y
-CONFIG_ACPI_LEGACY_TABLES_LOOKUP=y
-CONFIG_ACPI_NUMA=y
-CONFIG_HAS_NS16550=y
-CONFIG_HAS_EHCI=y
-CONFIG_SERIAL_TX_BUFSIZE=16384
-# CONFIG_XHCI is not set
-CONFIG_HAS_CPUFREQ=y
-CONFIG_HAS_PASSTHROUGH=y
-CONFIG_AMD_IOMMU=y
-# CONFIG_INTEL_IOMMU is not set
-# CONFIG_IOMMU_QUARANTINE_NONE is not set
-CONFIG_IOMMU_QUARANTINE_BASIC=y
-# CONFIG_IOMMU_QUARANTINE_SCRATCH_PAGE is not set
-CONFIG_HAS_PCI=y
-CONFIG_HAS_PCI_MSI=y
-CONFIG_VIDEO=y
-CONFIG_VGA=y
-CONFIG_HAS_VPCI=y
-# end of Device Drivers
-
-CONFIG_EXPERT=y
-CONFIG_UNSUPPORTED=y
-CONFIG_ARCH_SUPPORTS_INT128=y
-
-#
-# Debugging Options
-#
-CONFIG_DEBUG=y
-# CONFIG_CRASH_DEBUG is not set
-CONFIG_GDBSX=y
-CONFIG_FRAME_POINTER=y
-# CONFIG_COVERAGE is not set
-# CONFIG_DEBUG_LOCK_PROFILE is not set
-CONFIG_DEBUG_LOCKS=y
-# CONFIG_PERF_COUNTERS is not set
-CONFIG_VERBOSE_DEBUG=y
-CONFIG_SCRUB_DEBUG=y
-# CONFIG_UBSAN is not set
-# CONFIG_DEBUG_TRACE is not set
-CONFIG_XMEM_POOL_POISON=y
-CONFIG_DEBUG_INFO=y
-# end of Debugging Options
automation/gitlab-ci/analyze.yaml +68 -0
index 02e0ea692c66..35ff3620cf8e 100644
@@ -40,6 +40,36 @@ eclair-x86_64:
     LOGFILE: "eclair-x86_64.log"
     VARIANT: "X86_64"
     RULESET: "monitored"
+    EXTRA_XEN_CONFIG: |
+      CONFIG_AMD=y
+      CONFIG_INTEL=n
+      CONFIG_AMD_SVM=y
+      CONFIG_INTEL_VMX=n
+      CONFIG_NR_CPUS=16
+      CONFIG_NR_NUMA_NODES=2
+      CONFIG_PV=n
+      CONFIG_XEN_IBT=n
+      CONFIG_XEN_SHSTK=n
+      CONFIG_SHADOW_PAGING=n
+      CONFIG_HVM_FEP=n
+      CONFIG_TBOOT=n
+      CONFIG_HYPFS=n
+      CONFIG_KEXEC=n
+      CONFIG_ARGO=y
+      CONFIG_SCHED_CREDIT=n
+      CONFIG_SCHED_RTDS=n
+      CONFIG_SCHED_ARINC653=n
+      CONFIG_LIVEPATCH=n
+      CONFIG_TRACEBUFFER=n
+      CONFIG_INTEL_IOMMU=n
+      CONFIG_EXPERT=y
+      CONFIG_DEBUG=y
+      CONFIG_GDBSX=n
+      CONFIG_FRAME_POINTER=n
+      CONFIG_SELF_TESTS=n
+      CONFIG_DEBUG_LOCKS=n
+      CONFIG_SCRUB_DEBUG=n
+      CONFIG_XMEM_POOL_POISON=n
 
 eclair-ARM64:
   extends: .eclair-analysis:triggered
@@ -47,6 +77,44 @@ eclair-ARM64:
     LOGFILE: "eclair-ARM64.log"
     VARIANT: "ARM64"
     RULESET: "monitored"
+    EXTRA_XEN_CONFIG: |
+      CONFIG_NR_CPUS=16
+      CONFIG_GICV2=n
+      CONFIG_GICV3=y
+      CONFIG_VGICV2=n
+      CONFIG_HAS_ITS=y
+      CONFIG_HWDOM_VUART=n
+      CONFIG_STATIC_SHM=y
+      CONFIG_STATIC_EVTCHN=y
+      CONFIG_STATIC_MEMORY=y
+      CONFIG_SCMI_SMC=n
+      CONFIG_PARTIAL_EMULATION=n
+      CONFIG_HYPFS=n
+      CONFIG_IOREQ_SERVER=y
+      CONFIG_XSM=n
+      CONFIG_ARGO=y
+      CONFIG_SCHED_CREDIT=n
+      CONFIG_SCHED_RTDS=n
+      CONFIG_SCHED_ARINC653=n
+      CONFIG_BOOT_TIME_CPUPOOLS=y
+      CONFIG_TRACEBUFFER=n
+      CONFIG_HAS_CADENCE_UART=n
+      CONFIG_HAS_NS16550=n
+      CONFIG_HAS_IMX_LPUART=n
+      CONFIG_HAS_MVEBU=n
+      CONFIG_HAS_MESON=n
+      CONFIG_HAS_OMAP=n
+      CONFIG_HAS_SCIF=n
+      CONFIG_HAS_LINFLEX=n
+      CONFIG_ARM_SMMU=n
+      CONFIG_ARM_SMMU_V3=y
+      CONFIG_EXPERT=y
+      CONFIG_DEBUG=y
+      CONFIG_FRAME_POINTER=n
+      CONFIG_SELF_TESTS=n
+      CONFIG_DEBUG_LOCKS=n
+      CONFIG_SCRUB_DEBUG=n
+      CONFIG_XMEM_POOL_POISON=n
 
 .eclair-analysis:on-schedule:
   extends: .eclair-analysis
Signature · 1 line
2.43.0