From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hajime Tazaki Subject: Re: [RFC v2 07/37] lkl: interrupt support Date: Wed, 05 Feb 2020 23:24:29 +0900 Message-ID: References: <567fd4d5c395e2279e86ca0bfca544ad2773a31d.1573179553.git.thehajime@gmail.com> <739ada9a-b88a-5192-fb4b-65132a74b4de@kot-begemot.co.uk> Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from mail-pg1-f193.google.com ([209.85.215.193]:44393 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726575AbgBEOYh (ORCPT ); Wed, 5 Feb 2020 09:24:37 -0500 Received: by mail-pg1-f193.google.com with SMTP id g3so1031327pgs.11 for ; Wed, 05 Feb 2020 06:24:37 -0800 (PST) In-Reply-To: <739ada9a-b88a-5192-fb4b-65132a74b4de@kot-begemot.co.uk> Sender: linux-arch-owner@vger.kernel.org List-ID: To: anton.ivanov@kot-begemot.co.uk Cc: richard.weinberger@gmail.com, linux-arch@vger.kernel.org, tavi.purdila@gmail.com, linux-um@lists.infradead.org, retrage01@gmail.com, linux-kernel-library@freelists.org, sigmaepsilon92@gmail.com Hello Anton, On Wed, 05 Feb 2020 19:49:37 +0900, Anton Ivanov wrote: > >>> arch/um/lkl/include/asm/irq.h | 13 ++ > >>> arch/um/lkl/include/uapi/asm/irq.h | 36 ++++ > >>> arch/um/lkl/include/uapi/asm/sigcontext.h | 16 ++ > >>> arch/um/lkl/kernel/irq.c | 193 ++++++++++++++++++++++ > >> > >> Like I said before, this also something to unify with UML. > >> I'm aware that this is easily said but we cannot have too much duplication. > >> > >> Feel free to ask if UML internals give you headache. :-) > > > > Same as nommu implementation, I left this part as-is. > > > > Triggering interrupts with fd events (delivered by epoll&co) is a hard > > part to implement host-independent interrupts of LKL. OTOH, the v3 > > patchset shows that it is doable to use UML drivers with the LKL > > interrupt facility. > > Make sure you are testing with the vector network devices, the > legacy ones are scheduled to be obsoleted at some point I was aware of the commit to obsolete several backend with the vector device, but did not include in the patchset and tests. I will try to do it for the next round. > I know this will cause a headache on non-Linux, I am happy to write > wrappers/emulators for recvmms/sendmmsg so these build on the > systems which do not support them. If UML is going to extend to support non-Linux host, yes, those kind of wrappers will be helpful. Right now, the patchset only focuses on x86 hosts so, this can be postponed. -- Hajime