Return-Path: Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1j2Tcm-0001Do-IO for linux-um@lists.infradead.org; Fri, 14 Feb 2020 05:34:50 +0000 Received: by mail-pf1-x443.google.com with SMTP id 84so4307324pfy.6 for ; Thu, 13 Feb 2020 21:34:45 -0800 (PST) Date: Fri, 14 Feb 2020 14:34:33 +0900 Message-ID: From: Hajime Tazaki Subject: Re: [PATCH 4/6] um: implement time-travel=ext In-Reply-To: References: <20200213132651.20506-1-johannes@sipsolutions.net> <20200213132651.20506-5-johannes@sipsolutions.net> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-um" Errors-To: linux-um-bounces+geert=linux-m68k.org@lists.infradead.org To: johannes@sipsolutions.net Cc: linux-um@lists.infradead.org Hello, On Fri, 14 Feb 2020 00:52:39 +0900, Johannes Berg wrote: > > > The protocol for the unix domain socket is defined in the new file > > > include/uapi/linux/um_timetravel.h. > > > > I was wondering if the source code of the special application (central > > scheduler?) is public (or not) so that we can test on a local machine. > > So ... sadly, it's a bit of a sad story right now. > > I have one, but it's part of a bigger testing framework that we wrote > (and uses the infrastructure from it), that I haven't been able to > release so far. I understand. Thanks for telling this. > On this tool, conceptually, the code is very simple, just keep a sorted > "next event" list, and tell the next one that it's their turn. I can imagine how it looks like, as I was doing a similar integration with kernel code and ns-3 network simulator (which isn't LKL). This is just my 2 cents (and may be out of topic for the patch review); it would be nice to have an example code of this external program. Since the program is independent from arch/um, this is a great opportunity to extend in future. One might wish to implement his/her own scheduler for particular purpose; for instance, a randomized error injection into time progress to exercise or fuzzing the Linux implementation, or alternate external program that can handle multiple UML instances across different nodes (it this already possible?). In such case, having a reference implementation would be helpful. > For a vhost-user device implementation, it's a bit more complex, as it > needs to be able to handle scheduler messages while waiting for a vhost- > user ACK message, similar to what you can see in the UML vhost-user > code. Let me try to look at the code. -- Hajime _______________________________________________ linux-um mailing list linux-um@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-um