From: David Vrabel Date: Mon, 22 Jun 2015 09:39:46 +0000 (+0200) Subject: evtchn: pad struct evtchn to 64 bytes X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~3059 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b58214a24231a1f2a7e09ae9cc3014eff752918b;p=xen.git evtchn: pad struct evtchn to 64 bytes The number of struct evtchn in a page must be a power of two. Under some workloads performance is improved slightly by padding struct evtchn to 64 bytes (a typical cache line size), thus putting the fewer per-channel locks into each cache line. This does not decrease the number of struct evtchn's per-page. Signed-off-by: David Vrabel Acked-by: Jan Beulich --- diff --git a/xen/include/xen/sched.h b/xen/include/xen/sched.h index ce10a667db..b29d9e7f1a 100644 --- a/xen/include/xen/sched.h +++ b/xen/include/xen/sched.h @@ -129,7 +129,7 @@ struct evtchn #endif } ssid; #endif -}; +} __attribute__((aligned(64))); int evtchn_init(struct domain *d); /* from domain_create */ void evtchn_destroy(struct domain *d); /* from domain_kill */