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.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham 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 CE527C43331 for ; Thu, 26 Mar 2020 12:42:46 +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 A388A20658 for ; Thu, 26 Mar 2020 12:42:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A388A20658 Authentication-Results: mail.kernel.org; dmarc=none (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.89) (envelope-from ) id 1jHRq5-0000BG-Cw; Thu, 26 Mar 2020 12:42:25 +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.89) (envelope-from ) id 1jHRq4-0000BB-4C for xen-devel@lists.xenproject.org; Thu, 26 Mar 2020 12:42:24 +0000 X-Inumbo-ID: 3d4440a6-6f5f-11ea-87ce-12813bfff9fa Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 3d4440a6-6f5f-11ea-87ce-12813bfff9fa; Thu, 26 Mar 2020 12:42:23 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 5C2F7B138; Thu, 26 Mar 2020 12:42:22 +0000 (UTC) To: Andrew Cooper , xen-devel@lists.xenproject.org References: <20200326094557.13822-1-jgross@suse.com> <5a260627-c362-9fda-df42-8478df0e99e6@citrix.com> From: =?UTF-8?B?SsO8cmdlbiBHcm/Dnw==?= Message-ID: Date: Thu, 26 Mar 2020 13:42:21 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <5a260627-c362-9fda-df42-8478df0e99e6@citrix.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Xen-devel] [PATCH] tools/libxl: make default of max event channels dependant on vcpus X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Anthony PERARD , Ian Jackson , Wei Liu Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" On 26.03.20 13:36, Andrew Cooper wrote: > On 26/03/2020 09:45, Juergen Gross wrote: >> Today the maximum number of event channels for a guest is defaulting >> to 1023. For large guests with lots of vcpus this is not enough, as >> e.g. the Linux kernel uses 7 event channels per vcpu, limiting the >> guest to about 140 vcpus. >> >> Instead of requiring to specify the allowed number of event channels >> via the "event_channels" domain config option, make the default >> depend on the maximum number of vcpus of the guest. >> >> In order not to regress current configs use 1023 as the minimum >> default setting. >> >> Signed-off-by: Juergen Gross > > :( > > I suspect I regressed this by making it not actually dead code. > > 1023 is the 32bit EVT 2L ABI limit, but until I moved max_evtchn into > the createdomain hypercall, I'm pretty sure a limit never used to get set. In 4.11 I'm seeing it being set via xc_domain_set_max_evtchn(). Juergen