Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4068227imu; Fri, 30 Nov 2018 10:23:48 -0800 (PST) X-Google-Smtp-Source: AFSGD/Xltjcz8C0UFmwDPBYZvDVGBTr1aBOscQjU+rsLnPwsA5WQ2VSNxc4Gm0fXs0P2zQGXV/rw X-Received: by 2002:a17:902:6bc7:: with SMTP id m7mr6853222plt.106.1543602228659; Fri, 30 Nov 2018 10:23:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543602228; cv=none; d=google.com; s=arc-20160816; b=j215BQ7rJo/IzS5bTV0pFpfRqxPsikKMjq8Ff/SLWF2mtaMH+o2R4FTTpEN3NE6SZI KGWOutOIHKvbmqnfeFTwRq6GE3oUMOAnCLNksDYODVVrJLSkl7M6w7B8jcuIS4uOHmHh zAW6IP9gdIaMh7UKtSZgMxiUmWy3rckv9+adL5Dd0PBtLdKkkN3iF5QeRLNljL7jzXcS 02CIwI63MJnPhs+sepEkDMpi79Vt23RroK9o6Uzalje6NHLG0buMuboBjdejRn5//s4C p937H/X2YiLLdB9G5lfMwmrPlgzgh22oK9YLTFK0WZLQ6LNRwK00HcTjrlMrG/if8Y5x ggSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=pQcUow3rtfROGco5fKqiF8AvO6eLeBwD4In1k1teLIg=; b=yGtBeMOOVJYxHZG14wP1xe3YEBmn5Qw1IH3n1hOZ2ojxt5GP/sgbZx/h0Ynx03aVgd bwROCTjIEjT9FzumNt0ung/n2tAoq1msH/xrAkKMLj/EE3dmT03pHw7BesogDICRIGGZ g5yasPwlxsAUVm+u8/ChMqrriNR1Q+OWAFtXa3p7GOkFAo9zP8O+rPXQYnstrtG4hdKM GOXKCGsiW3+fZlaurUAndy82T/xEmfMMIBnn08xy23Ue80ZFIDwWmQUDL3kuYdoSofB0 1lEfBmViGCTSli7dQCYk8rNuBhlo9TCBiJKq2w7ACacDLkcHqzEk3s1hfplM9Uj7skMS fciQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i1si5498506pgr.569.2018.11.30.10.23.33; Fri, 30 Nov 2018 10:23:48 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726837AbeLAFcR (ORCPT + 99 others); Sat, 1 Dec 2018 00:32:17 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:34400 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725817AbeLAFcR (ORCPT ); Sat, 1 Dec 2018 00:32:17 -0500 Received: by mail-pg1-f193.google.com with SMTP id 17so2855662pgg.1; Fri, 30 Nov 2018 10:22:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=pQcUow3rtfROGco5fKqiF8AvO6eLeBwD4In1k1teLIg=; b=ph2cCJpqajKOz9PAmyEE71jqwmhGuj6oi1ba5pV8FA3d7at2yW4TJfh7QxAe6UNjGO llKL7s2lJbOh+udALjdu0sVdz61EjmMImHk52QSzCUp/ZRNPqVfJ/1C+qfRzEFD9Z1Eg VOPZYw83DVUpvxq/rs6BD2OP9dtW3+TYYDL+nI3jK3kN9lI2rH6nzYUeM3bQvAPgUPoF +qXpAl6lIEgNsQaTusGnuna2qXrxFJi5lajQtP0s6GTFU8jczCwBcWG3jZy7BHI7nb+R jkQCGCFIVzICmvuPz/8popum44e+OLLyJ5Fh2SK/h8abSG2DTdanuLXUiuL59kvrOGGQ nEjg== X-Gm-Message-State: AA+aEWa0t1a63OC8xGIuYor3pxaoBTqtnYrXhg4PuwgjaOoQfGCL56Rc Eo+M4tY/uOmyi0KSuWMf7mw= X-Received: by 2002:a65:60c2:: with SMTP id r2mr4559360pgv.393.1543602128770; Fri, 30 Nov 2018 10:22:08 -0800 (PST) Received: from garbanzo.do-not-panic.com (c-73-71-40-85.hsd1.ca.comcast.net. [73.71.40.85]) by smtp.gmail.com with ESMTPSA id d18sm7781998pfj.47.2018.11.30.10.22.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 30 Nov 2018 10:22:07 -0800 (PST) Received: by garbanzo.do-not-panic.com (sSMTP sendmail emulation); Fri, 30 Nov 2018 10:22:03 -0800 Date: Fri, 30 Nov 2018 10:22:03 -0800 From: Luis Chamberlain To: Rob Herring , Arnd Bergmann Cc: Brendan Higgins , Greg Kroah-Hartman , Kees Cook , shuah@kernel.org, Joel Stanley , Michael Ellerman , Joe Perches , brakmo@fb.com, Steven Rostedt , "Bird, Timothy" , Kevin Hilman , Julia Lawall , linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, "linux-kernel@vger.kernel.org" , Jeff Dike , Richard Weinberger , linux-um@lists.infradead.org, Daniel Vetter , dri-devel , Dan Williams , linux-nvdimm , Kieran Bingham , Frank Rowand , knut.omang@oracle.com Subject: Re: [RFC v3 06/19] arch: um: enable running kunit from User Mode Linux Message-ID: <20181130182203.GS18410@garbanzo.do-not-panic.com> References: <20181128193636.254378-1-brendanhiggins@google.com> <20181128193636.254378-7-brendanhiggins@google.com> <20181130033704.GL18410@garbanzo.do-not-panic.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 30, 2018 at 08:05:34AM -0600, Rob Herring wrote: > On Thu, Nov 29, 2018 at 9:37 PM Luis Chamberlain wrote: > > > > On Wed, Nov 28, 2018 at 03:26:03PM -0600, Rob Herring wrote: > > > On Wed, Nov 28, 2018 at 1:37 PM Brendan Higgins > > > wrote: > > > > > > > > Make minimum number of changes outside of the KUnit directories for > > > > KUnit to build and run using UML. > > > > > > There's nothing in this patch limiting this to UML. > > > > Not that one, but the abort thing segv thing is, eventually. > > To support other architectures we'd need to make a wrapper to that > > hack which Brendan added, and then allow each os to implement > > its own call, and add an asm-generic helper. > > I've not looked into why this is needed, but can't you make the abort > support optional and arches can select it when they support it. Its why I have asked for it to be properly documented. The patches in no way illustrate *why* such thing is done. And if we are going to potentially have other archs do something similar best to make it explicit. > At > least before, the DT unittests didn't need this to run and shouldn't > depend on it after converting to kunit. Luis