[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v3 0/3] x86: Add in-scope files under cpu/ to MISRA scans


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>
  • Date: Thu, 26 Nov 2026 16:53:58 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=BYJLPjdOIwxUYhOMlT67601q1Td3VYEJotc+XBZ1ZjQ=; b=D26B2AWAdEonXsKX+w+ejLjwyWbr266UwQp4hGJcj4JdyNoNpUh9XZFSrFFEyxg4ew4odzE+qp+1aN/yPtSyimtwuk62kI7/p2WK+36nGc31BmBlFl1cZ37F7E4yU7BzRGZRQGeXyonERHdBkU1EZ4zD3Oud0uzvuCIBSZkWfoRHNHs03vvfsDIRjIprANkHvUXUfDNMjJSNIpAFYzDrqrBAP4/PAATND49QNAiWEoNEA2qXnCukZfFsGEBZ7NxOdwgkyRYwKtG1fXAFzyrsiB++NB2y2VGkyjFFEYdiYvm++1UQXTXWomIfVfQ7E8+IVBZjy3/BpiWMvch8cJ8f6w==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Hovx5AuK3s9xpTf1Yt4HE8jlsPCHTLUSA0KrOg/z/E0DJIBSl0KocNzTY5Qg+Nf8kkmip65l9OHTVLFh7dFmzPtdfpq6G02QZq1yrYG48bEyahXiiFHDVKvzOUvuP8XlFdMn+TG8+Bxbd1pixn3eATwmqo/u20aamfv6SK8xUNUA6uPoD3j0tJ7pejzHyn1y8ttGDM53egoHm9ZU5q7Z6szgZed/dW0Ew2/c2Af9o39vC3GjREtEvpmNjhtawjtuhFr9OKIWAgJrkc9dvFFZqMXmtZg09EovExvSQ0D4xhgQLp/DAYxspHA9iiYzR0xzTklTXbEYKKcmomhUHzar6w==
  • Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=amd.com header.i="@amd.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck"
  • Cc: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger@xxxxxxxxxxxxxx>, Teddy Astie <teddy.astie@xxxxxxxxxx>, Jason Andryuk <jason.andryuk@xxxxxxx>, "Nicola Vetrini" <nicola.vetrini@xxxxxxxxxxx>, Doug Goldstein <cardoe@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, "Julien Grall" <julien@xxxxxxx>
  • Delivery-date: Thu, 26 Nov 2026 15:54:37 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Hi,

v3:

  * Bring back Fam12h
  * Fix off by one error in Fam12h handling inside errata 383

v2: 
https://lore.kernel.org/xen-devel/20261119144453.529009-1-alejandro.garciavallejo@xxxxxxx/
v1: 
https://lore.kernel.org/xen-devel/20261118171758.1125066-1-alejandro.garciavallejo@xxxxxxx/

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

Cheers,
Alejandro

Alejandro Vallejo (3):
  x86/amd: Fix off by one error in Fam12h range of 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                | 66 +++++++------------
 xen/arch/x86/x86_emulate/fpu.c                |  7 +-
 xen/arch/x86/x86_emulate/x86_emulate.c        |  5 --
 9 files changed, 32 insertions(+), 138 deletions(-)


base-commit: 13d4a6776b931481984e0c1caf5a228ace3ec701
-- 
2.43.0




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.