From nobody Mon Nov 3 18:32:00 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=bugseng.com ARC-Seal: i=1; a=rsa-sha256; t=1725995202; cv=none; d=zohomail.com; s=zohoarc; b=d4Ysb48XGGMCstkWOO1J6Zrokq74Ke1zc1rQnNAj+Mlg0WWDXtwnKNhlzJu5ZAXAc0x1xGY5P31RQnNm+4FZ3OROLbeNfV1+sgh3lgx9NZITPPwarTdq7A7wbooF7HkdrGT4F5OziWDR6fpSBQ//kx7oDq9e5gamTrWF2L5sBLs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1725995202; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=LuqQwwBGM8HCX1AtGgOpBg3NhG9WBZVGKCN62+yi+ac=; b=XPD/bJqOQ8r9NFc7ZXfwoyRIOyLWGuX9Ek/BsHd4L3OvVEZrT4871WxJLad21o1bwgOJbgZ+0qb19kKz8+uq5LTq8GrkHag+UbHEQN0uEwxKEthRgf/JY3VfV1QHDq5vNsdET1DVGKZTQsHtjLRzy02XddQ5+Pap3YXjvabnDIw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1725995202221477.46434819048375; Tue, 10 Sep 2024 12:06:42 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.795995.1205519 (Exim 4.92) (envelope-from ) id 1so6Br-0006bT-7e; Tue, 10 Sep 2024 19:06:15 +0000 Received: by outflank-mailman (output) from mailman id 795995.1205519; Tue, 10 Sep 2024 19:06:15 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1so6Br-0006bM-58; Tue, 10 Sep 2024 19:06:15 +0000 Received: by outflank-mailman (input) for mailman id 795995; Tue, 10 Sep 2024 19:06:13 +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 1so6Bp-0006Mx-Kg for xen-devel@lists.xenproject.org; Tue, 10 Sep 2024 19:06:13 +0000 Received: from support.bugseng.com (mail.bugseng.com [162.55.131.47]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id bcef212e-6fa7-11ef-a0b5-8be0dac302b0; Tue, 10 Sep 2024 21:06:09 +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 8D5634EE07CE; Tue, 10 Sep 2024 21:06:08 +0200 (CEST) X-Outflank-Mailman: Message body and most headers restored to incoming version 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: bcef212e-6fa7-11ef-a0b5-8be0dac302b0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bugseng.com; s=mail; t=1725995168; bh=2hgBKwYohgvBFZOwcswNBiLDaYOqnK+3MTYLYQn89UY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MP9RpeK9lpYDz59Vg4QILJYM7ibJzYqqvouJUxMU1ai2gPfrqN3Vu6OOrrMVNio0S 9VbGgKR8ojkq8l/xEHW4jFxcm3WBYrZt2HEeZIv7dylgUJS6ElT57bvLvJ3KW0pOXw dfOcymW5jDKBnl9sYFYCf4tFBL1BiRROp8nto+JHSLogJw8vphcLsRITJ9Rx4Nv8yY zQgldko8dHtEZTqgkuQ5oelZPSfE1rdsJL8hOXcIw5MbnlKTEtX5DTlGeQKGSUwwll ww6Wj4YmqgeHP3TYEMVqfVd0IOUlyPGUC3tOcZIEHdhZFIafvV2cGc7rdRkV9jo8zz YjYx31kEXt1LA== From: Federico Serafini To: xen-devel@lists.xenproject.org Cc: consulting@bugseng.com, Federico Serafini , "Daniel P. Smith" , =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= , Jan Beulich , Andrew Cooper Subject: [XEN PATCH 1/3] EFI: address violations of MISRA C Rule 13.6 Date: Tue, 10 Sep 2024 21:06:00 +0200 Message-Id: <2e893e6e83fdfb24c5f9c4d2da59114cba9a1df8.1725994633.git.federico.serafini@bugseng.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @bugseng.com) X-ZM-MESSAGEID: 1725995202820116600 Content-Type: text/plain; charset="utf-8" Refactor the code to improve readability and address violations of MISRA C:2012 Rule 13.6 ("The operand of the `sizeof' operator shall not contain any expression which has potential side effect"). No functional change. Suggested-by: Andrew Cooper Signed-off-by: Federico Serafini --- xen/common/efi/runtime.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/xen/common/efi/runtime.c b/xen/common/efi/runtime.c index d03e5c90ce..acf08dcaa3 100644 --- a/xen/common/efi/runtime.c +++ b/xen/common/efi/runtime.c @@ -250,14 +250,20 @@ int efi_get_info(uint32_t idx, union xenpf_efi_info *= info) info->cfg.addr =3D __pa(efi_ct); info->cfg.nent =3D efi_num_ct; break; + case XEN_FW_EFI_VENDOR: + { + XEN_GUEST_HANDLE_PARAM(CHAR16) vendor_name =3D + guest_handle_cast(info->vendor.name, CHAR16); + if ( !efi_fw_vendor ) return -EOPNOTSUPP; + info->vendor.revision =3D efi_fw_revision; n =3D info->vendor.bufsz / sizeof(*efi_fw_vendor); - if ( !guest_handle_okay(guest_handle_cast(info->vendor.name, - CHAR16), n) ) + if ( !guest_handle_okay(vendor_name, n) ) return -EFAULT; + for ( i =3D 0; i < n; ++i ) { if ( __copy_to_guest_offset(info->vendor.name, i, @@ -267,6 +273,8 @@ int efi_get_info(uint32_t idx, union xenpf_efi_info *in= fo) break; } break; + } + case XEN_FW_EFI_MEM_INFO: for ( i =3D 0; i < efi_memmap_size; i +=3D efi_mdesc_size ) { --=20 2.34.1 From nobody Mon Nov 3 18:32:00 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=bugseng.com ARC-Seal: i=1; a=rsa-sha256; t=1725995198; cv=none; d=zohomail.com; s=zohoarc; b=L5DgOwHf+5URhAuI8IrApY11KCQfX9owEOrSXz08KyV3Wpqwhzzjqg6fQ4CFbTWPPPcpzcJ2glRCjfW9/EP2BAtfOIo8f7Cygccp6WzzCjbgk717rJh3Hrjp4eG7qz9NLGWnadxKH4K3PgX9wAL+PPzn91nfMr+8MJHUGCRz7UE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1725995198; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=YS73Krbo7LH2GIXQOmBDVUT69oYvhVQ6pSISTq8g3/8=; b=DXShKl7vz8OPhHqsi0T4RC/trh41Dw3P3EBh2G4eMJO8DzvR3NVUwap9PI68HZjFJ5VSc9GAKp4/pFSvhfr8RcaF1trswM95flYHryeKMWG4r9VJWs8fnKWvgnYrQ5mnIjPrZY22/S9YiVdTrl78Z23F5ALhusNgUyRjAJh1dEM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1725995198705815.7811789181554; Tue, 10 Sep 2024 12:06:38 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.795994.1205510 (Exim 4.92) (envelope-from ) id 1so6Bq-0006NH-0p; Tue, 10 Sep 2024 19:06:14 +0000 Received: by outflank-mailman (output) from mailman id 795994.1205510; Tue, 10 Sep 2024 19:06:13 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1so6Bp-0006NA-U9; Tue, 10 Sep 2024 19:06:13 +0000 Received: by outflank-mailman (input) for mailman id 795994; Tue, 10 Sep 2024 19:06:13 +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 1so6Bp-0006Mx-07 for xen-devel@lists.xenproject.org; Tue, 10 Sep 2024 19:06:13 +0000 Received: from support.bugseng.com (mail.bugseng.com [162.55.131.47]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id bd2e0ca5-6fa7-11ef-a0b5-8be0dac302b0; Tue, 10 Sep 2024 21:06:09 +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 0E3D54EE0CC2; Tue, 10 Sep 2024 21:06:09 +0200 (CEST) X-Outflank-Mailman: Message body and most headers restored to incoming version 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: bd2e0ca5-6fa7-11ef-a0b5-8be0dac302b0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bugseng.com; s=mail; t=1725995169; bh=SjszyG5fkNoEpRwDebb1oOfNsAFVzqhPDSqYKoO21ds=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pevzR3sVk6oF8JVme1Lpef7hxQO+15WRkRnNcZwcN0D01hPRqbrNVgSHOgQaeaQnX 8Xv7GPD+Y+ej5kM/IdIn7msKEsh7I8L2qk28ComxxPYzKWfxq9aI+HWqrb40F3eGyP kMSo5b+75XTZ9HbcE6Y5/N5c5AALE21NvMfvFcHgSP6VHXZNyvxmn0UaFcuxjU1oEe TRRFxRfSyR0BR4P5ZfxC4CS6Ta4zOCLIeo3JvBHTqy9nXHq/tvC0mEIdtt6bp1Kpok KLU1Cpdt4orxz2QbWrrPSCQPSoHaOD0/Hwyco444WTTf1mtcDI9BgPQxnf4pSaEbwd ouSjbtVwGwc7A== From: Federico Serafini To: xen-devel@lists.xenproject.org Cc: consulting@bugseng.com, Federico Serafini , Andrew Cooper , Jan Beulich , Julien Grall , Stefano Stabellini Subject: [XEN PATCH 2/3] xen/gnttab: address violations of MISRA C Rule 13.6 Date: Tue, 10 Sep 2024 21:06:01 +0200 Message-Id: <6dd66745505bea8f8730da297d521e842026d40b.1725994633.git.federico.serafini@bugseng.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @bugseng.com) X-ZM-MESSAGEID: 1725995200870116600 Content-Type: text/plain; charset="utf-8" Refactor the code to improve readability and address violations of MISRA C:2012 Rule 13.6 ("The operand of the `sizeof' operator shall not contain any expression which has potential side effect"). No functional change. Suggested-by: Andrew Cooper Signed-off-by: Federico Serafini --- xen/common/compat/grant_table.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/xen/common/compat/grant_table.c b/xen/common/compat/grant_tabl= e.c index 5ad0debf96..4342e573c5 100644 --- a/xen/common/compat/grant_table.c +++ b/xen/common/compat/grant_table.c @@ -78,12 +78,15 @@ int compat_grant_table_op( cmd_op =3D cmd; switch ( cmd_op ) { -#define CASE(name) \ - case GNTTABOP_##name: \ - if ( unlikely(!guest_handle_okay(guest_handle_cast(uop, \ - gnttab_##name##= _compat_t), \ - count)) ) \ - rc =3D -EFAULT; \ +#define CASE(name) \ + case GNTTABOP_ ## name: \ + { \ + XEN_GUEST_HANDLE_PARAM(gnttab_ ## name ## _compat_t) h =3D \ + guest_handle_cast(uop, gnttab_ ## name ## _compat_t); \ + \ + if ( unlikely(!guest_handle_okay(h, count)) ) \ + rc =3D -EFAULT; \ + } \ break =20 #ifndef CHECK_gnttab_map_grant_ref --=20 2.34.1 From nobody Mon Nov 3 18:32:00 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=bugseng.com ARC-Seal: i=1; a=rsa-sha256; t=1725995201; cv=none; d=zohomail.com; s=zohoarc; b=GGeFKUZT8L+0cPPUIDHqMY8EAkoWa1WzhHUHE8eeJdLCAoXKcl/3gqb6jGAWeYRr1lMUNz0pxI3at+90psecHQjDWUivqgYazAIgAqQUhmCGdqahs6Nk2nlAjFc8xC9sT/2ftHbQ0FTgUhkg99O/dwHs2bCrnaCr5gFJaxz+/qE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1725995201; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=US3O6PDW1Kl+E7HyqS/P4J8wy4oIy9t0zAAf6Fj3hvY=; b=cA+CVoVkVRmbaZysJ+S2Or6O7fVPV0VSYynw2BTnklU3yYGfgMSKmmF7mkXcOITkI7jmMY8/Y+ndAyaw3XZbhzfGtFJ5bph6WmWeceSzK8QkFhb+7KsdoOt/vMrHXEem8Twyn2kgKRStlI5Jx4aQ9gnO4LZnmpbvElKPWJ0PQEk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1725995201124390.57873999097194; Tue, 10 Sep 2024 12:06:41 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.795997.1205540 (Exim 4.92) (envelope-from ) id 1so6Bt-000775-Po; Tue, 10 Sep 2024 19:06:17 +0000 Received: by outflank-mailman (output) from mailman id 795997.1205540; Tue, 10 Sep 2024 19:06:17 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1so6Bt-00076s-Mp; Tue, 10 Sep 2024 19:06:17 +0000 Received: by outflank-mailman (input) for mailman id 795997; Tue, 10 Sep 2024 19:06: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 1so6Br-0006Mx-LD for xen-devel@lists.xenproject.org; Tue, 10 Sep 2024 19:06:15 +0000 Received: from support.bugseng.com (mail.bugseng.com [162.55.131.47]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id bd76932b-6fa7-11ef-a0b5-8be0dac302b0; Tue, 10 Sep 2024 21:06:10 +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 838DC4EE07CD; Tue, 10 Sep 2024 21:06:09 +0200 (CEST) X-Outflank-Mailman: Message body and most headers restored to incoming version 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: bd76932b-6fa7-11ef-a0b5-8be0dac302b0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bugseng.com; s=mail; t=1725995169; bh=q5mzpFQzwdwg96yKMBtbX1/P+X+oQ4B1AoLli8MGdLw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GbzXMgT2EVlfoUpwJDqBh7Jc08t+BSRw3MUzOmqKlAo1ImhMqHmKmklT4VrUq3DRL 8ZoddCwSSdw0Qm3fREIQykjP8l+teAVCBI2BvHD8hqKRNT2KtPcgbJUDCxC/FMM6S8 M/zNH710KJG6ypD6kEi542cmL0Ea4Ee8M0hUwRZAtottHPHKWRiZOnSMzoC7KlRS1N spC3aBdlpJ9J6Bd2kTXMEKN6dOSzhusSuqv4B0gMPjPabAR451WR7ulVMfneuGJXpy KXOYQgIFlicXyl7SqJM/xWxUERLpeWLq+P70/5/U5qyxaQu/2DzzCugxJfr5Olv4Df U54TQWB0pWwAw== From: Federico Serafini To: xen-devel@lists.xenproject.org Cc: consulting@bugseng.com, Federico Serafini , Simone Ballarin , Doug Goldstein , Stefano Stabellini Subject: [XEN PATCH 3/3] automation/eclair: tag Rule 13.6 as clean Date: Tue, 10 Sep 2024 21:06:02 +0200 Message-Id: <5d95cef297b3f18f96e9261394046b4c741486c9.1725994633.git.federico.serafini@bugseng.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @bugseng.com) X-ZM-MESSAGEID: 1725995202781116600 Content-Type: text/plain; charset="utf-8" Update ECLAIR configuration to consider Rule 13.6 as clean: introducing violations of this rule will cause a failure of the CI pipeline. Signed-off-by: Federico Serafini Acked-by: Stefano Stabellini --- automation/eclair_analysis/ECLAIR/tagging.ecl | 1 + 1 file changed, 1 insertion(+) diff --git a/automation/eclair_analysis/ECLAIR/tagging.ecl b/automation/ecl= air_analysis/ECLAIR/tagging.ecl index b8448938e6..76032b1fe1 100644 --- a/automation/eclair_analysis/ECLAIR/tagging.ecl +++ b/automation/eclair_analysis/ECLAIR/tagging.ecl @@ -60,6 +60,7 @@ MC3R1.R11.6|| MC3R1.R11.7|| MC3R1.R11.9|| MC3R1.R12.5|| +MC3R1.R13.6|| MC3R1.R14.1|| MC3R1.R14.3|| MC3R1.R14.4|| --=20 2.34.1