[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 6/8] HACK! evtchn: increase number of buckets to support the FIFO ABI
From: David Vrabel <david.vrabel@xxxxxxxxxx> Increase NR_EVTCHN_BUCKETS so 2^17 event channels are possible. This required increasing EVTCHN_PER_BUCKET so the bucket list fits into a page. HACK! because each bucket is now > PAGE_SIZE. Signed-off-by: David Vrabel <david.vrabel@xxxxxxxxxx> --- xen/include/xen/sched.h | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/xen/include/xen/sched.h b/xen/include/xen/sched.h index 1e849aa..f825113 100644 --- a/xen/include/xen/sched.h +++ b/xen/include/xen/sched.h @@ -51,8 +51,9 @@ extern struct domain *dom0; #define BITS_PER_EVTCHN_WORD(d) (has_32bit_shinfo(d) ? 32 : BITS_PER_LONG) #endif #define MAX_EVTCHNS(d) (BITS_PER_EVTCHN_WORD(d) * BITS_PER_EVTCHN_WORD(d)) -#define EVTCHNS_PER_BUCKET 128 -#define NR_EVTCHN_BUCKETS (NR_EVENT_CHANNELS / EVTCHNS_PER_BUCKET) +/* FIXME: this causes each bucket to be > PAGE_SIZE. */ +#define EVTCHNS_PER_BUCKET 256 +#define NR_EVTCHN_BUCKETS ((1 << EVTCHN_FIFO_LINK_BITS) / EVTCHNS_PER_BUCKET) struct evtchn { -- 1.7.2.5 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |