Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp629489ybl; Fri, 13 Dec 2019 02:03:17 -0800 (PST) X-Google-Smtp-Source: APXvYqzbNN/5hLgflKmlLp0EXGdn2Z1CClddiCM57SyYf30GOfnRyqHgLfZFn/le0tq+TgHeu2W6 X-Received: by 2002:a05:6830:10c9:: with SMTP id z9mr13683633oto.200.1576231397036; Fri, 13 Dec 2019 02:03:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576231397; cv=none; d=google.com; s=arc-20160816; b=vfQ0b8IJB8b7eb6DTeXPAXhjbDdGDy25u4nqwlXdhw7C+a76aUcpn9oK2CByIuWexI s9zZxxBEqi0o12EQNDtP0MocDoANZQCLKVggR5E+r3ncydhqrEhstLO0uiyU2gYEV3A2 ZLzDfNWWzAAsegWqhwnTTpB89aeV281EzK59gFAzwwnGZmRbda1f5k9Ozi3pJkmDrjPX 66ed55839viGg0XBruoOI68TgygZxftacvJX2FOWlJBspnkf9SrCP7T+YWhxTV3XqsAJ FLTSZ2P87lk7bw1Ytvx2CiaBQFRtM41uP4n3OwvDNdpJmn3WUgyLEOWaExAWB3fo+kpE E2gA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=m/KT5sLA4KygX+99SxVR85YLHBWRspUmwJQVE2EKCOo=; b=LFFoDpwQL3rMlSXVOlbCOlaNEYj/4yxJK0mXXwiIxUd55Deiys6mmYqDw8GMEEJw5w x52ncX81MUifED9e1yt9bykEFTSIPgljfQeQn6jGHT0tvR9/gF1rI5HaeEdl693OnjeZ ooLKUL/v8Tj7U/Y0jLV5tTwTGJSTp7HOL135LCg7fAuD8RBFBjO+rR0qFh+iIZ6LSkCf FGByOVupCBY9g4sEemK1xXhgxE1pppnWyICU3J+RZInntfkfc9ufqgjPwN+bFtl+pB0A mVNQUJZdAVGrXWMu8J2GEVp+BRsk6Kc6RvyOAJg2jRzVf5r2ct2WOLV4dZcRQJAWI7uY GTQg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x26si4699157oie.58.2019.12.13.02.03.02; Fri, 13 Dec 2019 02:03:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726718AbfLMKCL (ORCPT + 99 others); Fri, 13 Dec 2019 05:02:11 -0500 Received: from mx2.suse.de ([195.135.220.15]:54082 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725747AbfLMKCL (ORCPT ); Fri, 13 Dec 2019 05:02:11 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 81C2FB291; Fri, 13 Dec 2019 10:02:08 +0000 (UTC) Subject: Re: [Xen-devel] [PATCH net-next] xen-netback: get rid of old udev related code To: "Durrant, Paul" , David Miller Cc: "xen-devel@lists.xenproject.org" , "wei.liu@kernel.org" , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" References: <20191212135406.26229-1-pdurrant@amazon.com> <20191212.110513.1770889236741616001.davem@davemloft.net> <9f6d296e94744ce48d3f72fe4d3fd136@EX13D32EUC003.ant.amazon.com> From: =?UTF-8?B?SsO8cmdlbiBHcm/Dnw==?= Message-ID: <39762aba-7c47-6b79-b931-771bc16195a2@suse.com> Date: Fri, 13 Dec 2019 11:02:06 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 In-Reply-To: <9f6d296e94744ce48d3f72fe4d3fd136@EX13D32EUC003.ant.amazon.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13.12.19 10:24, Durrant, Paul wrote: >> -----Original Message----- >> From: Jürgen Groß >> Sent: 13 December 2019 05:41 >> To: David Miller ; Durrant, Paul >> >> Cc: xen-devel@lists.xenproject.org; wei.liu@kernel.org; linux- >> kernel@vger.kernel.org; netdev@vger.kernel.org >> Subject: Re: [Xen-devel] [PATCH net-next] xen-netback: get rid of old udev >> related code >> >> On 12.12.19 20:05, David Miller wrote: >>> From: Paul Durrant >>> Date: Thu, 12 Dec 2019 13:54:06 +0000 >>> >>>> In the past it used to be the case that the Xen toolstack relied upon >>>> udev to execute backend hotplug scripts. However this has not been the >>>> case for many releases now and removal of the associated code in >>>> xen-netback shortens the source by more than 100 lines, and removes >> much >>>> complexity in the interaction with the xenstore backend state. >>>> >>>> NOTE: xen-netback is the only xenbus driver to have a functional >> uevent() >>>> method. The only other driver to have a method at all is >>>> pvcalls-back, and currently pvcalls_back_uevent() simply returns >> 0. >>>> Hence this patch also facilitates further cleanup. >>>> >>>> Signed-off-by: Paul Durrant >>> >>> If userspace ever used this stuff, I seriously doubt you can remove this >>> even if it hasn't been used in 5+ years. >> >> Hmm, depends. >> >> This has been used by Xen tools in dom0 only. If the last usage has been >> in a Xen version which is no longer able to run with current Linux in >> dom0 it could be removed. But I guess this would have to be a rather old >> version of Xen (like 3.x?). >> >> Paul, can you give a hint since which Xen version the toolstack no >> longer relies on udev to start the hotplug scripts? >> > > The udev rules were in a file called tools/hotplug/Linux/xen-backend.rules (in xen.git), and a commit from Roger removed the NIC rules in 2012: > > commit 57ad6afe2a08a03c40bcd336bfb27e008e1d3e53 Xen 4.2 > The last commit I could find to that file modified its name to xen-backend.rules.in, and this was finally removed by George in 2015: > > commit 2ba368d13893402b2f1fb3c283ddcc714659dd9b Xen 4.6 > So, I think this means anyone using a version of the Xen tools within recent memory will be having their hotplug scripts called directly by libxl (and having udev rules present would actually be counter-productive, as George's commit states and as I discovered the hard way when the change was originally made). The problem are systems with either old Xen versions (before Xen 4.2) or with other toolstacks (e.g. Xen 4.4 with xend) which want to use a new dom0 kernel. And I'm not sure there aren't such systems (especially in case someone wants to stick with xend). Juergen