Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2483601rdb; Mon, 12 Feb 2024 06:28:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IFWhtzAN2HBxWoIRHFbSGigy89dBHZOQ2wItNgNJSPrfY5qd4HapCwTtD9k0F93WVKAvMhq X-Received: by 2002:a17:902:b201:b0:1d9:c876:b825 with SMTP id t1-20020a170902b20100b001d9c876b825mr7609201plr.56.1707748130974; Mon, 12 Feb 2024 06:28:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707748130; cv=pass; d=google.com; s=arc-20160816; b=Fn1Kf1hZc1lyl9ayym8PCnFYUhABrv9VB9gn4xvlZO7q61ZD0Pl3rC3GcUnemUPift cb+NliT+HyJhe2MicLoWkaW66KmKznX9iVa/i+SXhXDiezSSfBKcbjq06ksl2wze7JZe dauXDTE96OWksD9zPVV+HW5Xuw1s5eYv7S2KdWBa1Mpk6eK4iv2uGIcIYQ9UNDECiHwa WoxYFv3r5B81NW0Jlxolielbv4sdKvzBj/AvCA/WsY2HN2UNkH9BD0VQw0ENEEEusqw7 A2OrM6g1JjuzLyPCdFylc/8oPf6pGZP7iB4r+sE6sHYgyaipKM1ZF/z5icBf7GFfK6IA mhPw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=uGXjdHO8XjU5jzrVV0nG9dx+YzuEyrCWweYCQg9Rxzo=; fh=9dfJTIl0k9d/UJLiX+dlCiYSWtjF1ouZiqQ10LnrIII=; b=Fqd7xkcrQXU2Mzg3BQKHrb0Oy0Z+2M7/4mKY84W00SyD037d1ZB/2d06+Ur/ntmdYJ K6002CicmsC002B1m5BGMX3m4qqxVmJ2ZlCnW1wtKQGl+ot9+e3Fdfz3SnRoZZrNhh9+ nICMtldDl/0lagRD43rcQFkK3GzVwwQpByxeqDkIhj8yle3D+zv948ki04EZ0ykS4SaI GBw47fB2FpsnXdf2HqGriutnO4j9KxYetIcXUcXF19kNYP8OB+EuhQ7x+feaELLtD/a+ 5l1hPqQmds0ukucB2+aXNYCseeMzxBG6tU1pfFtBe7XtJ93YUnaFGEYdZ6zHa4mJnM8N iJAA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b="Q8p8h/uC"; arc=pass (i=1 spf=pass spfdomain=ziepe.ca dkim=pass dkdomain=ziepe.ca); spf=pass (google.com: domain of linux-kernel+bounces-61743-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61743-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCXHwGue4O62Q+1Aj8cegAW9sbeUS9Uef9ldjAusgF4tMRDeXP+Ar3T421Hq7Mfvd7ALm+RfUImSp5reWmDP9pYEJDETNrXRXC/cFHTjbA== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id u7-20020a170902b28700b001d95cfcac8csi329774plr.193.2024.02.12.06.28.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 06:28:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-61743-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b="Q8p8h/uC"; arc=pass (i=1 spf=pass spfdomain=ziepe.ca dkim=pass dkdomain=ziepe.ca); spf=pass (google.com: domain of linux-kernel+bounces-61743-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61743-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 1DF27B25B60 for ; Mon, 12 Feb 2024 13:54:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1E2264EB28; Mon, 12 Feb 2024 13:44:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="Q8p8h/uC" Received: from mail-oi1-f173.google.com (mail-oi1-f173.google.com [209.85.167.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 593654D5A3 for ; Mon, 12 Feb 2024 13:44:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707745492; cv=none; b=KA2HsEBK67jfpk1xKibUcRDvs9lCQbRQrbGfYmc+EixNCm2Y2U3FEx/Xm/Hf+oCNN+w2YQlwzUYQWOcGGl2YIAGmqn5t/+FoGuAqIeSKe5g17t8bqPkmat4RCZVg5EXPaU7o46o7XiJnauurZBvSQg1kw0eQHzE2bf9TokwJ4oI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707745492; c=relaxed/simple; bh=pbQuBXFHw1o0/Z9ineAwD3HEwjXD+2A+xezjlyIhPgk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=kjqckJO2yWcTC2nCH0mP2RvDngKcCF78RYoV59RcOztutHdQy8MUNl7dN0wdjq3ErfD+4RQyShGOymAH6K2jDRArj0nd9P4ndtSt45dOAG2s4Yq8VfEB4VOZS+t93xCSVKFoZviuMvsrdWyHUQWmj+tO04F8hj6Y8QQKoU38OYo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca; spf=pass smtp.mailfrom=ziepe.ca; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b=Q8p8h/uC; arc=none smtp.client-ip=209.85.167.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ziepe.ca Received: by mail-oi1-f173.google.com with SMTP id 5614622812f47-3bb9b28acb4so2626895b6e.2 for ; Mon, 12 Feb 2024 05:44:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1707745489; x=1708350289; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=uGXjdHO8XjU5jzrVV0nG9dx+YzuEyrCWweYCQg9Rxzo=; b=Q8p8h/uCkgyvUNliEmcYatZzPuvEXc2HjzCHNsRTqR5hXrrDeqIXSCMa3ixLO2Swp3 l5Wj6rAzysV1p0WIcvuKap+dmB0DhkflDYmipztOGvGSnvy/kjXkJcZHOWmYFKlkHiqz sehTNJ+L30y3C3xxLD8dVEKLP+0m5NP26v7Gm0JCPOCPSqpuTgA7BcQVTjBgnUAVde8E nt2ax0IpqaEtnyS75U3XkVxMcs5V35yOqMlXsKTeMvhRflmWDqzb05lra66Z+XT9FYrQ Nm1CnbuEUvfBbI6zf59c1HQPKkygliHRTBdrbUWJMDgE/RtZIM68pXvy8e8GW3kfQeQ8 dPSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707745489; x=1708350289; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=uGXjdHO8XjU5jzrVV0nG9dx+YzuEyrCWweYCQg9Rxzo=; b=JBl5qifgKyqj+zKnk0WQcqhd6zZPdAw2bkDkdvmwqgvfHIIsM6e3HL8qKXOd3HSnYy LUuf8spw+vEiuvK90F1BWpAm6ANRoCELY6ZpfkMX3Ysx6mORqhnVHP6Bq7V/IrUgQbxx w2lMQfA7xzF/vu5i1/z/0ZtKG3lxTTjd6YNfIPFfihLDYDtFkGeysbwvHr0kXHmGB23z Mz872oFbvSO7fGytZM//02LiKg6fMR/URrVyURL8FtEnj8c7SRjk/Rc+x0JTaOSHM9QL LxBKBhyq8zYtyytYigpjvgz/4UikbbXA1PXBHdMSLjIcPGr1etPUuazvDA687AXlNxSp O41A== X-Gm-Message-State: AOJu0Yw4pmRyPkkqmeHmdOIL7yY1EI/38M+79h9ZMd/J0Xs3wRiD2nwk TpTpXwNXqZ4H8c+FU192FV5yiLmUKuChrmTeyAlZPqrF5TmabMx1xtPT7DD0r7k= X-Received: by 2002:a05:6808:650a:b0:3c0:3e27:b122 with SMTP id fm10-20020a056808650a00b003c03e27b122mr1273092oib.39.1707745489408; Mon, 12 Feb 2024 05:44:49 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCUuODdFqYOxs3shUrxfjF20Q5OP5KgiYqXfaW9qGZ26oFB+YjdxhFIR11ymkSOn0GJ+uY4cO5Uqanl4Fkvjby/2kJylAJPjfUWOVRo8tRQzejeVVC+YQY8QJaiViARy3zC6iz+zG2K+5+blbybY3SaKScl/6A88S+6z4kY4N2VUWcAw4ZYyogeK6f136AipGMX1qGcsUS74ahs= Received: from ziepe.ca (hlfxns017vw-142-68-80-239.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.80.239]) by smtp.gmail.com with ESMTPSA id dj9-20020a056808418900b003c03ae77e0csm51778oib.51.2024.02.12.05.44.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 05:44:48 -0800 (PST) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1rZWc4-00Gwv7-4x; Mon, 12 Feb 2024 09:44:48 -0400 Date: Mon, 12 Feb 2024 09:44:48 -0400 From: Jason Gunthorpe To: "Ricardo B. Marliere" Cc: Kirti Wankhede , Alex Williamson , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman Subject: Re: [PATCH] vfio: mdev: make mdev_bus_type const Message-ID: <20240212134448.GC765010@ziepe.ca> References: <20240208-bus_cleanup-vfio-v1-1-ed5da3019949@marliere.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240208-bus_cleanup-vfio-v1-1-ed5da3019949@marliere.net> On Thu, Feb 08, 2024 at 05:02:04PM -0300, Ricardo B. Marliere wrote: > Now that the driver core can properly handle constant struct bus_type, > move the mdev_bus_type variable to be a constant structure as well, > placing it into read-only memory which can not be modified at runtime. > > Cc: Greg Kroah-Hartman > Suggested-by: Greg Kroah-Hartman > Signed-off-by: Ricardo B. Marliere > --- > drivers/vfio/mdev/mdev_driver.c | 2 +- > drivers/vfio/mdev/mdev_private.h | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) Reviewed-by: Jason Gunthorpe Jason