]> xenbits.xensource.com Git - mini-os.git/commitdiff
mini-os: allow 4096 event channels for 64-bit mini-os
authorJuergen Gross <jgross@suse.com>
Thu, 16 Apr 2020 12:27:00 +0000 (14:27 +0200)
committerWei Liu <wl@xen.org>
Thu, 16 Apr 2020 13:31:30 +0000 (14:31 +0100)
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 <jgross@suse.com>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
events.c

index 342aeada05278a4c2dbad9de1bb825ac017da385..cdae90f4634309e83b86ba3ed4cce6549bba446c 100644 (file)
--- a/events.c
+++ b/events.c
@@ -23,7 +23,7 @@
 #include <mini-os/lib.h>
 #include <xen/xsm/flask_op.h>
 
-#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 {