From: Simone Ballarin <simone.ballarin@bugseng.com>
To: Jan Beulich <jbeulich@suse.com>
Cc: consulting@bugseng.com, "Jun Nakajima" <jun.nakajima@intel.com>,
"Kevin Tian" <kevin.tian@intel.com>,
"Andrew Cooper" <andrew.cooper3@citrix.com>,
"Roger Pau Monné" <roger.pau@citrix.com>, "Wei Liu" <wl@xen.org>,
"Paul Durrant" <paul@xen.org>,
"Stefano Stabellini" <sstabellini@kernel.org>,
xen-devel@lists.xenproject.org
Subject: Re: [XEN PATCH 0/4] xen: address violations of MISRA C:2012 Rule 7.2
Date: Thu, 10 Aug 2023 09:27:23 +0200 [thread overview]
Message-ID: <a660e852cbe9c2f67904ff01f6cb3abd@bugseng.com> (raw)
In-Reply-To: <8da9b4fe-3109-3a5e-9bc6-15fccc13a8f3@suse.com>
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.ballarin@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 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.
>>>
>>> Gianluca Luparini (4):
>>> x86/vmx: address violations of MISRA C:2012 Rule 7.2
>>> xen/vpci: address violations of MISRA C:2012 Rule 7.2
>>> x86/viridian: address violations of MISRA C:2012 Rule 7.2
>>> xen/x86: 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 | 50 +++---
>>> xen/arch/x86/hvm/viridian/viridian.c | 2 +-
>>> 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/guest/hyperv-tlfs.h | 28 +--
>>> 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 | 180
>>> +++++++++----------
>>> xen/arch/x86/include/asm/pci.h | 8 +-
>>> xen/arch/x86/include/asm/x86-defns.h | 24 +--
>>> xen/arch/x86/percpu.c | 2 +-
>>> xen/arch/x86/psr.c | 2 +-
>>> xen/arch/x86/spec_ctrl.c | 8 +-
>>> xen/arch/x86/x86_64/pci.c | 2 +-
>>> xen/arch/x86/x86_emulate/x86_emulate.h | 2 +-
>>> xen/drivers/vpci/msi.c | 2 +-
>>> xen/drivers/vpci/msix.c | 2 +-
>>> xen/drivers/vpci/vpci.c | 6 +-
>>> xen/lib/x86/cpuid.c | 8 +-
>>> xen/lib/x86/policy.c | 2 +-
>>> 36 files changed, 255 insertions(+), 255 deletions(-)
>>>
>>> --
>>> 2.34.1
>>>
>>>
>> Hi all,
>> the entire series has not received yet any feedback or Acked-by.
>> I would kindly ask if it is possible to have at least some feedback
>
> I did reply to patch 4 on July 27th. For patch 2, Roger is on PTO for
> another week and a half.
>
> Jan
Thanks for the information.
--
Simone Ballarin, M.Sc.
Field Application Engineer, BUGSENG (https://bugseng.com)
prev parent reply other threads:[~2023-08-10 7:27 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-26 11:03 [XEN PATCH 0/4] xen: address violations of MISRA C:2012 Rule 7.2 Simone Ballarin
2023-07-26 11:03 ` [XEN PATCH v4 1/4] x86/vmx: " Simone Ballarin
2023-08-24 10:28 ` Nicola Vetrini
2023-08-24 22:04 ` Stefano Stabellini
2023-08-28 10:11 ` Simone Ballarin
2023-07-26 11:03 ` [XEN PATCH v4 2/4] xen/vpci: " Simone Ballarin
2023-08-24 10:40 ` Nicola Vetrini
2023-08-24 22:05 ` Need Ack, " Stefano Stabellini
2023-08-24 12:20 ` Roger Pau Monné
2023-08-24 22:05 ` Stefano Stabellini
2023-07-26 11:03 ` [XEN PATCH v4 3/4] x86/viridian: " Simone Ballarin
2023-08-24 10:34 ` Nicola Vetrini
2023-08-24 22:03 ` Need Ack, " Stefano Stabellini
2023-07-26 11:03 ` [XEN PATCH v4 4/4] xen/x86: " Simone Ballarin
2023-07-27 12:15 ` Jan Beulich
2023-07-26 12:02 ` [XEN PATCH 0/4] xen: " Jan Beulich
2023-07-26 12:33 ` Simone Ballarin
2023-08-09 8:58 ` Simone Ballarin
2023-08-09 9:15 ` Jan Beulich
2023-08-10 7:27 ` Simone Ballarin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a660e852cbe9c2f67904ff01f6cb3abd@bugseng.com \
--to=simone.ballarin@bugseng.com \
--cc=andrew.cooper3@citrix.com \
--cc=consulting@bugseng.com \
--cc=jbeulich@suse.com \
--cc=jun.nakajima@intel.com \
--cc=kevin.tian@intel.com \
--cc=paul@xen.org \
--cc=roger.pau@citrix.com \
--cc=sstabellini@kernel.org \
--cc=wl@xen.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.