[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAMj1kXH-sU5u+OcnTG0i1dOp7VuZX97336NqemhUq+apGstpXQ@mail.gmail.com>
Date: Fri, 25 Feb 2022 16:04:23 +0100
From: Ard Biesheuvel <ardb@...nel.org>
To: Greg KH <gregkh@...uxfoundation.org>
Cc: "Jason A. Donenfeld" <Jason@...c4.com>,
KVM list <kvm@...r.kernel.org>,
Linux Crypto Mailing List <linux-crypto@...r.kernel.org>,
linux-hyperv@...r.kernel.org,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
adrian@...ity.io, ben@...portsystems.com,
Daniel P. Berrangé <berrange@...hat.com>,
Colm MacCarthaigh <colmmacc@...zon.com>,
Dexuan Cui <decui@...rosoft.com>,
"Woodhouse, David" <dwmw@...zon.co.uk>,
Eric Biggers <ebiggers@...nel.org>,
Eduardo Habkost <ehabkost@...hat.com>,
Alexander Graf <graf@...zon.com>,
Haiyang Zhang <haiyangz@...rosoft.com>,
Igor Mammedov <imammedo@...hat.com>,
Jann Horn <jannh@...gle.com>,
KY Srinivasan <kys@...rosoft.com>,
Laszlo Ersek <lersek@...hat.com>,
Dominik Brodowski <linux@...inikbrodowski.net>,
"Michael S. Tsirkin" <mst@...hat.com>,
QEMU Developers <qemu-devel@...gnu.org>,
"Weiss, Radu" <raduweis@...zon.com>,
Stephen Hemminger <sthemmin@...rosoft.com>,
"Theodore Y. Ts'o" <tytso@....edu>, Wei Liu <wei.liu@...nel.org>
Subject: Re: [PATCH v4] virt: vmgenid: introduce driver for reinitializing RNG
on VM fork
On Fri, 25 Feb 2022 at 13:53, Greg KH <gregkh@...uxfoundation.org> wrote:
>
> 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.
>
With that suggestion adopted,
Reviewed-by: Ard Biesheuvel <ardb@...nel.org>
Powered by blists - more mailing lists