[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHmME9pGuPEWjr+RLFQi-kKcRuPxmCYyzAJOJtgx+5phwmkZ6Q@mail.gmail.com>
Date: Fri, 25 Feb 2022 13:56:35 +0100
From: "Jason A. Donenfeld" <Jason@...c4.com>
To: Greg KH <gregkh@...uxfoundation.org>
Cc: KVM list <kvm@...r.kernel.org>,
Linux Crypto Mailing List <linux-crypto@...r.kernel.org>,
linux-hyperv@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>,
adrian@...ity.io, Ard Biesheuvel <ardb@...nel.org>,
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>,
"K . Y . 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 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, Feb 25, 2022 at 1:53 PM 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.
Nice! Will do.
Jason
Powered by blists - more mailing lists