Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.6 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A2BC1C4363D for ; Fri, 25 Sep 2020 16:13:43 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 286C8235FD for ; Fri, 25 Sep 2020 16:13:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="c0aO188T" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 286C8235FD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kLqLi-0007OA-Ub; Fri, 25 Sep 2020 16:13:30 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kLqLh-0007O2-EP for xen-devel@lists.xenproject.org; Fri, 25 Sep 2020 16:13:29 +0000 X-Inumbo-ID: e70f2178-a6d8-4df2-9dde-c535f43e186f Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id e70f2178-a6d8-4df2-9dde-c535f43e186f; Fri, 25 Sep 2020 16:13:28 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1601050407; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=p6Sq9ji1PM5FlGQO1c4vjS28meIESNDlDXj8DIEVwHY=; b=c0aO188ToDtqQTZKluNxZNLfbTIIv6vLbK4C3KZfN83zQC8k6ruDq2O0D4FNRxRfGlQ29X F0ibgsqh0dt6WeKsN1wr+w84OHGYHmgMTjCHQE6i/hKRt2x8GXsa4zupkTUCi3OV8/17H3 MCSeP71puRQBYPC2FZGQdLFX5qSzsGo= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 67595ACA3; Fri, 25 Sep 2020 16:13:27 +0000 (UTC) Subject: Re: [PATCH] evtchn/Flask: pre-allocate node on send path To: Julien Grall Cc: "xen-devel@lists.xenproject.org" , Daniel de Graaf , Andrew Cooper , George Dunlap , Ian Jackson , Wei Liu , Stefano Stabellini , Christopher Clark , =?UTF-8?Q?Marek_Marczykowski-G=c3=b3recki?= References: <8237e286-168f-a4e7-be8b-aba5ff781e7c@xen.org> <706b94ae-ca05-2218-6025-e5d62297dda6@suse.com> <3ad0529d-ad55-8864-1df2-193eaf104c1f@xen.org> <6d6d7550-8847-267e-49f2-0ca098ef97ad@suse.com> <2a62f5e4-9915-bcd7-05b3-77663c995a13@xen.org> <9adeac3b-2b0f-6e9d-aa82-fd966e984fa0@suse.com> <52dba8e8-5976-48a2-7a74-ddf877880c6e@xen.org> From: Jan Beulich Message-ID: <80ca5fa6-4f55-bb3b-bb21-f8b8f024d08c@suse.com> Date: Fri, 25 Sep 2020 18:13:28 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <52dba8e8-5976-48a2-7a74-ddf877880c6e@xen.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" On 25.09.2020 18:00, Julien Grall wrote: > On 25/09/2020 16:36, Jan Beulich wrote: >> Plus, as said, the minimal change of making Flask >> avoid xmalloc() when IRQs are off is a change that ought to be made >> anyway imo, in order to favor proper functioning over performance. > If there are other use, then yes. What I don't like in the current > approach is we are hijacking xsm_event_send() for pre-allocating memory. I first had a designated function for this, but the need to wire this through ops, dummy.h, etc made me pretty quickly turn to this lower churn variant. But that other one hasn't been ruled out if the "hijacking" is deemed too bad. Jan