Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp389016pxm; Fri, 25 Feb 2022 09:56:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJwoFXUcoPA4DNAm4qBHN5EWUUSgWRECsiEfCLmOhbpucwlbPLar0wU4zqorDo58dJnRq/6B X-Received: by 2002:a05:6a00:134c:b0:4bc:9423:96b2 with SMTP id k12-20020a056a00134c00b004bc942396b2mr8874778pfu.45.1645811781168; Fri, 25 Feb 2022 09:56:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645811781; cv=none; d=google.com; s=arc-20160816; b=aD9uqTR1tvnnGfiRa+BG7pJDhkTGo7vQ5KMRYFXJaA3RRK45kRpFW7VrfjraQEurKa V9iIJd27nfsSJAT4zli7TFuZUhD2ltS2Yklcjy1iDiK7De300Uq1L2gVTDDuCmlmiCLT ZW3Z4AVyYc7mxSiaejzUiSKsiyUiHDPS024//LxLro39zZirqiBsi3CSe/Htv4MJOp/O bIXPEq8tJlGsL0SyHP9KWrrJLovVU63ZKf5rRQSX+y/qePCIXR2ym8AnqffH3QoFPo9C Sz0ETCBT80/nTKIgn/19P+4uG3UuD3TEpWcbf6r0WkRReb2c9DsQTfOBV9JdgE2/kP9a ZSMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=499Td44vEFXqia774amjIYXNGtWlLmGzota5n2mQXIo=; b=cecZW+ZHqIL4XTMeAGIDjbgVUO7fShAN26QnQHsiQuRWuxTIoxXyOwlMuDWg4AV8n+ 9HU74BxNhHiYxfLBp5/BCzWLRT5gSgy0nn8bYpY01zYPJLL7BESnTqoXxW2R7k0bJlL7 7bPYMmwhWu1NyMuho2tObWS1nPYSIA38A2Kwr6QSHKlFF4/srHr4tQDFP519UXiOv/pc 0gt4U6kk5Ai/xKXmpwubXBM+mtXm1QJ1mDUz+78WExzK6mqk/FOn6FOIxUkGr14wY/um t6CoC6mdeEkPEB+JV+qR2yfdY0OP/vzawnWsJA/gFrMn7YXVzwy6q0RK7G31jSf2JHDh Nz6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eM5RtP9P; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s13-20020a63ff4d000000b003701a916c65si2457947pgk.170.2022.02.25.09.55.57; Fri, 25 Feb 2022 09:56:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eM5RtP9P; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237294AbiBYPFL (ORCPT + 99 others); Fri, 25 Feb 2022 10:05:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235895AbiBYPFJ (ORCPT ); Fri, 25 Feb 2022 10:05:09 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D86A017E37A; Fri, 25 Feb 2022 07:04:36 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7466A616F3; Fri, 25 Feb 2022 15:04:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D8FF9C36AE5; Fri, 25 Feb 2022 15:04:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645801475; bh=ZJKRPeCkChS3b+pwdBenEbdeLpCSBU8v77sN2j2sad8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=eM5RtP9Pq7lHELsEtW7y2xuAZgm9Vg3+RGOAAGEm8P0FDl9LZsKDXIHSJDqem7QCf +m/kXl3wjcR0iCaP1HkY3vvHmKZNMfWQuYbIg7wj1yqbzSun0/HG4kgClGcF0WXmOO EBmd2AtrZc+QfrH3fhNhyezguuvehswtGJMeFj6hXdi8PV5pVtD9/I+C+JyrmwpDx8 bluO8/kYHW8qv3P29Q+1Cj+qsdhxVswS7w4kmF+r1lBG1KMRp1lGE0dBBzX1Gfy3qf OkiOtQl3fOLhm0YpQuCPElpdNtvb10t67wIbrMv5HeT9kA1tk570xf7AJVXAhUCpr2 TCKCjkXwr6dzQ== Received: by mail-yb1-f175.google.com with SMTP id v186so6454038ybg.1; Fri, 25 Feb 2022 07:04:35 -0800 (PST) X-Gm-Message-State: AOAM530Yqj5upJURJxamVA6dPNjXMTbWTx/RrSJuO9AvwSzwXC6I7YmK Z7asLuhJm66pbY4aFahakoDpjSeWBNt/I2SBeXo= X-Received: by 2002:a25:4214:0:b0:624:6215:4823 with SMTP id p20-20020a254214000000b0062462154823mr7558374yba.432.1645801474993; Fri, 25 Feb 2022 07:04:34 -0800 (PST) MIME-Version: 1.0 References: <20220225124848.909093-1-Jason@zx2c4.com> In-Reply-To: From: Ard Biesheuvel Date: Fri, 25 Feb 2022 16:04:23 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4] virt: vmgenid: introduce driver for reinitializing RNG on VM fork To: Greg KH Cc: "Jason A. Donenfeld" , KVM list , Linux Crypto Mailing List , linux-hyperv@vger.kernel.org, Linux Kernel Mailing List , adrian@parity.io, ben@skyportsystems.com, =?UTF-8?Q?Daniel_P=2E_Berrang=C3=A9?= , Colm MacCarthaigh , Dexuan Cui , "Woodhouse, David" , Eric Biggers , Eduardo Habkost , Alexander Graf , Haiyang Zhang , Igor Mammedov , Jann Horn , KY Srinivasan , Laszlo Ersek , Dominik Brodowski , "Michael S. Tsirkin" , QEMU Developers , "Weiss, Radu" , Stephen Hemminger , "Theodore Y. Ts'o" , Wei Liu Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Fri, 25 Feb 2022 at 13:53, Greg KH 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