Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2782013rdb; Mon, 5 Feb 2024 18:48:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IF2Oz9pfz5IdsMII90zO/Tr+AOJ5IGgNV6D93vuP+Z9q93Wibxv4KDigF9T9P4YAqZqKk8T X-Received: by 2002:a05:6a20:f381:b0:19e:3fce:c36 with SMTP id qr1-20020a056a20f38100b0019e3fce0c36mr411083pzb.3.1707187723001; Mon, 05 Feb 2024 18:48:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707187722; cv=pass; d=google.com; s=arc-20160816; b=FoXvr9LCx8a3lga0VGIgeiv9cMKyi87SXtwmzaCqlmwfpW3CAQP/QhYpGsLzmGVCEz NZBNOn7huzn8rk0svzR+P/Hpb7bUPJwAZ9cRzE/TxSPWKHQ6r7upIzuXsDyT8klYp/md nt1Th1wqg+GCFD+LOUTV3w0Z+VJtfkDoIsbmXowHFYjrdQxgk4lgFsZoZDYKlqIxdBJO e8bn5W9W1MKn+3WyuEMF1RjwIPOWFnE2/WOFVOmHyiUO5+G0gxzF1Xkm3W2vFaNwwnuC qebHcN41iI1y2GOkK+1Ep+QY8TDpxGn+kqzUJ3WChyqP1nnvRLl1Dc0+AZg9ehaq9u/X yfzg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=ztwf0puyw2TDsCRrz3TlAqmaa620OVTaNmCiF7tFow0=; fh=s9/EXhL2bTJNDyBqe+iED170IiPPWHnwh3NL6nZmNmE=; b=SYyhpPginDLvbP7+NqlzPDCBgCm+GnsNgpbEsZ9tS3fVpZlC6CFPnAiXKurCiuZM6f x61D7jRAOLPgHzyBoMuvqxqFHgmDFTqXvFk2H6JYQxqJU0NGVCgysJzUn7mdnJNhbOtK f0wJOrxyJ3MyzMSeBOExfG/MTW9V8UWdFY8d7ywNtoQuV75MBTgtfVvWcf1WsiEvCvRY VZjLG7sljo0e0kQM8yMZJXUJnJ2X9DedlzabYDUE0pveyilxFrs4+8qJ7ys19QqW+5u2 xjmcmNwU+OfwenhY9zdTmmn5NDlNeEY0z/yJm1adfh6TzkRGAqDsy3sqjK51ndLK0CIK 1Wkw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QgL6Uwe8; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-54215-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54215-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com X-Forwarded-Encrypted: i=1; AJvYcCV3RgJHZT+nxb3ueGv1O00Cwjmu3hr3otGEOk1JwYO4gHUv/Hy/lDXnMqMM+Na72s69orAQn6x7YwQovkohi4gpNhbWnDMWxzmkYvShiA== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id cv2-20020a17090afd0200b00296aa48a449si302093pjb.95.2024.02.05.18.48.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 18:48:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-54215-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QgL6Uwe8; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-54215-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54215-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 EADF6B22EFC for ; Tue, 6 Feb 2024 02:48:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C240B6E2D6; Tue, 6 Feb 2024 02:48:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="QgL6Uwe8" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 357EA6E2A6 for ; Tue, 6 Feb 2024 02:48:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707187709; cv=none; b=amxLZB7TPqYv1MgWkqfMJl574hcz5KMw3zrijAghfOOEe00PMdpUMdjZ4aey3SxYZD9ObetHT6ardO+jMMCjY9SWfrgIFPb3m2c/dlW53QJDXhtvwYw+KErWvEcSzYs1N2s+83zQoVxBD2elrKTUp81aYkswuxr0TX4wIXtjVTo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707187709; c=relaxed/simple; bh=ztwf0puyw2TDsCRrz3TlAqmaa620OVTaNmCiF7tFow0=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=agX0aFFmxrrBTM/dUuRjbk8/I3DKfsb1/t8SShmDEIL/HppY3v2rBhDpebz/uuF7S/9QOlcG0z9nelVC+epcURtLC4ZFc3drLpQwwQYYQBIgQTwtXKVxGMC+6Wrss5YhYxNnX1uVkGRsH6iCCNPpuYmGdfVAulCp5gKIkMzjXDY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=QgL6Uwe8; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1707187707; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ztwf0puyw2TDsCRrz3TlAqmaa620OVTaNmCiF7tFow0=; b=QgL6Uwe8YL4lfZoLjNZt4YDjhaaBTeNIU6CfTKdwMsZS2lfUi7h12YuB/8Ql0WQn3Rw14i Qqa6cWMzErW2SAPdTGj8P9lWnY4QaRD7HZDldzsGQfzfmWVEeUKg8GClxW0lnnVpQtiAhU meZ6wk+TBoXsyKfE5eHaO40sKqg897Q= Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-652-KzOOj3FJN52WOgPhpJja5w-1; Mon, 05 Feb 2024 21:48:25 -0500 X-MC-Unique: KzOOj3FJN52WOgPhpJja5w-1 Received: by mail-pf1-f199.google.com with SMTP id d2e1a72fcca58-6e04e1ac0d4so1119754b3a.0 for ; Mon, 05 Feb 2024 18:48:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707187704; x=1707792504; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ztwf0puyw2TDsCRrz3TlAqmaa620OVTaNmCiF7tFow0=; b=HxDAIxSLtBWp2NzfUz47q1aNr2EElGEiZGNrtNZ2VfIq43hZD9FEF1eRffxYvcwVN2 6S1Kl7TFE0NGaYe1jimVNozX0U1ossRoWR6yohW8niUbYTn49mI99ln3N5X8y8yyTJlu ZwVwlzer8W2fvHcbEHwgg1VUWX3IVAzvkNn9ZV5XC5Iiat7wbiHuNTgavsxAmD9Cc2xp 7eym/BRaH+VLOi0NvcjmKgczKPHAyo4NaBzxHBNOj5sp4Vuy87KPR9b01pTzMewxTBMi 869HjPzI6kVpJT/LLR/XQ+DUKz02Dr3OqlPg8Oq7uJ64eTWCG0ZSqDgNxxHSQgIPqoSz bKWA== X-Gm-Message-State: AOJu0Yyc6IWN/t8sYQcdqzeEBv+UlBbrR9MJ2zo+6+zpLjSeJZIMhM40 co4POKZJ0ME6gGkNZm2zMpi7ZZDIWMfiIHh3+4uJ4aiIkaTVtEMRFAv0I+Dq+Q0S2gofaC6o6zk IXMj6o6tlO/RekkW5OEl5aWx5UbiBH2YJ9d4xeGCplC568P/Y4AiMzTaHsIw1JF8F2UijrcNcZN /IzvIbOp0N5bwp1UFWcK24qygdJGNvpvClmwNC X-Received: by 2002:a05:6a00:2d99:b0:6e0:4674:78c2 with SMTP id fb25-20020a056a002d9900b006e0467478c2mr1191455pfb.13.1707187704624; Mon, 05 Feb 2024 18:48:24 -0800 (PST) X-Received: by 2002:a05:6a00:2d99:b0:6e0:4674:78c2 with SMTP id fb25-20020a056a002d9900b006e0467478c2mr1191444pfb.13.1707187704363; Mon, 05 Feb 2024 18:48:24 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240204-bus_cleanup-virtio-v1-1-3bcb2212aaa0@marliere.net> In-Reply-To: <20240204-bus_cleanup-virtio-v1-1-3bcb2212aaa0@marliere.net> From: Jason Wang Date: Tue, 6 Feb 2024 10:48:13 +0800 Message-ID: Subject: Re: [PATCH] virtio: make virtio_bus const To: "Ricardo B. Marliere" Cc: "Michael S. Tsirkin" , Xuan Zhuo , virtualization@lists.linux.dev, linux-kernel@vger.kernel.org, Greg Kroah-Hartman Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Feb 5, 2024 at 4:52=E2=80=AFAM Ricardo B. Marliere wrote: > > Now that the driver core can properly handle constant struct bus_type, > move the virtio_bus 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 > --- Acked-by: Jason Wang Thanks