Re: [PATCH] xen: add deviations for MISRA C 2012 Rule R5.4

2024-11-13 Thread Simone Ballarin
On 2024-11-13 10:38, Alessandro Zucchelli wrote: This addresses violations of MISRA C:2012 Rule 5.4 which states as following: Macro identifiers shall be distinct. This deviation aims to address violations of Rule 5.4 regarding identifiers XLAT_hvm_altp2m_set_mem_access_multi_HNDL_pfn_list and X

Re: [PATCH] automation: fix eclair scanning for merge requests

2024-08-05 Thread Simone Ballarin
On 2024-08-06 03:03, Stefano Stabellini wrote: On Sat, 3 Aug 2024, Nicola Vetrini wrote: On 2024-08-02 00:06, Stefano Stabellini wrote: > The ECLAIR jobs part of the Gitlab CI pipeline fail reliably when the > pipeline is started from a merge request. This is the error: > > Unexpected event pull

Re: [PATCH] automation: fix eclair scanning for merge requests

2024-08-06 Thread Simone Ballarin
On 2024-08-06 20:25, Stefano Stabellini wrote: On Tue, 6 Aug 2024, Simone Ballarin wrote: On 2024-08-06 03:03, Stefano Stabellini wrote: > On Sat, 3 Aug 2024, Nicola Vetrini wrote: > > On 2024-08-02 00:06, Stefano Stabellini wrote: > > > The ECLAIR jobs part of the Gitla

[XEN PATCH v3 03/15] x86/svm: fix violations of MISRA C:2012 Rule 7.2

2023-07-12 Thread Simone Ballarin
als with unsigned type and also to other literals used in the same contexts or near violations, when their positive nature is immediately clear. The latter changes are done for the sake of uniformity. Signed-off-by: Gianluca Luparini Signed-off-by: Simone Ballarin Reviewed-by: Stefano Stabellini

[XEN PATCH v3 02/15] AMD/IOMMU: fix violations of MISRA C:2012 Rule 7.2

2023-07-12 Thread Simone Ballarin
als with unsigned type and also to other literals used in the same contexts or near violations, when their positive nature is immediately clear. The latter changes are done for the sake of uniformity. Signed-off-by: Gianluca Luparini Signed-off-by: Simone Ballarin Reviewed-by: Stefano Stabellini

[XEN PATCH v3 05/15] xen/device-tree: fix violations of MISRA C:2012 Rule 7.2

2023-07-12 Thread Simone Ballarin
als with unsigned type and also to other literals used in the same contexts or near violations, when their positive nature is immediately clear. The latter changes are done for the sake of uniformity. Signed-off-by: Gianluca Luparini Signed-off-by: Simone Ballarin Reviewed-by: Luca Fancellu Reviewe

[XEN PATCH v3 04/15] xen/arm: fix violations of MISRA C:2012 Rule 7.2

2023-07-12 Thread Simone Ballarin
als with unsigned type and also to other literals used in the same contexts or near violations, when their positive nature is immediately clear. The latter changes are done for the sake of uniformity. Signed-off-by: Gianluca Luparini Signed-off-by: Simone Ballarin --- Changes in v3: - change 'S

[XEN PATCH v3 01/15] x86/cpufreq: fix violations of MISRA C:2012 Rule 7.2

2023-07-12 Thread Simone Ballarin
als with unsigned type and also to other literals used in the same contexts or near violations, when their positive nature is immediately clear. The latter changes are done for the sake of uniformity. Signed-off-by: Gianluca Luparini Signed-off-by: Simone Ballarin Reviewed-by: Stefano Stabellini

[XEN PATCH v3 00/15] xen: fix violations of MISRA C:2012 Rule 7.2

2023-07-12 Thread Simone Ballarin
From: Gianluca Luparini The xen sources contains violations of MISRA C:2012 Rule 7.2 whose headline states: "A 'u' or 'U' suffix shall be applied to all integer constants that are represented in an unsigned type". These violations are caused by the missing "u" or "U" suffix in unsigned integer c

[XEN PATCH v3 06/15] xen/efi: fix violations of MISRA C:2012 Rule 7.2

2023-07-12 Thread Simone Ballarin
als with unsigned type. For the sake of uniformity, the following changes are made: - add the 'U' suffix to all first macro's arguments in 'boot.c' - add the 'U' suffix near '0x3fff' in 'runtime.c' Signed-off-by: Gianluca Luparini Signed-off-b

[XEN PATCH v3 08/15] xen/pci: fix violations of MISRA C:2012 Rule 7.2

2023-07-12 Thread Simone Ballarin
als with unsigned type and also to other literals used in the same contexts or near violations, when their positive nature is immediately clear. The latter changes are done for the sake of uniformity. Signed-off-by: Gianluca Luparini Signed-off-by: Simone Ballarin Reviewed-by: Stefano Stabellini

[XEN PATCH v3 09/15] xen/public: fix violations of MISRA C:2012 Rule 7.2

2023-07-12 Thread Simone Ballarin
als with unsigned type. For the sake of uniformity, the following changes are made: - add the 'U' suffix to integer constants before the '?' operator Signed-off-by: Gianluca Luparini Signed-off-by: Simone Ballarin Reviewed-by: Juergen Gross Reviewed-by: Stefano Stabellini -

[XEN PATCH v3 07/15] x86/vmx: fix violations of MISRA C:2012 Rule 7.2

2023-07-12 Thread Simone Ballarin
s near 'INTR_INFO_VALID_MASK' macro in 'vmx.h' Signed-off-by: Gianluca Luparini Signed-off-by: Simone Ballarin Reviewed-by: Stefano Stabellini --- Changes in v3: - change 'Signed-off-by' ordering - change commit message - remove unnecessary changes in 'vvmx.

