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>
#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 {