Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2591456pxb; Mon, 11 Jan 2021 13:57:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJxQAcs4ZNjzeNnVrFx+85cGP/tV89/5q312lA1o8GY6l/8FmXML/bDLKMjVFy7FFwJDqrkK X-Received: by 2002:a17:906:d787:: with SMTP id pj7mr1044032ejb.548.1610402262535; Mon, 11 Jan 2021 13:57:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610402262; cv=none; d=google.com; s=arc-20160816; b=r2iDc/HRvKp8v4S6BKcayhLm0ljVOEQ3av/RBKfaJ1q19d7QDD06rpgORvslEWHHz9 O1vH9Ep5MBSKtiztO5zhNMzp+qaJNQwRsseyZSwp8rrrpxzO4iZYce2EYBQtk2Qf+gtv cBD+rYBHMQHvD+/X34tYDo5/OLk+UsOL0CjUOLlWNc0Hu7YdMLnkJUxmqcN3hcQjjiN5 R1wE+PSSykVGa5DURC0KaZ+0XlMDuCSKQAkGztT2eRQNoL1axQzqQzlZkcoN3Km+H/Ms KFSmTOVQg9LTWAvr9FxZZAnIUPu1IN6HCkQijhqw4cqOcnp53tmT3Mz/j3APjeNjcEoO G8mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=4052z6LyKWpzLv1sZ7xRYpCDWheCbTX3KPJVJWv2wEw=; b=XZ+cQRlu6vKCp81jvCDcqdLwXcZF5w8JEkvY0ngCD7UegOSr1IemN08W1RiLWwc84v 5tg+x2bVQYFSOKe1liM3vxep5MiFP8J+time2KHk+hM1HgvM6yH6bCYmrc+RAvoHx+4N VRC/QPmaoAIzfLNseaDg+j8cwUTt60WreCYphM4q8N7sZ+VVo7Ip7OG26xyGtdeewIPD ZXsjZbOtZsqxlPQ033gOZ7miE0nDeQmKSB354I/9jbeYGvGkYrbPpXc8sX1DQdA6BtNf AAvfkdTKdRiC+nodcEuYpRp0/fzC8BkGytpwxJS+sPSCSGW+0HC0862uP1S5cbGpSZdv Altg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jg20si239098ejc.558.2021.01.11.13.57.17; Mon, 11 Jan 2021 13:57:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388995AbhAKVxI (ORCPT + 99 others); Mon, 11 Jan 2021 16:53:08 -0500 Received: from mx2.suse.de ([195.135.220.15]:60306 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725917AbhAKVxH (ORCPT ); Mon, 11 Jan 2021 16:53:07 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id B4C3BAB92; Mon, 11 Jan 2021 21:52:26 +0000 (UTC) Date: Mon, 11 Jan 2021 13:52:19 -0800 From: Davidlohr Bueso To: shuo.a.liu@intel.com Cc: linux-kernel@vger.kernel.org, x86@kernel.org, Greg Kroah-Hartman , "H . Peter Anvin" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Yu Wang , Reinette Chatre , Zhi Wang , Zhenyu Wang Subject: Re: [PATCH v7 09/18] virt: acrn: Introduce I/O request management Message-ID: <20210111215219.l44yfpyqh4m2mcbl@offworld> References: <20210106075055.47226-1-shuo.a.liu@intel.com> <20210106075055.47226-10-shuo.a.liu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20210106075055.47226-10-shuo.a.liu@intel.com> User-Agent: NeoMutt/20201120 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 06 Jan 2021, shuo.a.liu@intel.com wrote: >The processing flow of I/O requests are listed as following: > >a) The I/O handler of the hypervisor will fill an I/O request with > PENDING state when a trapped I/O access happens in a User VM. >b) The hypervisor makes an upcall, which is a notification interrupt, to > the Service VM. >c) The upcall handler schedules a tasklet to dispatch I/O requests. >d) The tasklet looks for the PENDING I/O requests, assigns them to > different registered clients based on the address of the I/O accesses, > updates their state to PROCESSING, and notifies the corresponding > client to handle. Hmm so tasklets are deprecated (and have been for a while) and it's sad to see incoming new users in modern Linux. This wouldn't be the first one, however. We should be _removing_ users, not adding... In addition, this expands the whole tasklet_disable/enable() hacks. Could this not be done in process context instead? Thanks, Davidlohr