From nobody Sun May 5 19:43:10 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1587040050; cv=none; d=zohomail.com; s=zohoarc; b=V3senXKHoJqzUyLqxNOkldwBgU6O20F5tcTqo5WCk96Bc7ExAEzt6q/9uLDcD1jjaa9nCPp49kZb+h3dyqTEjLw2IciD4lESRZmX4jUCul7priuZm+xyCTnaulinNM/OTfkZNNboS5dht2MQJaHOTXv19IPsKbhQDf76zP2AuUc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1587040050; h=Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:Message-ID:Sender:Subject:To; bh=tQNyPJYO892b/wZKA+ReH3zIZLrOritnKhxZC4D/6As=; b=nCKzjqDT2NXLQLFjwKogmYfKSMeYlqgWUg7tPeqehUD9VK+Nn5a6EsQ6z0hnliufzigEn10ToPctPeTz+nonnTJXF2WBK1Ekm9rr2Djefk84jPflUfmcE4zX4OM00UpvIwgot2VmznzO4I702Ok3QUiEtAtQZChpFn6rbrrnFSY= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1587040050060886.1733448964263; Thu, 16 Apr 2020 05:27:30 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1jP3bq-0003TU-BA; Thu, 16 Apr 2020 12:27:10 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1jP3bp-0003TJ-5P for xen-devel@lists.xenproject.org; Thu, 16 Apr 2020 12:27:09 +0000 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 93aa684c-7fdd-11ea-b58d-bc764e2007e4; Thu, 16 Apr 2020 12:27:03 +0000 (UTC) Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 0D00BAC6D; Thu, 16 Apr 2020 12:27:01 +0000 (UTC) X-Inumbo-ID: 93aa684c-7fdd-11ea-b58d-bc764e2007e4 X-Virus-Scanned: by amavisd-new at test-mx.suse.de From: Juergen Gross To: minios-devel@lists.xenproject.org, xen-devel@lists.xenproject.org Subject: [PATCH] mini-os: allow 4096 event channels for 64-bit mini-os Date: Thu, 16 Apr 2020 14:27:00 +0200 Message-Id: <20200416122700.22620-1-jgross@suse.com> X-Mailer: git-send-email 2.16.4 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: Juergen Gross , samuel.thibault@ens-lyon.org Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Limiting the number of event channels to 1024 is fine for 32-bit builds, but not for 64-bit ones. This might be a problem when using Xenstore-stubdom as the number of domains which can be supported is then limited to a little bit more than 1000. So raise the number of event channels to 4096 in 64-bit builds. Signed-off-by: Juergen Gross Reviewed-by: Samuel Thibault --- events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/events.c b/events.c index 342aead..cdae90f 100644 --- a/events.c +++ b/events.c @@ -23,7 +23,7 @@ #include #include =20 -#define NR_EVS 1024 +#define NR_EVS EVTCHN_2L_NR_CHANNELS =20 /* this represents a event handler. Chaining or sharing is not allowed */ typedef struct _ev_action_t { --=20 2.16.4