[XEN PATCH v3 10/15] x86/monitor: fix violations of MISRA C:2012 Rule 7.2

2023-07-12 Thread Simone Ballarin
als with unsigned type and also to other literals used in the same contexts or near violations, when their positive nature is immediately clear. The latter changes are done for the sake of uniformity. Signed-off-by: Gianluca Luparini Signed-off-by: Simone Ballarin Reviewed-by: Stefano Stabellini --

[XEN PATCH v3 15/15] xen: fix violations of MISRA C:2012 Rule 7.2

2023-07-12 Thread Simone Ballarin
als with unsigned type. Fot the sake of uniformity, the following changes are made: - add the 'U' suffix to all integer constants before the '?' operator in 'bitops.h' Signed-off-by: Gianluca Luparini Signed-off-by: Simone Ballarin Reviewed-by: Stefano Stabellini

[XEN PATCH v3 14/15] ACPI/APEI: fix violations of MISRA C:2012 Rule 7.2

2023-07-12 Thread Simone Ballarin
als with unsigned type. For the sake of uniformity, the following changes are made: - add the 'U' suffix to all first macro's arguments in 'cper.h' Signed-off-by: Gianluca Luparini Signed-off-by: Simone Ballarin --- Changes in v3: - create this commit for 'cper.h&#

[XEN PATCH v3 13/15] x86/viridian: fix violations of MISRA C:2012 Rule 7.2

2023-07-12 Thread Simone Ballarin
als with unsigned type and also to other literals used in the same contexts or near violations, when their positive nature is immediately clear. The latter changes are done for the sake of uniformity. Signed-off-by: Gianluca Luparini Signed-off-by: Simone Ballarin --- Changes in v3: - create this co

[XEN PATCH v3 12/15] xen/x86: fix violations of MISRA C:2012 Rule 7.2

2023-07-12 Thread Simone Ballarin
in 'stdvga.c' - add the 'U' suffix to macros in 'pci.h' Signed-off-by: Gianluca Luparini Signed-off-by: Simone Ballarin --- Changes in v3: - change 'Signed-off-by' ordering - change commit message - add 'UL' in 'extable.c' - fix indentation i

[XEN PATCH v3 11/15] xen/vpci: fix violations of MISRA C:2012 Rule 7.2

2023-07-12 Thread Simone Ballarin
als with unsigned type and also to other literals used in the same contexts or near violations, when their positive nature is immediately clear. The latter changes are done for the sake of uniformity. Signed-off-by: Gianluca Luparini Signed-off-by: Simone Ballarin Reviewed-by: Stefano Stabellini --

Re: Violations of mandatory MISRA C:2012 Rule 19.1 in X86_64 build

