remove arbitrary limit in minios on number of event channels it can use
PATCH 24/24 remove arbitrary limit in minios on number of event channels it can use
Changes the minios evtchn implementation to use a list instead of an array. This allows it to grow as necessary to support any number of ports. Unfortunately, it's still limited by NR_EVS in events.c.
Signed-off-by Diego Ongaro <[email protected]>
Signed-off-by Alex Zeffertt <[email protected]>
---
extras/mini-os/include/lib.h +8 -8
@@ -60,6 +60,7 @@#include <xen/xen.h> #include <xen/event_channel.h> #include "gntmap.h" +#include "list.h" #ifdef HAVE_LIBC #include <stdio.h>
@@ -147,7 +148,12 @@ FTYPE_FB, }; -#define MAX_EVTCHN_PORTS 16 +struct evtchn_port_info { +struct minios_list_head list; +evtchn_port_t port; +unsigned long pending; +int bound; +}; extern struct file { enum fd_type type;
@@ -162,13 +168,7 @@off_t offset; } file;struct { -/* To each event channel FD is associated a series of ports which -* wakes select for this FD. */ -struct { -evtchn_port_t port; -unsigned long pending; -int bound; - } ports[MAX_EVTCHN_PORTS ]; +struct minios_list_head ports; } evtchn;struct gntmap gntmap;struct {
tools/libxc/xc_minios.c +72 -66
235 lines not on this page · raw message
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel