Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8493077ybi; Thu, 6 Jun 2019 13:20:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqw9nR68Jit4vNHyQDfgdj6Gb+34huofLzbQNUmkVIQuwwunY6Ge7MFfSErQk9B5fDaJA/uJ X-Received: by 2002:aa7:82d7:: with SMTP id f23mr54094685pfn.138.1559852400308; Thu, 06 Jun 2019 13:20:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559852400; cv=none; d=google.com; s=arc-20160816; b=knnBaQnhudebnE6NzinVKgPE7Ea9QLvLiOjhSRZw9kDxmBGuA3u5FUKKJ+nK4Icypy Kg7rKUOXeK5trcVvQ+7IRdc7vBCG1ySytC4zcKpLeboHiV/Kl9lDC3kLiOhMRnB7eF7i c9nQwulqAoJCpq8Hdi/gGFqjrmZSkacUpuRIHPISDiHYudS73YjNpqF/HLqc0UJVCwMU vHYwcVKDMPx9qyafaMOjTSvtDYXsn3Gxg/8Z24Xk2vRM8G6ejtdJ7oTFsmXf8Hb3C7wt MbsteKjBQdQFQlShNoyJFdP0CvuQZeGozlrk1TpLjyXQG1n9y5nl0ROJHkgGoscLhU0y eWEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version; bh=OWaC5E1iVmLh5OxSo371TCWNp8ft5pv5sULO16X4hDE=; b=bzagjLXvSTk314ffoGSQKKyQuk5Y9iv5+LqsHU7QnHEhsbi74L/neimax0GORQhkjA t+ZKNuwCtkdIvmZrWmkfDLM9g4ADdOWuqZe9jtVuP0/92RU2UsV1dg8vl2mmKjEO/in/ n0ONeiSYoQx/3i6cW2h9qelvLgqKvAMdpz5+ytje8wvB+3By3rTrSccO72QWllqmoMuy plx/ICwo8GLZp9vHpXQ4StmMfqJq1LeATXx+n0PVP8hckibQvTmO5mowy5oMxdchvVaX WBmCokaNFsI3QRAPWCt76gORvzDPH+FzhELk/Y42gHDa8UUimrAYBhzWRLdnQJdCuSbZ mrhw== 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 m1si51615pld.236.2019.06.06.13.19.44; Thu, 06 Jun 2019 13:20:00 -0700 (PDT) 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 S1728560AbfFFUMA (ORCPT + 99 others); Thu, 6 Jun 2019 16:12:00 -0400 Received: from mx2.suse.de ([195.135.220.15]:58646 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727082AbfFFUMA (ORCPT ); Thu, 6 Jun 2019 16:12:00 -0400 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 7B49AAF8A; Thu, 6 Jun 2019 20:11:58 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 06 Jun 2019 22:11:57 +0200 From: Roman Penyaev To: Renzo Davoli Cc: Greg KH , Alexander Viro , Davide Libenzi , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, linux-kernel-owner@vger.kernel.org Subject: Re: [PATCH 1/1] eventfd new tag EFD_VPOLL: generate epoll events In-Reply-To: <20190603150010.GE4312@cs.unibo.it> References: <20190526142521.GA21842@cs.unibo.it> <20190527073332.GA13782@kroah.com> <20190527133621.GC26073@cs.unibo.it> <480f1bda66b67f740f5da89189bbfca3@suse.de> <20190531104502.GE3661@cs.unibo.it> <20190603150010.GE4312@cs.unibo.it> Message-ID: <5d44edf655e193789823094d1b4301fd@suse.de> X-Sender: rpenyaev@suse.de User-Agent: Roundcube Webmail Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Renzo, On 2019-06-03 17:00, Renzo Davoli wrote: > Hi Roman, > > I sorry for the delay in my answer, but I needed to set up a minimal > tutorial to show what I am working on and why I need a feature like the > one I am proposing. > > Please, have a look of the README.md page here: > https://github.com/virtualsquare/vuos > (everything can be downloaded and tested) Is that similar to what user-mode linux does? I mean the principle. > I am not trying to port some tools to use user-space implemented > stacks or device > drivers/emulators, I am seeking to a general purpose approach. You still intersect *each* syscall, why not to do the same for epoll_wait() and replace events with correct value? Seems you do something similar already in a vu_wrap_poll.c: wo_epoll_wait(), right? Don't get me wrong, I really want to understand whether everything really looks so bad without proposed change. It seems not, because the whole principle is based on intersection of each syscall, thus one more one less - it does not become more clean and especially does not look like a generic purpose solution, which you seek. I may be wrong. -- Roman