From patchwork Thu Apr 16 12:27:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?SsO8cmdlbiBHcm/Dnw==?= X-Patchwork-Id: 11492979 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8AC731392 for ; Thu, 16 Apr 2020 12:27:53 +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 70E96206B9 for ; Thu, 16 Apr 2020 12:27:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 70E96206B9 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 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 X-Inumbo-ID: 93aa684c-7fdd-11ea-b58d-bc764e2007e4 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) 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 0D00BAC6D; Thu, 16 Apr 2020 12:27:01 +0000 (UTC) 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" 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 -#define NR_EVS 1024 +#define NR_EVS EVTCHN_2L_NR_CHANNELS /* this represents a event handler. Chaining or sharing is not allowed */ typedef struct _ev_action_t {