Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1230522lqa; Mon, 29 Apr 2024 02:05:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUepo69eDXmMYXM4dCi9CMPVNftYqVrGFSDT2+cFQCyMGKe5fSW3OIeX5/o1yz5sgFht5/if+Ae6kDWy2BARwgZar4DK+RJvcW9FhOWFw== X-Google-Smtp-Source: AGHT+IGvsED15YBM0ZzPjK0tDt5/H6+IafqjMKXH4hIb7WpmUjrS+nondA159tl24VJchDmYRMAn X-Received: by 2002:a05:6870:b148:b0:22e:ddcb:b59e with SMTP id a8-20020a056870b14800b0022eddcbb59emr12351793oal.40.1714381548951; Mon, 29 Apr 2024 02:05:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714381548; cv=pass; d=google.com; s=arc-20160816; b=qT8kPnnPqigmmGTR6mnXWW2ERE9EKJNEgcmkBu3ADDivMEAZ9cEEiS/I9FnKjPgom2 pABedM/FFeA/POxH3cS3DZULjb8DAxRA87T6Wcyd0rTRJ3OCoOksUhlUS95xo8zgAYBi dzt83Jk7XZ6aqVwnjrNPjW9F+bMdmNXBjRVk98FHwbzPrk97tA4H2uFZaPqvmfFpFThN MMllp+nEtdsOVSZ96T3kdcCdSY5IrWAU+sCRWzKCNHqTR06hida6RJTiu10qPhR01hXb 9Ky0ChQJH4vrxIR6CZTFe5J61PQ/STVICnb3FKYzeLEX+4FV3NV3+IaPjl8Y+wmc3Ikr lKhg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=H9ZBiwkmJv4MZD4a/1cw2hcXmMAF0/Sg7nByLKv3/h8=; fh=9HJsJMPIaZ35BJF38G+Xk9lfAGHRhTmAdAeiXDrlaGM=; b=MuC8kAg95sbuD9BfqBeOMhpxzquCOA668i/e7dt2I1YIQ6PVBRAiBvsP5A2pxVSaWr Cj43UJpIkZS+rvS0nESDnbiYoOz+TTHbi83LADvH8/pm3CJY9GN5CqfIMcGoI2UvgRlN vMdfFGVnYDJ9ELSYxAv/99MjN1uptCREXDHcLBfRA3ULTOSKeZPaVsZbHpLtPNlN4Alk 32gyCeO7Bb1cdrWaeTiJ6+AV8NBVa+Yazchi3Gi3FEQ7DALwTY+ULsr/i4WZ0n4jtEMr Wa2wCGbiHyStav5N8y0GSfUOkcpaHaqSVObi2ya41Mqbgad/+FpNabQ6NA9WmZ/q7ZLj vAuw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=0pointer.de); spf=pass (google.com: domain of linux-kernel+bounces-161960-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161960-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 17-20020a631051000000b005ee3cfc3620si19186090pgq.670.2024.04.29.02.05.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 02:05:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-161960-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=0pointer.de); spf=pass (google.com: domain of linux-kernel+bounces-161960-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161960-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id A60EFB21CB9 for ; Mon, 29 Apr 2024 09:05:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 970C9374C1; Mon, 29 Apr 2024 09:04:33 +0000 (UTC) Received: from gardel.0pointer.net (gardel.0pointer.net [85.214.157.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0BA562C68F; Mon, 29 Apr 2024 09:04:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=85.214.157.71 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714381473; cv=none; b=EGJvccZyVr3HFu/sYUou0j4b6uWRiXehUCxxFRyhDRBc5mNl5bv+J7NJneybf1RcQIDDGM/n2kV+nqznTeaBvQgIFJPuGaESVyzY4WzjEpGNTlBeV9mZUXvUVCEIaW4f/AY8/iC+e5NglJTCqXQmvZq3dG7wgVLAUZcMiP+Nhcg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714381473; c=relaxed/simple; bh=H9ZBiwkmJv4MZD4a/1cw2hcXmMAF0/Sg7nByLKv3/h8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XhP8+1ftttm48kyKbGLACY+yajZ24jE2FJTppVTvArl0DmcZtMkqxW4ASFNsmZQZ0wyxC/GUfMCHcyH4wG45PHHx48zFo+yq7l26EuT9nMGDZ/XomrZm3tnu2+HrbIwP+WuXFr1RbqoUlvu34OzvpFSbbuHJnE+HnKKCfhuEpzQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=0pointer.de; spf=pass smtp.mailfrom=0pointer.de; arc=none smtp.client-ip=85.214.157.71 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=0pointer.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=0pointer.de Received: from gardel-login.0pointer.net (gardel-mail [IPv6:2a01:238:43ed:c300:10c3:bcf3:3266:da74]) by gardel.0pointer.net (Postfix) with ESMTP id ECCD1E80F27; Mon, 29 Apr 2024 11:04:21 +0200 (CEST) Received: by gardel-login.0pointer.net (Postfix, from userid 1000) id 852A81600A1; Mon, 29 Apr 2024 11:04:21 +0200 (CEST) Date: Mon, 29 Apr 2024 11:04:21 +0200 From: Lennart Poettering To: "Jason A. Donenfeld" Cc: Alexander Graf , linux-kernel@vger.kernel.org, stable@vger.kernel.org, Greg Kroah-Hartman , Linus Torvalds , Babis Chalios , Theodore Ts'o , "Cali, Marco" , Arnd Bergmann , "rostedt@goodmis.org" , Christian Brauner , linux@leemhuis.info, regressions@lists.linux.dev Subject: Re: [REGRESSION] Re: [PATCH] Revert "vmgenid: emit uevent when VMGENID updates" Message-ID: References: <20240418114814.24601-1-Jason@zx2c4.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Fr, 26.04.24 14:52, Jason A. Donenfeld (Jason@zx2c4.com) wrote: > I don't think adding UAPI to an individual device driver like this Does vmgenid really qualify as "an individual device driver"? It's a pretty generic software interface, implemented by various different VMMs these days. It is also the only interface I am aware of that actually exists and would provide the concept right now? if this was really hyperv specific, then I'd agree it's just an "individual device driver". But it's widely implemented, for example a trivial command line switch in qemu. Hence, for something this generic, and widely deployed with multiple backend implementations I think we can say it's kinda more of a subsystem and less of an individual driver, no? > is a good approach especially considering that the virtio changes we > discussed some time ago will likely augment this and create another > means of a similar notification. And given that this intersects with > other userspace-oriented work I hope to get back to pretty soon, I > think introducing some adhoc mechanism like this adds clutter and > isn't the ideal way forward. If one day a virtio-based equivalent shows up, then I'd be entirely fine with supporting this in userspace directly too , because virtio too is a generic thing typically implemented by multiple VMM backends. From my userspace perspective I see little benefit in the kernel abstracting over vmgenid and virtio-genid (if that ever materializes), as a systemd person I am not asking for this kind of abstraction (in case anyone wonders). A generic ACPI device such as vmgenid is entirely enough of "generic" for me. The way we would process the event in userspace in systemd (from a udev rule) is so generic that it's trivial to match against two generic interfaces, instead of just one. And even if there's value in a generic abstraction provided by the kernel over both vmgenid and a future virtio-based thing: the kernel patch in question was a *single* line, and our hookup in userspace could easily be moved over when the day comes, because it's really not a rocket science level interface. It's a single parameterless event, how much easier could things get? I understand that how this all happened wasn't to everyones wishes, but do we really have to make all of this so complex if it could just be so simple? Why delay this further, why go back again given the event, the interface itself is such an utter triviality? Do we really make such a threatre around a single line change, a single additional uevent, just because of politics? Lennart -- Lennart Poettering, Berlin