[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YhjRVz2184xhkZK3@kroah.com>
Date: Fri, 25 Feb 2022 13:53:43 +0100
From: Greg KH <gregkh@...uxfoundation.org>
To: "Jason A. Donenfeld" <Jason@...c4.com>
Cc: kvm@...r.kernel.org, linux-crypto@...r.kernel.org,
linux-hyperv@...r.kernel.org, linux-kernel@...r.kernel.org,
adrian@...ity.io, ardb@...nel.org, ben@...portsystems.com,
berrange@...hat.com, colmmacc@...zon.com, decui@...rosoft.com,
dwmw@...zon.co.uk, ebiggers@...nel.org, ehabkost@...hat.com,
graf@...zon.com, haiyangz@...rosoft.com, imammedo@...hat.com,
jannh@...gle.com, kys@...rosoft.com, lersek@...hat.com,
linux@...inikbrodowski.net, mst@...hat.com, qemu-devel@...gnu.org,
raduweis@...zon.com, sthemmin@...rosoft.com, tytso@....edu,
wei.liu@...nel.org
Subject: Re: [PATCH v4] virt: vmgenid: introduce driver for reinitializing
RNG on VM fork
On Fri, Feb 25, 2022 at 01:48:48PM +0100, Jason A. Donenfeld wrote:
> +static struct acpi_driver acpi_driver = {
> + .name = "vmgenid",
> + .ids = vmgenid_ids,
> + .owner = THIS_MODULE,
> + .ops = {
> + .add = vmgenid_acpi_add,
> + .notify = vmgenid_acpi_notify,
> + }
> +};
> +
> +static int __init vmgenid_init(void)
> +{
> + return acpi_bus_register_driver(&acpi_driver);
> +}
> +
> +static void __exit vmgenid_exit(void)
> +{
> + acpi_bus_unregister_driver(&acpi_driver);
> +}
> +
> +module_init(vmgenid_init);
> +module_exit(vmgenid_exit);
Nit, you could use module_acpi_driver() to make this even smaller if you
want to.
thanks,
greg k-h
Powered by blists - more mailing lists