From nobody Mon Apr 29 14:19:25 2024 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=gmail.com Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1656428678836415.9985312893082; Tue, 28 Jun 2022 08:04:38 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.357163.585622 (Exim 4.92) (envelope-from ) id 1o6Ckv-0000WK-B7; Tue, 28 Jun 2022 15:03:57 +0000 Received: by outflank-mailman (output) from mailman id 357163.585622; Tue, 28 Jun 2022 15:03:57 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1o6Ckv-0000WB-66; Tue, 28 Jun 2022 15:03:57 +0000 Received: by outflank-mailman (input) for mailman id 357163; Tue, 28 Jun 2022 15:03:55 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1o6Ckt-0000FN-Gr for xen-devel@lists.xenproject.org; Tue, 28 Jun 2022 15:03:55 +0000 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [2a00:1450:4864:20::52b]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 86b8b540-f6f3-11ec-b725-ed86ccbb4733; Tue, 28 Jun 2022 17:03:54 +0200 (CEST) Received: by mail-ed1-x52b.google.com with SMTP id r18so10128764edb.9 for ; Tue, 28 Jun 2022 08:03:54 -0700 (PDT) Received: from uni.. (adsl-146.37.6.170.tellas.gr. [37.6.170.146]) by smtp.googlemail.com with ESMTPSA id k14-20020aa7c04e000000b00431962fe5d4sm9785589edo.77.2022.06.28.08.03.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jun 2022 08:03:51 -0700 (PDT) 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: 86b8b540-f6f3-11ec-b725-ed86ccbb4733 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=M0SruDIC7tILE6Tp9AaAgZ7Os1HI5vkvwVQqezZqtgw=; b=a4IZlozpkE6hL7/PA4FYmLFksQ8QRj59XbyHnYcG/KDI6EtbEBSe41T+C6emSXeJgv BfTlI83zKQhiWvbSM9ymqFnrLdR5yma/eMWMEUOiKBEhEVbpNhmTpNBqxYN2EtJzURJ+ 70SaXtg7+cbkyGwoWHL1kkd0wkcevobiB4jS1UEUbXkZVBN6cX1AiHG6zSINbbONExI0 w62IAShur36tUBhSqhzqy2c0xvNv+ZqSKJircS5eWgKmTsjv2KvVzU46bfYpSexMAA3r IZNDT5OdbzZhGSgtgLHwXipapVZ2KjyErSJeZUILqGjGjJavIlDJQuUOm1o5xgxqsg4L wmog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=M0SruDIC7tILE6Tp9AaAgZ7Os1HI5vkvwVQqezZqtgw=; b=HuNWgw3yV8LtD/NrXrM+p0cCBVxZYdbRmcOH6xXfrsJNveWW5laHmIRj3x9wsAUh4X 5EQjFrAFWyJnt/sOwcOIwJ31YTzSRWAs9Ph1YncCS7c8p17V4bESxsOlPx5kUgMSrx6L cGm6jptbxrY/Cqo3dGroOYFB8WJ1HFJkkCnbIyK2sVivEU2zmuG2ZMsHHfiYsnQqsLC6 MWByufLIHwYbwr/XF7bzlRbyTZlpm2+BSXMXMAtYnYErIhnapprJbimwBejH8Mfyk9ms TZsbXg00kfIvyjT7/HgpIlxa40peMyksp3v9Rx9ZwY6smUsSGl/YkDZabGYS//l/iQwE paEw== X-Gm-Message-State: AJIora8IurRIN48otfewLdTFkOs6muNNApz8vE4ygZdNuAM3JDL8TX4d tzARaKlJRnfm8nVN47Y3iyWTzfTkZso= X-Google-Smtp-Source: AGRyM1u3PNIN1RneM/j5WWwXSiJuUHYoy2v7tnHRb8olj21vskIYCn1u+vLDS7eueUqi14NxWAjQKw== X-Received: by 2002:a05:6402:50c7:b0:435:923b:9b23 with SMTP id h7-20020a05640250c700b00435923b9b23mr24377774edb.336.1656428632549; Tue, 28 Jun 2022 08:03:52 -0700 (PDT) From: Xenia Ragiadakou To: xen-devel@lists.xenproject.org Cc: Xenia Ragiadakou , Andrew Cooper , George Dunlap , Jan Beulich , Julien Grall , Stefano Stabellini , Wei Liu Subject: [PATCH v2 1/5] xen/common: page_alloc: Fix MISRA C 2012 Rule 8.7 violation Date: Tue, 28 Jun 2022 18:03:33 +0300 Message-Id: <20220628150337.8520-2-burzalodowa@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220628150337.8520-1-burzalodowa@gmail.com> References: <20220628150337.8520-1-burzalodowa@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1656428679945100005 Content-Type: text/plain; charset="utf-8" The variables page_offlined_list and page_broken_list are referenced only in page_alloc.c. Change their linkage from external to internal by adding the storage-class specifier static to their definitions. Also, this patch aims to resolve indirectly a MISRA C 2012 Rule 8.4 violati= on warning. Signed-off-by: Xenia Ragiadakou Reviewed-by: Jan Beulich --- Changes in v2: - replace the phrase "This patch aims to resolve indirectly a MISRA C 2012 Rule 8.4 violation warning." with "Also, this patch aims to resolve indirectly a MISRA C 2012 Rule 8.4 violation warning." xen/common/page_alloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/common/page_alloc.c b/xen/common/page_alloc.c index 000ae6b972..fe0e15429a 100644 --- a/xen/common/page_alloc.c +++ b/xen/common/page_alloc.c @@ -235,9 +235,9 @@ static unsigned int dma_bitsize; integer_param("dma_bits", dma_bitsize); =20 /* Offlined page list, protected by heap_lock. */ -PAGE_LIST_HEAD(page_offlined_list); +static PAGE_LIST_HEAD(page_offlined_list); /* Broken page list, protected by heap_lock. */ -PAGE_LIST_HEAD(page_broken_list); +static PAGE_LIST_HEAD(page_broken_list); =20 /************************* * BOOT-TIME ALLOCATOR --=20 2.34.1 From nobody Mon Apr 29 14:19:25 2024 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=gmail.com Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1656428683807107.78936987719135; Tue, 28 Jun 2022 08:04:43 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.357164.585632 (Exim 4.92) (envelope-from ) id 1o6Ckw-0000n5-Hl; Tue, 28 Jun 2022 15:03:58 +0000 Received: by outflank-mailman (output) from mailman id 357164.585632; Tue, 28 Jun 2022 15:03:58 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1o6Ckw-0000my-Eh; Tue, 28 Jun 2022 15:03:58 +0000 Received: by outflank-mailman (input) for mailman id 357164; Tue, 28 Jun 2022 15:03:57 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1o6Ckv-0000FN-82 for xen-devel@lists.xenproject.org; Tue, 28 Jun 2022 15:03:57 +0000 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [2a00:1450:4864:20::630]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 88320c78-f6f3-11ec-b725-ed86ccbb4733; Tue, 28 Jun 2022 17:03:56 +0200 (CEST) Received: by mail-ej1-x630.google.com with SMTP id d2so14637188ejy.1 for ; Tue, 28 Jun 2022 08:03:56 -0700 (PDT) Received: from uni.. (adsl-146.37.6.170.tellas.gr. [37.6.170.146]) by smtp.googlemail.com with ESMTPSA id k14-20020aa7c04e000000b00431962fe5d4sm9785589edo.77.2022.06.28.08.03.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jun 2022 08:03:55 -0700 (PDT) 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: 88320c78-f6f3-11ec-b725-ed86ccbb4733 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=b+7utVhDuej6MZ9OSVh+jkMKshxCgiL51GUsSj3Aeec=; b=L5ORSMiC91/FjooMk1FXAP4yFWISXTFt+a4ktt9OtGiEGdoYojrBDG3WEHZsmUgD5r Y8mb9aewBpupG1TOg1FDnboy75T6IPvVOv+6vR+ZJQ4juqNxZOiXB8Z9JgBl0mnTlwFv pI67qb8oF+5AbUhZj6oT/xJv3M+TSAtEMXpGNF1hZ1Txh4SfbOpbw845uQhc40Mdrl1n vwMhbmTWUrqwWCT39sQZd6+Y4VeL3WdTyNeJgarCmg4CkvPWEOGITr1AKEy4/YDTQLU6 KBXoUeG2/b/bD+fe+e4iR4NqkFpO4lpP1LmyyGM6mgYjWOXLOLTq+EidFCLhBCHsqKg1 FqvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=b+7utVhDuej6MZ9OSVh+jkMKshxCgiL51GUsSj3Aeec=; b=fnvY+Neh7VN1C7PLNe2FeyL0/A1ILnML4fX4k3fPEPqExiYhALtQkXuIJy0CY5kUB1 9Iwvd50Rtx9TaBGxwdmylqyva6D9tWPlYaWB7aD9OtlcZGeUw3LJnZLp8O3G+Us/8fCO RCvc0vC7MOQzbC9f9OTllVLB2eO9NY3IcLHnHFk+raX2SdLMyaKDy55O7vocZKFvARL1 638jiikVwgmX3iJNmO10jgwSQDhxH7TLs8uDi+67tekujfce8zY6sC26AqqQl6gbtVwB iTLxViQ7mYnvdxMuUGepM1HRNDfO9k89HaPXqon+Y9HYDhujGjZ66tcFCWVO79Xdi2rZ kdZQ== X-Gm-Message-State: AJIora/ySm3ae1cHNp27ClmRKbOTpbx3bbXWu1RLjUFGA/IrT1ce37yy uF4/2Z+847nWeOWkU2wPXq99QwOv1hU= X-Google-Smtp-Source: AGRyM1tYernbfqXZi265QLoSri62mY8O22St/fnHlQL+O98CzrHwXWmHU7CCC666D0UkR0jzWLPNww== X-Received: by 2002:a17:906:4482:b0:70a:19e3:d18a with SMTP id y2-20020a170906448200b0070a19e3d18amr18397947ejo.510.1656428635852; Tue, 28 Jun 2022 08:03:55 -0700 (PDT) From: Xenia Ragiadakou To: xen-devel@lists.xenproject.org Cc: Xenia Ragiadakou , Tamas K Lengyel , Alexandru Isaila , Petre Pircalabu , Jan Beulich Subject: [PATCH v2 2/5] xen/common: vm_event: Fix MISRA C 2012 Rule 8.7 violation Date: Tue, 28 Jun 2022 18:03:34 +0300 Message-Id: <20220628150337.8520-3-burzalodowa@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220628150337.8520-1-burzalodowa@gmail.com> References: <20220628150337.8520-1-burzalodowa@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1656428685824100001 Content-Type: text/plain; charset="utf-8" The function vm_event_wake() is referenced only in vm_event.c. Change the linkage of the function from external to internal by adding the storage-class specifier static to the function definition. Also, this patch aims to resolve indirectly a MISRA C 2012 Rule 8.4 violati= on warning. Signed-off-by: Xenia Ragiadakou Reviewed-by: Jan Beulich Reviewed-by: Stefano Stabellini --- Changes in v2: - replace the phrase "This patch aims to resolve indirectly a MISRA C 2012 Rule 8.4 violation warning." with "Also, this patch aims to resolve indirectly a MISRA C 2012 Rule 8.4 violation warning." xen/common/vm_event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/common/vm_event.c b/xen/common/vm_event.c index 0b99a6ea72..ecf49c38a9 100644 --- a/xen/common/vm_event.c +++ b/xen/common/vm_event.c @@ -173,7 +173,7 @@ static void vm_event_wake_queued(struct domain *d, stru= ct vm_event_domain *ved) * call vm_event_wake() again, ensuring that any blocked vCPUs will get * unpaused once all the queued vCPUs have made it through. */ -void vm_event_wake(struct domain *d, struct vm_event_domain *ved) +static void vm_event_wake(struct domain *d, struct vm_event_domain *ved) { if ( !list_empty(&ved->wq.list) ) vm_event_wake_queued(d, ved); --=20 2.34.1 From nobody Mon Apr 29 14:19:25 2024 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=gmail.com Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1656428677042287.73111727919866; Tue, 28 Jun 2022 08:04:37 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.357165.585644 (Exim 4.92) (envelope-from ) id 1o6Ckx-00013t-SP; Tue, 28 Jun 2022 15:03:59 +0000 Received: by outflank-mailman (output) from mailman id 357165.585644; Tue, 28 Jun 2022 15:03:59 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1o6Ckx-00013k-OT; Tue, 28 Jun 2022 15:03:59 +0000 Received: by outflank-mailman (input) for mailman id 357165; Tue, 28 Jun 2022 15:03:59 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1o6Ckx-0000FN-G0 for xen-devel@lists.xenproject.org; Tue, 28 Jun 2022 15:03:59 +0000 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [2a00:1450:4864:20::52b]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 89a1cdaa-f6f3-11ec-b725-ed86ccbb4733; Tue, 28 Jun 2022 17:03:58 +0200 (CEST) Received: by mail-ed1-x52b.google.com with SMTP id r18so10128764edb.9 for ; Tue, 28 Jun 2022 08:03:58 -0700 (PDT) Received: from uni.. (adsl-146.37.6.170.tellas.gr. [37.6.170.146]) by smtp.googlemail.com with ESMTPSA id k14-20020aa7c04e000000b00431962fe5d4sm9785589edo.77.2022.06.28.08.03.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jun 2022 08:03:57 -0700 (PDT) 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: 89a1cdaa-f6f3-11ec-b725-ed86ccbb4733 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TLsqItHuAGIYOdooSORiDOzPNTwAvEg24UXCgU+28Pk=; b=VLtQimo71H1QZ7/hEVyCSkGkokfusO6KVmyXYkNXKAdzlg/8Kvxzgoo8n9GIBTu0b5 1Y5GGAZHx8eGHvjsKUz4WA6WzOatLD1l6IAAJSr9eirG0ePglIqCZsq3ARpWMmOt1TP+ DdqrUSKRcWLU9T7GaVDbh3um2Kiz3Cu/iD6KPDKKItM4NFKsOhuItAT+kufbG211sU+1 u5Nk9VrAZ7AoFHyZds3YDWu5tjJ4y/3xXXodpgFY9zjFpKMmaPlsSY5txk3cSSbwcU3X cnNgzCYP7zVnCw5eP/OZOubctS8kEixfbAP024RwNG+OndfpgEFsrmiDI91JUYYiO73W 3vSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TLsqItHuAGIYOdooSORiDOzPNTwAvEg24UXCgU+28Pk=; b=6nxomox8poAbIDq27BKBzNktZoELUaMrlyX1rXamM8w8CONg6gM5hhulF37UzpcjQb GTiUeH1WaNRNwMFEDHnyXSmPWEENra9v3Lia97JarCeLK5xBJ7g6kHcWVpDmQmGvkWW1 oGpw5gI5HrLoDldj7WvTt2GqkbjBnPyP3kmZDhxpjfvay17uI9+bgVLb/3dultGSQqCB c62h1Kt5FQ193Y7PIpZpCGXAlcPdpCiq7oEj2woHu43tw5ts0W5Rk2XeeYA+zckEAP5W ME1aICvjYc/OcQOVU7nOV2ogpf8qavzxt5jF3OTIE2+3UORa3w8Wl3KNypEB9eEL0vm0 PIgQ== X-Gm-Message-State: AJIora+ZKT8/TCFRHa5yvE3n63Y6bn6c1NL12GEYG5qHzRNI/1ruWbhi wU8CEIWPT08L4D7V7gtEeDr3Zh1Zxto= X-Google-Smtp-Source: AGRyM1uezSb2EiHcmNDWmtQ2wbhEfVC5xFgC737kFVXbc/rOBq1/PjWvHCj1z4PwnuyzMuHbMBphqg== X-Received: by 2002:a05:6402:35cf:b0:435:bd7f:932c with SMTP id z15-20020a05640235cf00b00435bd7f932cmr23778175edc.415.1656428638330; Tue, 28 Jun 2022 08:03:58 -0700 (PDT) From: Xenia Ragiadakou To: xen-devel@lists.xenproject.org Cc: Xenia Ragiadakou , Jan Beulich , Paul Durrant , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= Subject: [PATCH v2 3/5] xen/drivers: iommu: Fix MISRA C 2012 Rule 8.7 violation Date: Tue, 28 Jun 2022 18:03:35 +0300 Message-Id: <20220628150337.8520-4-burzalodowa@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220628150337.8520-1-burzalodowa@gmail.com> References: <20220628150337.8520-1-burzalodowa@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1656428679496100001 Content-Type: text/plain; charset="utf-8" The variable iommu_crash_disable is referenced only in one translation unit. Change its linkage from external to internal by adding the storage-class specifier static to its definition. Also, this patch aims to resolve indirectly a MISRA C 2012 Rule 8.4 violati= on warning. Signed-off-by: Xenia Ragiadakou Reviewed-by: Jan Beulich --- Changes in v2: - replace the phrase "This patch aims to resolve indirectly a MISRA C 2012 Rule 8.4 violation warning." with "Also, this patch aims to resolve indirectly a MISRA C 2012 Rule 8.4 violation warning." xen/drivers/passthrough/iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/drivers/passthrough/iommu.c b/xen/drivers/passthrough/iomm= u.c index 75df3aa8dd..77f64e6174 100644 --- a/xen/drivers/passthrough/iommu.c +++ b/xen/drivers/passthrough/iommu.c @@ -29,7 +29,7 @@ bool_t __initdata iommu_enable =3D 1; bool_t __read_mostly iommu_enabled; bool_t __read_mostly force_iommu; bool_t __read_mostly iommu_verbose; -bool_t __read_mostly iommu_crash_disable; +static bool_t __read_mostly iommu_crash_disable; =20 #define IOMMU_quarantine_none 0 /* aka false */ #define IOMMU_quarantine_basic 1 /* aka true */ --=20 2.34.1 From nobody Mon Apr 29 14:19:25 2024 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=gmail.com Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1656428693153155.89159326922743; Tue, 28 Jun 2022 08:04:53 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.357166.585655 (Exim 4.92) (envelope-from ) id 1o6Cl2-0001Pd-5U; Tue, 28 Jun 2022 15:04:04 +0000 Received: by outflank-mailman (output) from mailman id 357166.585655; Tue, 28 Jun 2022 15:04:04 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1o6Cl2-0001PR-21; Tue, 28 Jun 2022 15:04:04 +0000 Received: by outflank-mailman (input) for mailman id 357166; Tue, 28 Jun 2022 15:04:03 +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 1o6Cl1-0001MY-2P for xen-devel@lists.xenproject.org; Tue, 28 Jun 2022 15:04:03 +0000 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [2a00:1450:4864:20::534]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 8afb4271-f6f3-11ec-bd2d-47488cf2e6aa; Tue, 28 Jun 2022 17:04:01 +0200 (CEST) Received: by mail-ed1-x534.google.com with SMTP id c65so18004566edf.4 for ; Tue, 28 Jun 2022 08:04:01 -0700 (PDT) Received: from uni.. (adsl-146.37.6.170.tellas.gr. [37.6.170.146]) by smtp.googlemail.com with ESMTPSA id k14-20020aa7c04e000000b00431962fe5d4sm9785589edo.77.2022.06.28.08.03.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jun 2022 08:04:00 -0700 (PDT) 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: 8afb4271-f6f3-11ec-bd2d-47488cf2e6aa DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=IoisOmV2uP3Ir6MH/g/SxzICNH4UZsoy3K2WoiWM8Iw=; b=EVvItujdDdLUU1KM6UOtMsojrD58ruvnpsKIenfvsus/T3FnBl1Vb8Y9j33kwFb7vh sRF06HwvHGEKxWJBEVwxHX2LpyFJO00/uoeILCqtaU5XDBdbdgWlo1QDrOxw8cNO/r2R W3pccvCq6cyibp4tzdFrwXpo1x+0xfhHYb6y/+JEgQhajbguOE6nC9DDsR0uxEK8UEs2 +ZG0OZ/Sm04bW9xZlZIxMuHZgiF9/1dFqV7VcI4ginV4nlC/T+Mrpe1LkBU+X/6GKBlB wKPFFImyGl1QbPdC5OINPm34XsxA35LPK/XLl9A16UJ8Hf8tRsW8JaN6CxiwlbX9gPKj M26Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=IoisOmV2uP3Ir6MH/g/SxzICNH4UZsoy3K2WoiWM8Iw=; b=uCnXWzMSkPPfhGWUwLsv+rYNqUg0aaVqGgz4Yd2IQaqPVwnaACqOzKS+9zEMGdEzeM JiqtKr6SNPudx73pnOxkXFDIddUE761qgNtehYP9s/7oiyrqmpMMOINK1r5Qwobs9FF3 uKdrErjTXDCePU5U4nvdrdKv10x1dacSdSGAfgJ8wIMa9A3Os2Sxx+Zx/VsF5zHp0YZe VjJD3ToK+sfghCacTanOuyZTAdC9A8oxfPxh5FDmjdGVfshHgNG7mHJGahu7bUjAh5P2 QXbgFPPrSdFAwgV11gY2MmW1jjIl+4KRYp8wUTMSBtesGPEZ4wEbDBfBGKVBNF0Ch9Qu nZGA== X-Gm-Message-State: AJIora88JSQPDwGDj4geHkqBacAbbCld2I7wXrkaJTboxA41MUtPrheP oUkJl/Kx72mK2e7Or0bsEFo+sDbz0PQ= X-Google-Smtp-Source: AGRyM1v+sNPVN8DK0U9kto6+Lpl4hAQnuW0RIELbDg0B3b+egAaDEs9ErMIJgt/8bxOSz3b0bwJQ5A== X-Received: by 2002:a05:6402:360d:b0:435:710a:2531 with SMTP id el13-20020a056402360d00b00435710a2531mr23651364edb.377.1656428640739; Tue, 28 Jun 2022 08:04:00 -0700 (PDT) From: Xenia Ragiadakou To: xen-devel@lists.xenproject.org Cc: Xenia Ragiadakou , George Dunlap , Dario Faggioli , Jan Beulich Subject: [PATCH v2 4/5] xen/sched: credit: Fix MISRA C 2012 Rule 8.7 violation Date: Tue, 28 Jun 2022 18:03:36 +0300 Message-Id: <20220628150337.8520-5-burzalodowa@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220628150337.8520-1-burzalodowa@gmail.com> References: <20220628150337.8520-1-burzalodowa@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1656428695322100001 Content-Type: text/plain; charset="utf-8" The per-cpu variable last_tickle_cpu is referenced only in credit.c. Change its linkage from external to internal by adding the storage-class specifier static to its definitions. Also, this patch aims to resolve indirectly a MISRA C 2012 Rule 8.4 violati= on warning. Signed-off-by: Xenia Ragiadakou Reviewed-by: Jan Beulich --- Changes in v2: - replace the phrase "This patch aims to resolve indirectly a MISRA C 2012 Rule 8.4 violation warning." with "Also, this patch aims to resolve indirectly a MISRA C 2012 Rule 8.4 violation warning." xen/common/sched/credit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/common/sched/credit.c b/xen/common/sched/credit.c index 4d3bd8cba6..47945c2834 100644 --- a/xen/common/sched/credit.c +++ b/xen/common/sched/credit.c @@ -348,7 +348,7 @@ static void burn_credits(struct csched_unit *svc, s_tim= e_t now) static bool __read_mostly opt_tickle_one_idle =3D true; boolean_param("tickle_one_idle_cpu", opt_tickle_one_idle); =20 -DEFINE_PER_CPU(unsigned int, last_tickle_cpu); +static DEFINE_PER_CPU(unsigned int, last_tickle_cpu); =20 static inline void __runq_tickle(const struct csched_unit *new) { --=20 2.34.1 From nobody Mon Apr 29 14:19:25 2024 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=gmail.com Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 16564286784868.290967371593638; Tue, 28 Jun 2022 08:04:38 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.357167.585667 (Exim 4.92) (envelope-from ) id 1o6Cl4-0001is-Kk; Tue, 28 Jun 2022 15:04:06 +0000 Received: by outflank-mailman (output) from mailman id 357167.585667; Tue, 28 Jun 2022 15:04:06 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1o6Cl4-0001ie-Dy; Tue, 28 Jun 2022 15:04:06 +0000 Received: by outflank-mailman (input) for mailman id 357167; Tue, 28 Jun 2022 15:04:05 +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 1o6Cl3-0001MY-8x for xen-devel@lists.xenproject.org; Tue, 28 Jun 2022 15:04:05 +0000 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [2a00:1450:4864:20::52b]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 8cce3726-f6f3-11ec-bd2d-47488cf2e6aa; Tue, 28 Jun 2022 17:04:04 +0200 (CEST) Received: by mail-ed1-x52b.google.com with SMTP id ej4so18004090edb.7 for ; Tue, 28 Jun 2022 08:04:04 -0700 (PDT) Received: from uni.. (adsl-146.37.6.170.tellas.gr. [37.6.170.146]) by smtp.googlemail.com with ESMTPSA id k14-20020aa7c04e000000b00431962fe5d4sm9785589edo.77.2022.06.28.08.04.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jun 2022 08:04:03 -0700 (PDT) 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: 8cce3726-f6f3-11ec-bd2d-47488cf2e6aa DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=UuYWZQeJKj9O8pOqNcM3ZHmqzZL57A1GnfhK3BOWViQ=; b=o2fhUTpFrFf8bN2Q/dR0BNHDWBLCS+GUjUsmVjNwYaSe/T3V2odWsrmzOXQ8O+MWRU LzJ6tUofAyJKvfIGGy+JJQQj6dpIUPVft9G8d4y61n0xhcMhGjOm0A6iCKclihdjUChf XJajD1692yuJMow1b8wQ8EdNeFf8LZT6wpf00PTkYbn4paD0NSR3z4r9XOKVE+hvQH0s VoVWohf+GPYCTlX1/+8ezTIBk/NopRT2Jr+BxbbLj4m51+KP9o00kas5B2SNH3rlVql7 t62EwCWmQCJ8iSltqFRFY8tYiSw8aEVWogOwq/2U7elDKoAD7PNmI0dkyirBTJYX/reA mdkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=UuYWZQeJKj9O8pOqNcM3ZHmqzZL57A1GnfhK3BOWViQ=; b=1CdEdASIFH10cykdfqM2vfuV7THIrbGyhyQvPx7oKL4oFcMAETbl8GtmEHBaI/kAyJ bE24LtO74kfaKRFFZrP31jdqjCLxc5OqSK9XB12E7vLG+4j8SzXdrNzIPWhpTuoJPshU 2JquMYSlRG1YyB1fX4loRDHX1YXaErIxLFa+smWzMBDFIdvYQWhrJ0+H6VZ/PCRaBSwQ wsLEsKpMzQMI4UkzlhZH/qJqddKiWIszA7uzNHgQ8Ky7q7cWeYBvt10o9bTnZaouePAV C3ua67zy+jT/noYPkcdYfU2NWqkjHAqwGjQSmDl9CYA1A99luA8vCE4evEuH3f9nFgWp /DEA== X-Gm-Message-State: AJIora/y8LCM1IMUzWhB0mhraRfbZBwkmI+Zr9gfjPTSTo85OfAUtQXK 9013h8X+xnKF1E5LTKb3qkefyd4xyBg= X-Google-Smtp-Source: AGRyM1uBUIqLV8SKYrgSLRFmpLFMEyzHqGF+QMDoPC2VSVa/9V/6McvCD0l3L0wWzy8JRya7KmaXNQ== X-Received: by 2002:a05:6402:414c:b0:435:1e2a:2c7f with SMTP id x12-20020a056402414c00b004351e2a2c7fmr23926753eda.132.1656428643870; Tue, 28 Jun 2022 08:04:03 -0700 (PDT) From: Xenia Ragiadakou To: xen-devel@lists.xenproject.org Cc: Xenia Ragiadakou , Stefano Stabellini , Julien Grall , Bertrand Marquis , Volodymyr Babchuk Subject: [PATCH v2 5/5] xen/arm64: traps: Fix MISRA C 2012 Rule 8.4 violations Date: Tue, 28 Jun 2022 18:03:37 +0300 Message-Id: <20220628150337.8520-6-burzalodowa@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220628150337.8520-1-burzalodowa@gmail.com> References: <20220628150337.8520-1-burzalodowa@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1656428680205100007 Content-Type: text/plain; charset="utf-8" Add a function prototype for do_bad_mode() in and inclu= de header in traps.c, so that the declarations of the functions do_bad_mode() and finalize_instr_emulation(), which have external linkage, are visible before the function definitions. Signed-off-by: Xenia Ragiadakou Reviewed-by: Bertrand Marquis --- Changes in v2: - none xen/arch/arm/arm64/traps.c | 1 + xen/arch/arm/include/asm/arm64/traps.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/xen/arch/arm/arm64/traps.c b/xen/arch/arm/arm64/traps.c index 3f8858acec..a995ad7c2c 100644 --- a/xen/arch/arm/arm64/traps.c +++ b/xen/arch/arm/arm64/traps.c @@ -22,6 +22,7 @@ #include #include #include +#include =20 #include =20 diff --git a/xen/arch/arm/include/asm/arm64/traps.h b/xen/arch/arm/include/= asm/arm64/traps.h index 2379b578cb..a347cb13d6 100644 --- a/xen/arch/arm/include/asm/arm64/traps.h +++ b/xen/arch/arm/include/asm/arm64/traps.h @@ -6,6 +6,8 @@ void inject_undef64_exception(struct cpu_user_regs *regs, i= nt instr_len); void do_sysreg(struct cpu_user_regs *regs, const union hsr hsr); =20 +void do_bad_mode(struct cpu_user_regs *regs, int reason); + #endif /* __ASM_ARM64_TRAPS__ */ /* * Local variables: --=20 2.34.1