Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp221776pxm; Fri, 25 Feb 2022 06:55:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJxJoxvF7AGHu+tZeJPc/y3wk+iGvzs0v6svLdQubuzVEF3/VB9+OqcW09dgVuFJ4V3D9lX1 X-Received: by 2002:a17:90a:8591:b0:1b9:da10:2127 with SMTP id m17-20020a17090a859100b001b9da102127mr3513985pjn.13.1645800937659; Fri, 25 Feb 2022 06:55:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645800937; cv=none; d=google.com; s=arc-20160816; b=nyD7G6KvaX1Qc6eUYjPcnDUm986l2MX8hy/dj/PsFIHPMgPRrCYKPUIzLzUm2VJ+8A +cp0mpsMfkiz33OHqFWY8qDx0z2d0MwnmVku4sBn6sI660VtMDtyYnIT9gtuemq4TFHJ ZwJ/55VxvhwDKgRwPcVfbaOdP0BCj8W0KHozdhzzrnw/bYRZC21tyFfL/EDf9BphXia1 4Z65mDTrzA9gj4Q7XAM3AcCAiZ6HIsQHJOoO90Euo9GuLILqdU098vXpWfLmDvUJr/98 P/VKqEk2NQ3WxWINrZkxOxcwhxVrPGoxsPlQdMSYOOUgAqaIUvdGM+kXBJov34E7shAo JzbA== 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=XssgunSt6iK78jyshO3hMq9+wDKO/OCGHO1mFFLrZQQ=; b=vBjJgF2tr5fQPYUyY9la+L9kX3XIXX2YaNkc4T69YzJJIwx8DjdO2ARyFTafpX+x5M gcKwAlrRidE+G60KAXaSC45Cbsbyg6Ip6AM95OYbnOKmTp1hjNEcffd1TEXB0fgojEIs /3RV+EbEKHfCGtCcVNmbvF2wCRfC8kwnxj6DfeU3ILZ3sJulSD8k05EUdIR88689iISH uGXLX3Jm5v7xh6+VZKj1s4mXq0dhLwWXdyBkiGRlei7Em26wbCxLzzOnYdGocTSAH/fq EcdlpU6nJOSSV4M055UKL+ihoxIuvd77OBBZKylWWwqHv69jDJ08RyBI8T0e3b+IpIJu uoNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=enMYkBkI; 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=zx2c4.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e34-20020a17090a6fa500b001bc1db65b9fsi7215463pjk.67.2022.02.25.06.55.20; Fri, 25 Feb 2022 06:55:37 -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=@zx2c4.com header.s=20210105 header.b=enMYkBkI; 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=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240823AbiBYM5b (ORCPT + 99 others); Fri, 25 Feb 2022 07:57:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235676AbiBYM53 (ORCPT ); Fri, 25 Feb 2022 07:57:29 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A9B7286EE; Fri, 25 Feb 2022 04:56:52 -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 062BF61BF8; Fri, 25 Feb 2022 12:56:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B5C3AC340E8; Fri, 25 Feb 2022 12:56:50 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="enMYkBkI" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1645793808; 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: in-reply-to:in-reply-to:references:references; bh=XssgunSt6iK78jyshO3hMq9+wDKO/OCGHO1mFFLrZQQ=; b=enMYkBkIudB/0krPIVVLhzRClwGqp92bzymz3GlaPY/CynpKIXYX03wKBGZ52ZVCe9Eujn kgPdqeLrCuQURxB1lO3tnKlABuuou7tz8M7L/27vzfUSx9/E+GZStDwJkrdcK/PldDBDFn 5MO5bLzFBsxUJCj89tpuB1ncnSfIF98= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 7f77180f (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Fri, 25 Feb 2022 12:56:48 +0000 (UTC) Received: by mail-yb1-f180.google.com with SMTP id e140so5677751ybh.9; Fri, 25 Feb 2022 04:56:46 -0800 (PST) X-Gm-Message-State: AOAM53285l4JXrzMYBbOkJo7n7JLpOeJRdxReNaxjVuAUerwEvl8CXL2 IcW9eAQxCQ2kHgsFCpzMDGf4f8pw0AeFvhKWKGw= X-Received: by 2002:a25:d116:0:b0:61d:e8c9:531e with SMTP id i22-20020a25d116000000b0061de8c9531emr7032586ybg.637.1645793805904; Fri, 25 Feb 2022 04:56:45 -0800 (PST) MIME-Version: 1.0 References: <20220225124848.909093-1-Jason@zx2c4.com> In-Reply-To: From: "Jason A. Donenfeld" Date: Fri, 25 Feb 2022 13:56:35 +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: KVM list , Linux Crypto Mailing List , linux-hyperv@vger.kernel.org, LKML , adrian@parity.io, Ard Biesheuvel , 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 , "K . Y . Srinivasan" , Laszlo Ersek , Dominik Brodowski , "Michael S. Tsirkin" , QEMU Developers , "Weiss, Radu" , Stephen Hemminger , "Theodore Ts'o" , Wei Liu Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, 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, Feb 25, 2022 at 1:53 PM 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. Nice! Will do. Jason