Skip to contentSkip to conversation

mini-os: allow 4096 event channels for 64-bit mini-os

PATCH Applied Juergen Gross 3 participants 3 messages Apr 16, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mini-os: allow 4096 event channels for 64-bit mini-os

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.

---
 events.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
events.c +1 -1
index 342aead..cdae90f 100644
@@ -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 {
Signature · 1 line
2.16.4
Reviewed-by on v1 1/1
#1 lore raw

Juergen Gross, le jeu. 16 avril 2020 14:27:00 +0200, a ecrit:

Quoted 8 lines

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.

Quoted 20 lines
---
 events.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
events.c +1 -1
index 342aead..cdae90f 100644
@@ -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 {
Signature · 1 line
2.16.4
Applied
#2 lore raw
Quoted 11 lines · Samuel Thibault

Juergen Gross, le jeu. 16 avril 2020 14:27:00 +0200, a ecrit:

Quoted 8 lines

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.

Applied.