Hi,
v1: https://lore.kernel.org/xen-devel/20261118171758.1125066-1-alejandro.garciavallejo@amd.com/
pipeline: https://gitlab.com/xen-project/people/agvallejo/xen/-/pipelines/3089539179
(slightly different. fpu.c has different macros, but functionally identical)
v2:
I've reworked the cpu_has_amd_erratum() function into small helpers and
brought the 383 erratum in line with Linux. It turns out a mistake was
made when merging it originally. OSVW is gone and bloat-o-meter reports
200 bytes of net code reduction.
Original cover letter:
The files under cpu/ are excluded from MISRA scans due to their Linux
provenance but they aren't kept in close sync. At best they get
semiregular updates (mwait_idle.c), but most often the files grow with
Xen specifics bops that get a free pass on MISRA scans merely due to
colocation with ancient Linux code. Some files just were never part of
Linux (hygon.c) to begin with, which makes the blanket exclusion even
less credible.
This series brings everything under the MISRA scan umbrella, with the
surprisingly few fixes involved.
Alejandro Vallejo (3):
x86/amd: Consider only Fam10h affected by erratum 383
x86/amd: Drop cpu_has_amd_erratum()
eclair/x86: Scan in-scope files inside cpu/
.../eclair_analysis/ECLAIR/deviations.ecl | 3 -
docs/misra/exclude-list.json | 36 -----------
xen/arch/x86/cpu/amd.c | 47 +-------------
xen/arch/x86/domain.c | 2 +-
xen/arch/x86/hvm/svm/asid.c | 2 +-
xen/arch/x86/hvm/svm/svm.c | 2 +-
xen/arch/x86/include/asm/amd.h | 62 ++++++-------------
xen/arch/x86/x86_emulate/fpu.c | 7 +--
xen/arch/x86/x86_emulate/x86_emulate.c | 5 --
9 files changed, 27 insertions(+), 139 deletions(-)
base-commit: 92ddcda17fb00020c6215d51df4c6a25d5eb0b5e
--
2.43.0