2023-07-12 Thread Simone Ballarin
/origin/staging/X86_64-Set1/149/PROJECT.ecd;/by_service/MC3R1.R19.1.html > > Hmm, gives me "Unauthorized". > Please try again, now it should work. Simone Ballarin, M.Sc. Field Application Engineer, BUGSENG (https://bugseng.com <http://bugseng.com>)

[XEN PATCH] automation: add ECLAIR pipeline

2023-07-20 Thread Simone Ballarin
by BUGSENG. Signed-off-by: Simone Ballarin --- .gitlab-ci.yml| 2 ++ automation/gitlab-ci/analyze.yaml | 38 +++ automation/scripts/eclair | 26 + 3 files changed, 66 insertions(+) create mode 100644 automation/gi

Re: [XEN PATCH] automation: add ECLAIR pipeline

2023-07-21 Thread Simone Ballarin
SSH_COMMAND="ssh -o StrictHostKeyChecking=no" > > +[ -d ECLAIR_scripts ] || git clone ssh:// > g...@git.bugseng.com/eclair/scripts/XEN ECLAIR_scripts > > +(cd ECLAIR_scripts; git pull --rebase) > > + > > +ECLAIR_DIR=ECLAIR_scripts/ECLAIR > > +ECLAIR_OUTPUT_DIR=$(realpath "${ECLAIR_OUTPUT_DIR}") > > + > > +ECLAIR_scripts/prepare.sh "${VARIANT}" > > + > > +ex=0 > > +"${ECLAIR_DIR}/analyze.sh" "${VARIANT}" "${RULESET}" || ex=$? > > +"${ECLAIR_DIR}/action_log.sh" ANALYSIS_LOG \ > > + "ECLAIR analysis log" \ > > + "${ECLAIR_OUTPUT_DIR}/ANALYSIS.log" \ > > + "${ex}" > > +"${ECLAIR_DIR}/action_log.sh" REPORT_LOG \ > > + "ECLAIR report log" \ > > + "${ECLAIR_OUTPUT_DIR}/REPORT.log" \ > > + "${ex}" > > +[ "${ex}" = 0 ] || exit "${ex}" > > +"${ECLAIR_DIR}/action_push.sh" "${WTOKEN}" "${ECLAIR_OUTPUT_DIR}" > > + > > +rm -rf "${ECLAIR_OUTPUT_DIR}/.data" > > -- > > 2.34.1 > > > -- Simone Ballarin, M.Sc. Field Application Engineer, BUGSENG (https://bugseng.com <http://bugseng.com>)

[XEN PATCH v2] automation: add ECLAIR pipeline

2023-07-24 Thread Simone Ballarin
of guidelines tagged as clean:added. The list of clean guidelines are maintained in automation/eclair_analysis/ECLAIR/tagging.ecl. Signed-off-by: Simone Ballarin -- Changes in v2: - add ECLAIR configuration files (before they were fetched from a separate repository); - now the pipeline fa

[XEN PATCH 0/4] automation: Add ECLAIR pipelines

2023-07-25 Thread Simone Ballarin
to read a masked variable named WTOKEN with the token provided by BUGSENG, otherwise the pipeline will fail. The analysis fails if it contains violations of guidelines tagged as clean:added. The list of clean guidelines are maintained in automation/eclair_analysis/ECLAIR/tagging.ecl. Simone

[XEN PATCH 1/4] automation: Add ECLAIR utilities and settings

2023-07-25 Thread Simone Ballarin
-off-by: Simone Ballarin -- Changes in v3: - split ECLAIR configurations and scripts in a separate patch; - remove references to "Task (a): Xen Coding Guidelines v1.0". Changes in v2: - add ECLAIR configuration files (before they were fetched from a separate repository); - now the pipe

[XEN PATCH 2/4] automation: Add xen builds for the ECLAIR analyses

2023-07-25 Thread Simone Ballarin
; the prepare.sh script is instead intended to perform all the required operations for building xen that are not supposed to be analyzed: e.g. dependencies build. Signed-off-by: Simone Ballarin -- Changes in v3: - split build definitions in a separate patch. Changes in v2: - add ECLAIR

[XEN PATCH 3/4] automation: Add ECLAIR pipelines

2023-07-25 Thread Simone Ballarin
of guidelines tagged as clean:added. The list of clean guidelines are maintained in automation/eclair_analysis/ECLAIR/tagging.ecl. Signed-off-by: Simone Ballarin -- Changes in v3: - split definitions of the ECLAIR pipelines in a separate patch; - if the WTOKEN variable is missing now the analys

[XEN PATCH 4/4] maintainers: Add ECLAIR reviewer

2023-07-25 Thread Simone Ballarin
Signed-off-by: Simone Ballarin -- Changes in v3: - split maintainer add in a separate patch; - substitute blanks with tabs; - fix file paths; - change role from maintainer to reviewer. Changes in v2: - add ECLAIR configuration files (before they were fetched from a separate repository); - now

Re: [XEN PATCH 3/4] automation: Add ECLAIR pipelines

2023-07-25 Thread Simone Ballarin
t; > BTW I really like the graphics output, e.g.: > > https://saas.eclairit.com:3787/fs/var/local/eclair/xen-project.ecdf/xen-project/people/sstabellini/xen/ECLAIR_normal/ppp2/ARM64/4732041018/PROJECT.ecd;/by_service.html#service/first_file&kind > > Very nice and clear! > > -- Simone Ballarin, M.Sc. Field Application Engineer, BUGSENG (https://bugseng.com <http://bugseng.com>)

[XEN PATCH v4 1/4] x86/vmx: address violations of MISRA C:2012 Rule 7.2

2023-07-26 Thread Simone Ballarin
s near 'INTR_INFO_VALID_MASK' macro in 'vmx.h' Signed-off-by: Gianluca Luparini Signed-off-by: Simone Ballarin Reviewed-by: Stefano Stabellini Reviewed-by: Jan Beulich --- Changes in v4: - change commit headline Changes in v3: - change 'Signed-off-by' ordering

[XEN PATCH v4 2/4] xen/vpci: address violations of MISRA C:2012 Rule 7.2

2023-07-26 Thread Simone Ballarin
als with unsigned type and also to other literals used in the same contexts or near violations, when their positive nature is immediately clear. The latter changes are done for the sake of uniformity. Signed-off-by: Gianluca Luparini Signed-off-by: Simone Ballarin Reviewed-by: Stefano Stabellini ---

[XEN PATCH 0/4] xen: address violations of MISRA C:2012 Rule 7.2

2023-07-26 Thread Simone Ballarin
The xen sources contains violations of MISRA C:2012 Rule 7.2 whose headline states: "A 'u' or 'U' suffix shall be applied to all integer constants that are represented in an unsigned type". These violations are caused by the missing "u" or "U" suffix in unsigned integer constants, such as: xen/ar

[XEN PATCH v4 3/4] x86/viridian: address violations of MISRA C:2012 Rule 7.2

2023-07-26 Thread Simone Ballarin
als with unsigned type and also to other literals used in the same contexts or near violations, when their positive nature is immediately clear. The latter changes are done for the sake of uniformity. Signed-off-by: Gianluca Luparini Signed-off-by: Simone Ballarin Reviewed-by: Stefano Stabellini ---

[XEN PATCH v4 4/4] xen/x86: address violations of MISRA C:2012 Rule 7.2

2023-07-26 Thread Simone Ballarin
d.c' - add 'U' suffixes to 'mask16' in 'stdvga.c' - add the 'U' suffix to macros in 'pci.h' - use _AC() for macros near 'X86_CR0_PG' Signed-off-by: Gianluca Luparini Signed-off-by: Simone Ballarin Reviewed-by: Stefano Stabellini

Re: [XEN PATCH 0/4] xen: address violations of MISRA C:2012 Rule 7.2

2023-07-26 Thread Simone Ballarin
Il giorno mer 26 lug 2023 alle ore 14:02 Jan Beulich ha scritto: > On 26.07.2023 13:03, Simone Ballarin wrote: > > The xen sources contains violations of MISRA C:2012 Rule 7.2 whose > headline > > states: > > "A 'u' or 'U' suffix shall be applied

[XEN PATCH v4 0/4] automation: Add ECLAIR pipelines

2023-07-26 Thread Simone Ballarin
v4: - move link to the analysis results at the end of the console log - avoid git warning - avoid undesired git logs - remove undesired blanks in MAINTAINERS Simone Ballarin (4): automation: Add ECLAIR utilities and settings automation: Add xen builds for the ECLAIR analyses automation: Add

[XEN PATCH v4 3/4] automation: Add ECLAIR pipelines

2023-07-26 Thread Simone Ballarin
of guidelines tagged as clean:added. The list of clean guidelines are maintained in automation/eclair_analysis/ECLAIR/tagging.ecl. Signed-off-by: Simone Ballarin -- Changes in v4: - move link to the analysis results at the end of the console log Changes in v3: - split definitions of the E

[XEN PATCH v4 4/4] maintainers: Add ECLAIR reviewer

2023-07-26 Thread Simone Ballarin
Signed-off-by: Simone Ballarin Acked-by: Stefano Stabellini -- Changes in v4: - add 'Acked-by' - remove undesired blanks Changes in v3: - split maintainer add in a separate patch; - substitute blanks with tabs; - change role from maintainer to reviewer. Changes in v2: -

[XEN PATCH v4 1/4] automation: Add ECLAIR utilities and settings

2023-07-26 Thread Simone Ballarin
-off-by: Simone Ballarin Acked-by: Stefano Stabellini -- Changes in v4: - avoid warning from git fetch - add --quit to git fetch - add 'Acked-by' Changes in v3: - split ECLAIR configurations and scripts in a separate patch; - remove references to "Task (a): Xen Coding Guidelines v1.

[XEN PATCH v4 2/4] automation: Add xen builds for the ECLAIR analyses

2023-07-26 Thread Simone Ballarin
; the prepare.sh script is instead intended to perform all the required operations for building xen that are not supposed to be analyzed: e.g. dependencies build. Signed-off-by: Simone Ballarin Reviewed-by: Stefano Stabellini -- Changes in v4: - add 'Reviewed-by' Changes in v3: - s

[XEN PATCH 0/4] automation/eclair: improvements to the ECLAIR integration

2023-08-01 Thread Simone Ballarin
series avoids failures when a merge point with xen-project/xen(staging) is not found. Simone Ballarin (4): automation/eclair: add support for tag pipelines automation/eclair: add direct link to reports automation/eclair: add scheduled pipelines automation/eclair: avoid failure in case of missing

[XEN PATCH 1/4] automation/eclair: add support for tag pipelines

2023-08-01 Thread Simone Ballarin
The ECLAIR jobs fail when triggered by tag pipelines (e.g. xen-project/patchew/xen). This patch extends the integration to support such pipelines. Signed-off-by: Simone Ballarin --- .../eclair_analysis/ECLAIR/action.settings| 24 --- 1 file changed, 15 insertions(+), 9

[XEN PATCH 3/4] automation/eclair: add scheduled pipelines

2023-08-01 Thread Simone Ballarin
This patch introduces six new ECLAIR jobs that run only when triggered by a GitLab scheduled pipeline. Signed-off-by: Simone Ballarin --- .../eclair_analysis/ECLAIR/action.settings| 2 +- automation/gitlab-ci/analyze.yaml | 65 +-- 2 files changed, 62 insertions

[XEN PATCH 2/4] automation/eclair: add direct link to reports

2023-08-01 Thread Simone Ballarin
This patch adds direct links to the analysis findings in the console log. Signed-off-by: Simone Ballarin --- .../eclair_analysis/ECLAIR/action.helpers | 84 ++- 1 file changed, 65 insertions(+), 19 deletions(-) diff --git a/automation/eclair_analysis/ECLAIR/action.helpers

[XEN PATCH 4/4] automation/eclair: avoid failure in case of missing merge point

2023-08-01 Thread Simone Ballarin
In the context of an auto pull request, when a common merge point is not found the integration will continue the analysis without failing. Signed-off-by: Simone Ballarin --- automation/eclair_analysis/ECLAIR/action.settings | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a

Re: [XEN PATCH 3/4] automation/eclair: add scheduled pipelines

2023-08-02 Thread Simone Ballarin
Il 02/08/2023 02:08 Stefano Stabellini ha scritto: On Wed, 2 Aug 2023, Marek Marczykowski-Górecki wrote: On Tue, Aug 01, 2023 at 03:55:20PM -0700, Stefano Stabellini wrote: > On Tue, 1 Aug 2023, Simone Ballarin wrote: > > This patch introduces six new ECLAIR jobs that run only

Re: [XEN PATCH 1/4] automation/eclair: add support for tag pipelines

2023-08-02 Thread Simone Ballarin
Il 02/08/2023 00:54 Stefano Stabellini ha scritto: On Tue, 1 Aug 2023, Simone Ballarin wrote: The ECLAIR jobs fail when triggered by tag pipelines (e.g. xen-project/patchew/xen). This patch extends the integration to support such pipelines. Signed-off-by: Simone Ballarin Acked-by: Stefano

[XEN PATCH 00/13] xen: address violations of MISRA C:2012 Rule 7.3

2023-08-03 Thread Simone Ballarin
This series aims to address some violations ofMISRA C:2012 Rule 7.3: "The lowercase character 'l' shall not be used in a literal suffix". This patch replaces "l" suffixes with "L", to comply with the rule. If the "u" suffix is used near "L", use the "U" suffix instead, for consistency. Gianluca L

[XEN PATCH 01/13] AMD/IOMMU: address violations of MISRA C:2012 Rule 7.3

2023-08-03 Thread Simone Ballarin
the "u" suffix is used near "L", use the "U" suffix instead, for consistency. The changes in this patch are mechanical. Signed-off-by: Gianluca Luparini Signed-off-by: Simone Ballarin --- xen/drivers/passthrough/amd/iommu_guest.c | 2 +- xen/drivers/passthrough/a

[XEN PATCH 03/13] xen/arm: address violations of MISRA C:2012 Rule 7.3

2023-08-03 Thread Simone Ballarin
the "u" suffix is used near "L", use the "U" suffix instead, for consistency. The changes in this patch are mechanical. Signed-off-by: Gianluca Luparini Signed-off-by: Simone Ballarin --- xen/arch/arm/include/asm/processor.h | 6 +++--- xen/arch/arm/vtimer.

[XEN PATCH 06/13] xen/mem_access: address violations of MISRA C:2012 Rule 7.3

2023-08-03 Thread Simone Ballarin
the "u" suffix is used near "L", use the "U" suffix instead, for consistency. The changes in this patch are mechanical. Signed-off-by: Gianluca Luparini Signed-off-by: Simone Ballarin --- xen/common/mem_access.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deleti

[XEN PATCH 04/13] x86/IOMMU: address violations of MISRA C:2012 Rule 7.3

2023-08-03 Thread Simone Ballarin
the "u" suffix is used near "L", use the "U" suffix instead, for consistency. The changes in this patch are mechanical. Signed-off-by: Gianluca Luparini Signed-off-by: Simone Ballarin --- xen/drivers/passthrough/x86/iommu.c | 8 1 file changed, 4 insertion

[XEN PATCH 02/13] x86/svm: address violations of MISRA C:2012 Rule 7.3

2023-08-03 Thread Simone Ballarin
the "u" suffix is used near "L", use the "U" suffix instead, for consistency. The changes in this patch are mechanical. Signed-off-by: Gianluca Luparini Signed-off-by: Simone Ballarin --- xen/arch/x86/hvm/svm/svm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 de

[XEN PATCH 05/13] xen/ioreq: address violations of MISRA C:2012 Rule 7.3

2023-08-03 Thread Simone Ballarin
the "u" suffix is used near "L", use the "U" suffix instead, for consistency. The changes in this patch are mechanical. Signed-off-by: Gianluca Luparini Signed-off-by: Simone Ballarin --- xen/common/ioreq.c | 2 +- xen/include/xen/ioreq.h | 2 +- 2 files chang

[XEN PATCH 07/13] xen/vpci: address violations of MISRA C:2012 Rule 7.3

2023-08-03 Thread Simone Ballarin
the "u" suffix is used near "L", use the "U" suffix instead, for consistency. The changes in this patch are mechanical. Signed-off-by: Gianluca Luparini Signed-off-by: Simone Ballarin --- xen/drivers/vpci/header.c | 2 +- xen/drivers/vpci/msi.c| 2 +- xe

[XEN PATCH 08/13] xen/hvm: address violations of MISRA C:2012 Rule 7.3

2023-08-03 Thread Simone Ballarin
the "u" suffix is used near "L", use the "U" suffix instead, for consistency. The changes in this patch are mechanical. Signed-off-by: Gianluca Luparini Signed-off-by: Simone Ballarin --- xen/arch/x86/hvm/emulate.c | 2 +- xen/arch/x86/hvm/io.c | 2 +- 2 fil

[XEN PATCH 09/13] x86/mm: address violations of MISRA C:2012 Rule 7.3

2023-08-03 Thread Simone Ballarin
the "u" suffix is used near "L", use the "U" suffix instead, for consistency. The changes in this patch are mechanical. Signed-off-by: Gianluca Luparini Signed-off-by: Simone Ballarin --- xen/arch/x86/mm/p2m-pt.c | 6 +++--- xen/arch/x86/mm/p2m.c | 20

[XEN PATCH 10/13] x86/viridian: address violations of MISRA C:2012 Rule 7.3

2023-08-03 Thread Simone Ballarin
the "u" suffix is used near "L", use the "U" suffix instead, for consistency. The changes in this patch are mechanical. Signed-off-by: Gianluca Luparini Signed-off-by: Simone Ballarin --- xen/arch/x86/hvm/viridian/synic.c | 2 +- xen/arch/x86/hvm/viridian/

[XEN PATCH 11/13] xen/x86: address violations of MISRA C:2012 Rule 7.3

2023-08-03 Thread Simone Ballarin
the "u" suffix is used near "L", use the "U" suffix instead, for consistency. The changes in this patch are mechanical. Signed-off-by: Gianluca Luparini Signed-off-by: Simone Ballarin --- xen/arch/x86/cpu-policy.c| 4 ++-- xen/arch/x86/dom0_build.c

[XEN PATCH 12/13] xen/common: address violations of MISRA C:2012 Rule 7.3

2023-08-03 Thread Simone Ballarin
the "u" suffix is used near "L", use the "U" suffix instead, for consistency. The changes in this patch are mechanical. Signed-off-by: Gianluca Luparini Signed-off-by: Simone Ballarin --- xen/common/page_alloc.c | 6 +++--- xen/common/rangeset.c | 2 +- xen/com

[XEN PATCH 13/13] xen: address violations of MISRA C:2012 Rule 7.3

2023-08-03 Thread Simone Ballarin
the "u" suffix is used near "L", use the "U" suffix instead, for consistency. The changes in this patch are mechanical. Signed-off-by: Gianluca Luparini Signed-off-by: Simone Ballarin --- xen/include/xen/bitops.h | 8 xen/include/xen/tasklet.h | 4 ++-- x

[XEN PATCH 0/3] automation/eclair: update ECL configurations and builds

2023-08-09 Thread Simone Ballarin
This series contains new ECL configurations and adds some build options in the ARM64 build. Simone Ballarin (3): automation/eclair: update clean guidelines automation/eclair: add ECL deviations automation/eclair: update analyzed builds .../eclair_analysis/ECLAIR/deviations.ecl | 34

[XEN PATCH 1/3] automation/eclair: update clean guidelines

2023-08-09 Thread Simone Ballarin
following clean guidelines have been added: - MC3R1.R1.1; - MC3R1.R1.3; - MC3R1.R3.1; - MC3R1.R4.1; - MC3R1.R17.4; - MC3R1.R22.6; - MC3R1.D4.3 (just x86_64); - MC3R1.R5.3 (just arm64); - MC3R1.R7.2 (just arm64); - MC3R1.R8.6 (just arm64); - MC3R1.R9.3 (just arm64). Signed-off-by: Simone Ballarin

[XEN PATCH 2/3] automation/eclair: add ECL deviations

2023-08-09 Thread Simone Ballarin
This patch adds some deviations for the following guidelines: Rule 2.1, Rule 5.3 and Rule 8.2. Signed-off-by: Simone Ballarin --- .../eclair_analysis/ECLAIR/deviations.ecl | 34 --- 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/automation/eclair_analysis

[XEN PATCH 3/3] automation/eclair: update analyzed builds

2023-08-09 Thread Simone Ballarin
The xen build for ARM64 now has new configuration options which require to be defined: this patch defines them. In both configuration files some no longer true comments have been removed. Signed-off-by: Simone Ballarin --- automation/eclair_analysis/xen_arm_config | 14

Re: [XEN PATCH 0/4] xen: address violations of MISRA C:2012 Rule 7.2

2023-08-09 Thread Simone Ballarin
Il giorno mer 26 lug 2023 alle ore 13:04 Simone Ballarin < simone.balla...@bugseng.com> ha scritto: > The xen sources contains violations of MISRA C:2012 Rule 7.2 whose headline > states: > "A 'u' or 'U' suffix shall be applied to all integer constants th

Re: [XEN PATCH 0/4] xen: address violations of MISRA C:2012 Rule 7.2

2023-08-10 Thread Simone Ballarin
On 09/08/2023 11:15, Jan Beulich wrote: On 09.08.2023 10:58, Simone Ballarin wrote: Il giorno mer 26 lug 2023 alle ore 13:04 Simone Ballarin < simone.balla...@bugseng.com> ha scritto: The xen sources contains violations of MISRA C:2012 Rule 7.2 whose headline states: "A '

[XEN PATCH 1/2] automation: avoid pipelines on specific branches

2023-08-11 Thread Simone Ballarin
This patch avoids the execution of pipelines in the following branches: - master - smoke - coverirty-tested/.* - stable-.* The job-level exclusions have been removed as they are pointless with this new workspace-level exclusion. Signed-off-by: Simone Ballarin --- .gitlab-ci.yml | 6 ++ 1

[XEN PATCH 2/2] automation/eclair: avoid unintentional ECLAIR analysis

2023-08-11 Thread Simone Ballarin
With this patch, ECLAIR jobs will need to be manually started for "people/.*" pipelines. This avoids occupying the runner on analyzes that might not be used by developers. If developers want to analyze their own repositories they need to launch them from GitLab. Signed-off-by: Simon

[XEN PATCH 0/2] automation: avoid unnecessary analyses

2023-08-11 Thread Simone Ballarin
This series aims to reduce the analyses performed by the ECLAIR runner by avoiding some branches already excluded by other jobs and requiring analyses on people/.* to be manually triggered. Simone Ballarin (2): automation: avoid pipelines on specific branches automation/eclair: avoid

Re: [XEN PATCH 2/2] automation/eclair: avoid unintentional ECLAIR analysis

2023-08-11 Thread Simone Ballarin
On 12/08/2023 00:04, Stefano Stabellini wrote: On Fri, 11 Aug 2023, Simone Ballarin wrote: With this patch, ECLAIR jobs will need to be manually started for "people/.*" pipelines. This avoids occupying the runner on analyzes that might not be used by developers. If developers want

[XEN PATCH 02/13] AMD/IOMMU: fixed violations of MISRA C:2012 Rule 7.2

2023-06-20 Thread Simone Ballarin
xplicitly state when an integer constant is represented in an unsigned type. For homogeneity, I also added the "U" suffix in some cases that the tool didn't report as violations. Signed-off-by: Simone Ballarin --- xen/drivers/passthrough/amd/iommu-defs.h | 122 +++-

[XEN PATCH 07/13] xen/x86: fixed violations of MISRA C:2012 Rule 7.2

2023-06-20 Thread Simone Ballarin
xplicitly state when an integer constant is represented in an unsigned type. For homogeneity, I also added the "U" suffix in some cases that the tool didn't report as violations. Signed-off-by: Simone Ballarin --- xen/arch/x86/cpu/vpmu_intel.c | 4 ++-- xen/arch/x86/hvm/

[XEN PATCH 05/13] xen/common: fixed violations of MISRA C:2012 Rule 7.2

2023-06-20 Thread Simone Ballarin
xplicitly state when an integer constant is represented in an unsigned type. Signed-off-by: Simone Ballarin --- xen/common/device_tree.c| 4 ++-- xen/include/xen/libfdt/fdt.h| 2 +- xen/include/xen/libfdt/libfdt.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git

[XEN PATCH 10/13] xen/x86: fixed violations of MISRA C:2012 Rule 7.2

2023-06-20 Thread Simone Ballarin
xplicitly state when an integer constant is represented in an unsigned type. For homogeneity, I also added the "U" suffix in some cases that the tool didn't report as violations. Signed-off-by: Simone Ballarin --- xen/arch/x86/monitor.c | 6 +++--- 1 file changed, 3 insertions(+)

[XEN PATCH 11/13] xen/vpci: fixed violations of MISRA C:2012 Rule 7.2

2023-06-20 Thread Simone Ballarin
xplicitly state when an integer constant is represented in an unsigned type. Signed-off-by: Simone Ballarin --- xen/drivers/vpci/msi.c | 2 +- xen/drivers/vpci/msix.c | 2 +- xen/drivers/vpci/vpci.c | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/xen/drivers/v

[XEN PATCH 03/13] xen/x86: fixed violations of MISRA C:2012 Rule 7.2

2023-06-20 Thread Simone Ballarin
xplicitly state when an integer constant is represented in an unsigned type. Signed-off-by: Simone Ballarin --- xen/arch/x86/hvm/svm/asid.c | 2 +- xen/arch/x86/hvm/svm/svm.c | 8 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/xen/arch/x86/hvm/svm/asid.c b/xen/

[XEN PATCH 06/13] xen/efi: fixed violations of MISRA C:2012 Rule 7.2

2023-06-20 Thread Simone Ballarin
xplicitly state when an integer constant is represented in an unsigned type. For homogeneity, I also added the "U" suffix in some cases that the tool didn't report as violations. Signed-off-by: Simone Ballarin --- xen/arch/x86/include/asm/x86_64/efibind.h | 10 +- xen/c

[XEN PATCH 01/13] xen/x86: fixed violations of MISRA C:2012 Rule 7.2

2023-06-20 Thread Simone Ballarin
xplicitly state when an integer constant is represented in an unsigned type. For homogeneity, I also added the "U" suffix in some cases that the tool didn't report as violations. Signed-off-by: Simone Ballarin --- xen/arch/x86/acpi/cpufreq/powernow.c | 14 +++--- xen

[XEN PATCH 04/13] xen/arm: fixed violations of MISRA C:2012 Rule 7.2

2023-06-20 Thread Simone Ballarin
xplicitly state when an integer constant is represented in an unsigned type. For homogeneity, I also added the "U" suffix in some cases that the tool didn't report as violations. Signed-off-by: Simone Ballarin --- xen/arch/arm/domain_build.c | 2 +- xen/arch/arm/efi

[XEN PATCH 08/13] xen/pci: fixed violations of MISRA C:2012 Rule 7.2

2023-06-20 Thread Simone Ballarin
xplicitly state when an integer constant is represented in an unsigned type. For homogeneity, I also added the "U" suffix in some cases that the tool didn't report as violations. Signed-off-by: Simone Ballarin --- xen/drivers/passthrough/pci.c | 4 ++-- 1 file changed, 2

[XEN PATCH 12/13] xen/x86: fixed violations of MISRA C:2012 Rule 7.2

2023-06-20 Thread Simone Ballarin
xplicitly state when an integer constant is represented in an unsigned type. For homogeneity, I also added the "U" suffix in some cases that the tool didn't report as violations. Signed-off-by: Simone Ballarin --- xen/arch/x86/apic.c | 2 +- xen/arch/x86

[XEN PATCH 00/13] xen: fixed violations of MISRA C:2012 Rule 7.2

2023-06-20 Thread Simone Ballarin
From: Gianluca Luparini The xen sources contains violations of MISRA C:2012 Rule 7.2 whose headline states: "A "u" or "U" suffix shall be applied to all integer constants that are represented in an unsigned type". These violations are caused by the missing "u" or "U" suffix in unsigned intege

[XEN PATCH 13/13] xen: fixed violations of MISRA C:2012 Rule 7.2

2023-06-20 Thread Simone Ballarin
xplicitly state when an integer constant is represented in an unsigned type. For homogeneity, I also added the "U" suffix in some cases that the tool didn't report as violations. Signed-off-by: Simone Ballarin --- xen/common/gunzip.c | 2 +- xen/common/xmalloc_tlsf.c

[XEN PATCH 09/13] xen/public: fixed violations of MISRA C:2012 Rule 7.2

2023-06-20 Thread Simone Ballarin
xplicitly state when an integer constant is represented in an unsigned type. For homogeneity, I also added the "U" suffix in some cases that the tool didn't report as violations. Signed-off-by: Simone Ballarin --- xen/include/public/io/ring.h | 10 +- 1 file changed, 5

Re: [XEN PATCH 04/13] xen/arm: fixed violations of MISRA C:2012 Rule 7.2

2023-06-20 Thread Simone Ballarin
Hi, Il giorno mar 20 giu 2023 alle ore 13:03 Julien Grall ha scritto: > Hi, > > On 20/06/2023 11:34, Simone Ballarin wrote: > > From: Gianluca Luparini > > Is this person the original author of this patch? If so... > > > > > The xen sources contains viola

Re: [XEN PATCH 13/13] xen: fixed violations of MISRA C:2012 Rule 7.2

2023-06-20 Thread Simone Ballarin
Hi, Il giorno mar 20 giu 2023 alle ore 15:20 Jan Beulich ha scritto: > On 20.06.2023 12:35, Simone Ballarin wrote: > > --- a/xen/common/gunzip.c > > +++ b/xen/common/gunzip.c > > @@ -11,7 +11,7 @@ static unsigned char *__initdata window; > > static memptr __initdat

Re: [XEN PATCH 05/13] xen/common: fixed violations of MISRA C:2012 Rule 7.2

2023-06-21 Thread Simone Ballarin
Il giorno mar 20 giu 2023 alle ore 14:43 Jan Beulich ha scritto: > On 20.06.2023 12:34, Simone Ballarin wrote: > > From: Gianluca Luparini > > > > The xen sources contains violations of MISRA C:2012 Rule 7.2 whose > headline states: > > "A "u"

Re: [XEN PATCH 07/13] xen/x86: fixed violations of MISRA C:2012 Rule 7.2

2023-06-21 Thread Simone Ballarin
Il giorno mar 20 giu 2023 alle ore 14:51 Jan Beulich ha scritto: > On 20.06.2023 12:34, Simone Ballarin wrote: > > --- a/xen/arch/x86/cpu/vpmu_intel.c > > +++ b/xen/arch/x86/cpu/vpmu_intel.c > > @@ -950,10 +950,10 @@ const struct arch_vpmu_ops *__init &

Re: [XEN PATCH 09/13] xen/public: fixed violations of MISRA C:2012 Rule 7.2

2023-06-21 Thread Simone Ballarin
Hi, Il giorno mar 20 giu 2023 alle ore 15:00 Jan Beulich ha scritto: > On 20.06.2023 12:35, Simone Ballarin wrote: > > --- a/xen/include/public/io/ring.h > > +++ b/xen/include/public/io/ring.h > > @@ -36,11 +36,11 @@ > > typedef unsigned int RING_IDX; > >

Re: [XEN PATCH 06/13] xen/efi: fixed violations of MISRA C:2012 Rule 7.2

2023-06-21 Thread Simone Ballarin
Il giorno mer 21 giu 2023 alle ore 09:06 Jan Beulich ha scritto: > On 20.06.2023 22:56, Stefano Stabellini wrote: > > On Tue, 20 Jun 2023, Jan Beulich wrote: > >> On 20.06.2023 12:34, Simone Ballarin wrote: > >>> From: Gianluca Luparini > >>> > >&

Re: [XEN PATCH 02/13] AMD/IOMMU: fixed violations of MISRA C:2012 Rule 7.2

2023-06-21 Thread Simone Ballarin
Il giorno mar 20 giu 2023 alle ore 22:41 Stefano Stabellini < sstabell...@kernel.org> ha scritto: > On Tue, 20 Jun 2023, Luca Fancellu wrote: > > > On 20 Jun 2023, at 13:39, Jan Beulich wrote: > > > > > > On 20.06.2023 12:34, Simone Ballarin wrote: > >

[XEN PATCH v2 02/13] AMD/IOMMU: fix violations of MISRA C:2012 Rule 7.2

2023-07-05 Thread Simone Ballarin
als with unsigned type and also to other literals used in the same contexts or near violations, when their positive nature is immediately clear. The latter changes are done for the sake of uniformity. Signed-off-by: Simone Ballarin Signed-off-by: Gianluca Luparini Acked-by: Stefano Stabellini ---

[XEN PATCH v2 00/13] xen: fix violations of MISRA C:2012 Rule 7.2

2023-07-05 Thread Simone Ballarin
From: Gianluca Luparini The xen sources contains violations of MISRA C:2012 Rule 7.2 whose headline states: "A 'u' or 'U' suffix shall be applied to all integer constants that are represented in an unsigned type". These violations are caused by the missing "u" or "U" suffix in unsigned integer c

[XEN PATCH v2 05/13] xen/device-tree: fix violations of MISRA C:2012 Rule 7.2

2023-07-05 Thread Simone Ballarin
als with unsigned type and also to other literals used in the same contexts or near violations, when their positive nature is immediately clear. The latter changes are done for the sake of uniformity. Signed-off-by: Simone Ballarin Signed-off-by: Gianluca Luparini --- Changes in v2: - change commi

[XEN PATCH v2 04/13] xen/arm: fix violations of MISRA C:2012 Rule 7.2

2023-07-05 Thread Simone Ballarin
als with unsigned type and also to other literals used in the same contexts or near violations, when their positive nature is immediately clear. The latter changes are done for the sake of uniformity. Signed-off-by: Simone Ballarin Signed-off-by: Gianluca Luparini --- Changes in v2: - minor change

[XEN PATCH v2 01/13] x86/cpufreq: fix violations of MISRA C:2012 Rule 7.2

2023-07-05 Thread Simone Ballarin
als with unsigned type and also to other literals used in the same contexts or near violations, when their positive nature is immediately clear. The latter changes are done for the sake of uniformity. Signed-off-by: Simone Ballarin Signed-off-by: Gianluca Luparini --- Changes in v2: - change commit

[XEN PATCH v2 08/13] xen/pci: fix violations of MISRA C:2012 Rule 7.2

2023-07-05 Thread Simone Ballarin
als with unsigned type and also to other literals used in the same contexts or near violations, when their positive nature is immediately clear. The latter changes are done for the sake of uniformity. Signed-off-by: Simone Ballarin Signed-off-by: Gianluca Luparini Reviewed-by: Stefano Stabellini ---

[XEN PATCH v2 07/13] x86/vmx: fix violations of MISRA C:2012 Rule 7.2

2023-07-05 Thread Simone Ballarin
als with unsigned type and also to other literals used in the same contexts or near violations, when their positive nature is immediately clear. The latter changes are done for the sake of uniformity. Signed-off-by: Simone Ballarin Signed-off-by: Gianluca Luparini --- Changes in v2: - minor change

[XEN PATCH v2 03/13] x86/svm: fix violations of MISRA C:2012 Rule 7.2

2023-07-05 Thread Simone Ballarin
als with unsigned type and also to other literals used in the same contexts or near violations, when their positive nature is immediately clear. The latter changes are done for the sake of uniformity. Signed-off-by: Simone Ballarin Signed-off-by: Gianluca Luparini Reviewed-by: Stefano Stabellini ---

  1   2   3   4   >