From patchwork Tue Sep 10 10:08:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Federico Serafini X-Patchwork-Id: 13798258 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EFBC9ECE582 for ; Tue, 10 Sep 2024 10:09:26 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.795232.1204457 (Exim 4.92) (envelope-from ) id 1snxoC-0006xI-Kq; Tue, 10 Sep 2024 10:09:16 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 795232.1204457; Tue, 10 Sep 2024 10:09:16 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1snxoC-0006xB-Hr; Tue, 10 Sep 2024 10:09:16 +0000 Received: by outflank-mailman (input) for mailman id 795232; Tue, 10 Sep 2024 10:09:15 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1snxoB-0006hI-2c for xen-devel@lists.xenproject.org; Tue, 10 Sep 2024 10:09:15 +0000 Received: from support.bugseng.com (mail.bugseng.com [162.55.131.47]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id bacea9e2-6f5c-11ef-a0b5-8be0dac302b0; Tue, 10 Sep 2024 12:09:13 +0200 (CEST) Received: from truciolo.homenet.telecomitalia.it (host-79-37-206-90.retail.telecomitalia.it [79.37.206.90]) by support.bugseng.com (Postfix) with ESMTPSA id 1C2E44EE07A5; Tue, 10 Sep 2024 12:09:12 +0200 (CEST) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: bacea9e2-6f5c-11ef-a0b5-8be0dac302b0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bugseng.com; s=mail; t=1725962952; bh=G0jdHtZed4xaMPD2WIEk/H/LWyB972FH9uIOpA1QYoU=; h=From:To:Cc:Subject:Date:From; b=W5WjVn2r8H2s88QVK5XZacvOWcxkMe7H7xswAKGMRpqMmVVK03AUhg5fw47Z9iNSn VLFP13zCz34ekITqYAROLk0ml88dqxZE/GkOXzTVTMBAjYdvaRmJqjKCEkMKPWWITG rndAqgCOvSZse5SFPQ6vjSDlBjK6obLGA7yW08FXJkNJgB/n+G09x79upPZuUKKlQX BVB11Fcm3xHj3JxViJJBGM6rKzOD4uTEyg+Fjn/Bf9b8ImQEkkShiDp0xe5hRCF2uQ Il0NRpILEbFqS+pWDt5G6TSBFq1scaaXizftVx91/PpvCfJeKV3hddp7zZts5NGPt5 rPTDj48KB+uTQ== From: Federico Serafini To: xen-devel@lists.xenproject.org Cc: consulting@bugseng.com, Federico Serafini , Jan Beulich , Andrew Cooper , =?utf-8?q?Roger_Pau_Monn=C3=A9?= , Tamas K Lengyel , Alexandru Isaila , Petre Pircalabu , "Daniel P. Smith" , =?utf-8?q?Marek_Marczykow?= =?utf-8?q?ski-G=C3=B3recki?= Subject: [XEN PATCH 00/12] x86: address violations of MISRA C Rule 16.3 Date: Tue, 10 Sep 2024 12:08:52 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 This patch series addresses violations of Rule 16.3 on the x86 code. If all the 12 patches will be committed, only 4 violations will be left: these are under x86_emulate and involve some fallthrough cases. I'll wait for instructions from x86 maintainers about the right "format" to make the fallthrough intention explicit (i.e., a comment or the fallthrough keyword that is not defined in x86-emulate.h at the moment). Federico Serafini (12): x86/psr: address violation of MISRA C Rule 16.3 x86/time: address violations of MISRA C Rule 16.3 x86/vm_event: address violation of MISRA C Rule 16.3 x86/hypercall: address violations of MISRA C Rule 16.3 x86/monitor: address violation of MISRA C Rule 16.3 x86/mm: address violations of MISRA C Rule 16.3 x86/mmcfg: address violation of MISRA C Rule 16.3 x86/emul: add defensive code x86/emul: address violations of MISRA C Rule 16.3 efi: address violation of MISRA C Rule 16.3 xen/vpci: add defensive code xen/pci: address a violation of MISRA C Rule 16.3 xen/arch/x86/include/asm/hypercall.h | 4 ++-- xen/arch/x86/include/asm/monitor.h | 1 + xen/arch/x86/mm/guest_walk.c | 1 + xen/arch/x86/mm/hap/hap.c | 2 +- xen/arch/x86/mm/hap/nested_hap.c | 1 + xen/arch/x86/mm/paging.c | 2 +- xen/arch/x86/psr.c | 1 + xen/arch/x86/time.c | 2 ++ xen/arch/x86/vm_event.c | 1 + xen/arch/x86/x86_64/mmconfig-shared.c | 1 + xen/arch/x86/x86_emulate/fpu.c | 4 ++++ xen/arch/x86/x86_emulate/x86_emulate.c | 5 +++++ xen/common/efi/runtime.c | 2 +- xen/drivers/passthrough/pci.c | 4 +++- xen/drivers/vpci/msix.c | 4 ++++ 15 files changed, 29 insertions(+), 6 deletions(-)