All of lore.kernel.org
 help / color / mirror / Atom feed
* [XEN PATCH v6 0/7] xen/x86: address violations of MISRA C:2012 Rule 7.2
@ 2023-09-12 15:38 Simone Ballarin
  2023-09-12 15:38 ` [XEN PATCH v6 1/7] x86/vmx: " Simone Ballarin
                   ` (6 more replies)
  0 siblings, 7 replies; 19+ messages in thread
From: Simone Ballarin @ 2023-09-12 15:38 UTC (permalink / raw)
  To: xen-devel
  Cc: consulting, sstabellini, Simone Ballarin, Jun Nakajima,
	Kevin Tian, Jan Beulich, Andrew Cooper, Roger Pau Monné,
	Wei Liu

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/arch/x86/hvm/hypercall.c:132.17-132.26
if ( (eax & 0x80000000) && is_viridian_domain(currd) )

If a rule is not met, changes are needed in order to achieve compliance.
The patches in this series achieve compliance for MISRA C:2012 Rule 7.2 by
adding the 'U' suffix to integers literals 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.

This series splits "xen/x86: address violations of MISRA C:2012 Rule 7.2 (v5)"
in several patches, and fixes some issues in v5.

Gianluca Luparini (1):
  x86/vmx: address violations of MISRA C:2012 Rule 7.2

Simone Ballarin (6):
  x86/hvm: address violations of MISRA C:2012 Rule 7.2
  x86/asm: address violations of MISRA C:2012 Rule 7.2
  xen/lib: address violations of MISRA C:2012 Rule 7.2
  xen/x86: address violations of MISRA C:2012 Rule 7.2
  xen/mcheck: address violations of MISRA C:2012 Rule 7.2
  x86/efi: address violations of MISRA C:2012 Rule 7.2

 xen/arch/x86/apic.c                     |   2 +-
 xen/arch/x86/cpu-policy.c               |  18 +--
 xen/arch/x86/cpu/mcheck/mce-apei.c      |   4 +-
 xen/arch/x86/cpu/vpmu_intel.c           |   2 +-
 xen/arch/x86/cpuid.c                    |   8 +-
 xen/arch/x86/efi/efi-boot.h             |   6 +-
 xen/arch/x86/extable.c                  |   2 +-
 xen/arch/x86/hvm/hypercall.c            |   2 +-
 xen/arch/x86/hvm/pmtimer.c              |   4 +-
 xen/arch/x86/hvm/stdvga.c               |  32 ++---
 xen/arch/x86/hvm/vlapic.c               |   6 +-
 xen/arch/x86/hvm/vmx/vmcs.c             |   6 +-
 xen/arch/x86/hvm/vmx/vvmx.c             |   8 +-
 xen/arch/x86/include/asm/apicdef.h      |   2 +-
 xen/arch/x86/include/asm/config.h       |   2 +-
 xen/arch/x86/include/asm/hpet.h         |   2 +-
 xen/arch/x86/include/asm/hvm/trace.h    |   4 +-
 xen/arch/x86/include/asm/hvm/vioapic.h  |   2 +-
 xen/arch/x86/include/asm/hvm/vmx/vmcs.h |  84 +++++------
 xen/arch/x86/include/asm/hvm/vmx/vmx.h  |  16 +--
 xen/arch/x86/include/asm/msi.h          |   2 +-
 xen/arch/x86/include/asm/msr-index.h    | 182 ++++++++++++------------
 xen/arch/x86/include/asm/pci.h          |   8 +-
 xen/arch/x86/include/asm/x86-defns.h    |  22 +--
 xen/arch/x86/percpu.c                   |   2 +-
 xen/arch/x86/psr.c                      |   2 +-
 xen/arch/x86/spec_ctrl.c                |  12 +-
 xen/lib/x86/cpuid.c                     |   8 +-
 xen/lib/x86/policy.c                    |   2 +-
 29 files changed, 226 insertions(+), 226 deletions(-)

-- 
2.34.1



^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2023-09-28 12:02 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-12 15:38 [XEN PATCH v6 0/7] xen/x86: address violations of MISRA C:2012 Rule 7.2 Simone Ballarin
2023-09-12 15:38 ` [XEN PATCH v6 1/7] x86/vmx: " Simone Ballarin
2023-09-12 15:38 ` [XEN PATCH v6 2/7] x86/hvm: " Simone Ballarin
2023-09-13  1:28   ` Stefano Stabellini
2023-09-13  9:44   ` Jan Beulich
2023-09-28 11:11     ` Simone Ballarin
2023-09-28 12:01       ` Jan Beulich
2023-09-28 12:01         ` Simone Ballarin
2023-09-12 15:39 ` [XEN PATCH v6 3/7] x86/asm: " Simone Ballarin
2023-09-13  9:49   ` Jan Beulich
2023-09-12 15:39 ` [XEN PATCH v6 4/7] xen/lib: " Simone Ballarin
2023-09-12 16:07   ` Jan Beulich
2023-09-12 15:39 ` [XEN PATCH v6 5/7] xen/x86: " Simone Ballarin
2023-09-13  1:52   ` Stefano Stabellini
2023-09-13  9:53   ` Jan Beulich
2023-09-12 15:39 ` [XEN PATCH v6 6/7] xen/mcheck: " Simone Ballarin
2023-09-12 16:06   ` Jan Beulich
2023-09-12 15:39 ` [XEN PATCH v6 7/7] x86/efi: " Simone Ballarin
2023-09-12 16:08   ` Jan Beulich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.