From nobody Fri Nov 22 03:13:42 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=reject dis=none) header.from=citrix.com ARC-Seal: i=1; a=rsa-sha256; t=1727692160; cv=none; d=zohomail.com; s=zohoarc; b=hYkgrVyR1K+Vta9EwKXFuJzSs7cXk1v2/LEQcq3x5JO7xrSr+ri5kXZ4Rr6p8esBMONpgvc0Jk3TcCspP/VwY1Gy8MK0i2oKxNGRWGSr/PlgbNtOPdN77Kc0Rkzf0a214sgLJRvGfdpEsRSJSrxsNYj8xA9e0Fy0nFDcXScpuDE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1727692160; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=c7w0RhKBAmLGt5Q8j1v3GtRtu3ApeY2RliT9YAxTkbM=; b=hjkomNsKwVAqqpvYa++3ft9djQwPcrGBy3ygfgCIWOTQZazYxW6bPdPQyxIsjiiLZPEgWVgqNK0R0cHRzSN8wEQUzld1sEUVQh4IWfglWSUB0CJukRzwB4tScuYTxbIIIr5xqoCLvDcZ4cWrjPjT9muOq0aTGhBLpsvfEALTDSQ= 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=reject dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 172769216038692.11809910229613; Mon, 30 Sep 2024 03:29:20 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.807177.1218453 (Exim 4.92) (envelope-from ) id 1svDeI-0007ov-9k; Mon, 30 Sep 2024 10:29:02 +0000 Received: by outflank-mailman (output) from mailman id 807177.1218453; Mon, 30 Sep 2024 10:29:02 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1svDeI-0007om-6m; Mon, 30 Sep 2024 10:29:02 +0000 Received: by outflank-mailman (input) for mailman id 807177; Mon, 30 Sep 2024 10:29:00 +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 1svDeG-0007Va-RY for xen-devel@lists.xenproject.org; Mon, 30 Sep 2024 10:29:00 +0000 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [2a00:1450:4864:20::536]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id ce56d76c-7f16-11ef-a0ba-8be0dac302b0; Mon, 30 Sep 2024 12:29:00 +0200 (CEST) Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-5c40aea5c40so7610003a12.0 for ; Mon, 30 Sep 2024 03:28:59 -0700 (PDT) Received: from localhost ([213.195.117.215]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c88245fa97sm4336493a12.43.2024.09.30.03.28.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Sep 2024 03:28:58 -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: ce56d76c-7f16-11ef-a0ba-8be0dac302b0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.com; s=google; t=1727692138; x=1728296938; darn=lists.xenproject.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=c7w0RhKBAmLGt5Q8j1v3GtRtu3ApeY2RliT9YAxTkbM=; b=gLEotAMEvXhF+FHtQDvEe2Iv9yH5z5Z2pvoTWnrw6FOzIQjG7jCCFp0RL6gc86qjrc l63Dn/Whi7LpTEKv0eTWyLhqaLuRlzwKP8E2u1gHCUSEnjT9irXnOiNVHcONj3UPAMtt lXj0ASAEVvGROwLCRHkSsFiRRrO8u0/B/SQao= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727692138; x=1728296938; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=c7w0RhKBAmLGt5Q8j1v3GtRtu3ApeY2RliT9YAxTkbM=; b=XyBAkG7A4gTPwhIGGbB87pQSlQPxlt12H4gpHuQsO9oIxEodJOHKadxR0oF/y47IAh RwB6/FPqiYqclUd64nDyGuh5to30HlG7g4e09o6+J9grVc/2V1VPxKHWAtUlI9aYzy0S ZrlKeVZ3Ca3D/b5RvTi8gEQ6dQUGJLws++3bvn2O7c51CT7yZ2aeCzeI6Bn1bKmoFJIy eYzvH4uSkrItUYpTzsoaQFR11Nee/N//cY7V647/f7KOMh9Bvd76CuQn02CY74jsEzRO H/Py+DN9ESxQd+o6Ieh2w4/5WtF9a7Pv358OLWMbwl+XdiR4EZZu0SUw2bsAjjYry8jK q7ww== X-Gm-Message-State: AOJu0YxmgJMcxUJUy88He6icSbBFKEWlAR/0pSqk+Ygh6KqWSq3ud30n d5SS4nfSrSwXjVKkckcpq0mp5UhdEpWPG6T0H6VYVJ6ui0Ep2kobXXDom9GIHpgLiclTPcXzFiZ d X-Google-Smtp-Source: AGHT+IGw1HVqLNottYMT6Aa3DJp5+PMxUQwL8zlVHlUT40Mn+ZZUevsFJhX5577YUoygjLp4rfPNmA== X-Received: by 2002:a05:6402:50d3:b0:5c8:a01c:e9b2 with SMTP id 4fb4d7f45d1cf-5c8a01cea2cmr766203a12.17.1727692138513; Mon, 30 Sep 2024 03:28:58 -0700 (PDT) From: Roger Pau Monne To: xen-devel@lists.xenproject.org Cc: Roger Pau Monne , Jan Beulich , Andrew Cooper Subject: [PATCH] iommu/amd-vi: make IOMMU list ro after init Date: Mon, 30 Sep 2024 12:28:49 +0200 Message-ID: <20240930102849.18309-1-roger.pau@citrix.com> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @citrix.com) X-ZM-MESSAGEID: 1727692160974116600 The only functions to modify the list, amd_iommu_detect_one_acpi() and amd_iommu_init_cleanup(), are already init. Signed-off-by: Roger Pau Monn=C3=A9 Acked-by: Jan Beulich --- xen/drivers/passthrough/amd/iommu_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/drivers/passthrough/amd/iommu_init.c b/xen/drivers/passthr= ough/amd/iommu_init.c index 6c0dc2d5cb69..302362502033 100644 --- a/xen/drivers/passthrough/amd/iommu_init.c +++ b/xen/drivers/passthrough/amd/iommu_init.c @@ -32,7 +32,7 @@ unsigned int __read_mostly amd_iommu_acpi_info; unsigned int __read_mostly ivrs_bdf_entries; u8 __read_mostly ivhd_type; static struct radix_tree_root ivrs_maps; -LIST_HEAD_READ_MOSTLY(amd_iommu_head); +LIST_HEAD_RO_AFTER_INIT(amd_iommu_head); bool iommuv2_enabled; =20 bool __ro_after_init amd_iommu_perdev_intremap =3D true; --=20 2.46.0