Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp3237391pxb; Tue, 12 Jan 2021 09:32:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJz2nMczDMv3kkBZmJcr8X9GPYVNxYT06TKjYJRXgvjS1JSa6+k3MA9Pa56sPX8nzCTXCiT/ X-Received: by 2002:a17:906:254b:: with SMTP id j11mr3967197ejb.326.1610472737391; Tue, 12 Jan 2021 09:32:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610472737; cv=none; d=google.com; s=arc-20160816; b=eHAiZMKTh+qIoC08O+4niayqU0Q2o26oJWfHpVi312TWL34Wo1bSjvCoPJxFobJlwi UqFBSVsRr6dnjzko/15nJekc+/o31axalWB3NgmU5k36Oitu2INRPCAJrGUtTJHR212o hTuapbbtsh5otXcdExEt+AnVnBY9/x/7WIqG5s2owEvFugRschKib98imjoUO04uBFie hsd0lzI1DkCUC6yCXmj30+kx+LzOvCn3Kry/sHwjCT0eiqiA+i8qfMv4a25dTgkdrb3H mzBEXI32ONNo0RD9XvoaKWciH6DJhjneerqtlyrgR679j4ZTgMISDXtYNgIyf09Ihz2x LlFg== 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=SUczwgJHL0Gb2FZLyCEJG1igq64YA76Dn68ufEdr0tI=; b=ac+Um5mPT+WELXgb7QGuo59K2+rcLR4XimSVyvQMeracMD1ng1yC3/T/A5B7RD3Bfg L8JeNEcxizy0MajJgsgK/MLplkxeKuWpWgQvyl4C4y4wyxSOuIOX/IMZRsmlRw300Avw VIv6nsAccGAxnY20nKZfmzlhqmZWKEOkkIzh83ZRbptR75Dy/YJQayLUssESQftVfL1b UzQBycXUf92Aq6mPk9jpi88unGKvqhozdxgyW321Eg2BNWSITdbgdj2u0wa9oCrAHXg6 hx8oBkev5UyatGEa/SLbXZSQ0pkc+fHl8ORbmd5YwHkUEcI7w+t3thbK1pYeeXfTdR9K Myhw== 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 b21si1340336ejk.520.2021.01.12.09.31.53; Tue, 12 Jan 2021 09:32:17 -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 S2405120AbhALR3t (ORCPT + 99 others); Tue, 12 Jan 2021 12:29:49 -0500 Received: from mx2.suse.de ([195.135.220.15]:42042 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388300AbhALR3t (ORCPT ); Tue, 12 Jan 2021 12:29:49 -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 4594BABD6; Tue, 12 Jan 2021 17:29:08 +0000 (UTC) Date: Tue, 12 Jan 2021 09:29:01 -0800 From: Davidlohr Bueso To: Shuo A Liu 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: <20210112172901.ilp7vf3hqmbvav7y@offworld> References: <20210106075055.47226-1-shuo.a.liu@intel.com> <20210106075055.47226-10-shuo.a.liu@intel.com> <20210111215219.l44yfpyqh4m2mcbl@offworld> <20210112060527.GF22447@shuo-intel.sh.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20210112060527.GF22447@shuo-intel.sh.intel.com> User-Agent: NeoMutt/20201120 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 12 Jan 2021, Shuo A Liu wrote: >On Mon 11.Jan'21 at 13:52:19 -0800, Davidlohr Bueso wrote: >>Could this not be done in process context instead? > >It could be. The original consideration with tasklet was more about >performance as the I/O requests dispatching is a hot code path. I think >irq thread has little performance impact? I can have a try to convert >the tasklet to irq thread. Yes, there is some added latency between when the work is scheduled and actually executed - however this should not be a problem for this scenario, and furthermore consider that tasklets do not guarantee performance as ksoftirqd comes in the picture under heavy load. Thanks, Davidlohr