From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei Liu Subject: [PATCH 12/16] Add control structures for 3-level event channel Date: Thu, 31 Jan 2013 14:43:00 +0000 Message-ID: <1359643384-29392-13-git-send-email-wei.liu2@citrix.com> References: <1359643384-29392-1-git-send-email-wei.liu2@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1359643384-29392-1-git-send-email-wei.liu2@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: Wei Liu , ian.campbell@citrix.com, jbeulich@suse.com, david.vrabel@citrix.com List-Id: xen-devel@lists.xenproject.org The references to shared bitmap pending / mask are embedded in struct domain. And pointer to the second level selector is embedded in struct vcpu. Signed-off-by: Wei Liu --- xen/include/xen/sched.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xen/include/xen/sched.h b/xen/include/xen/sched.h index 2f18fe5..1d8c1b5 100644 --- a/xen/include/xen/sched.h +++ b/xen/include/xen/sched.h @@ -24,6 +24,7 @@ #include #include #include +#include #ifdef CONFIG_COMPAT #include @@ -57,6 +58,9 @@ struct vcpu struct domain *domain; + /* For 3-level event channels */ + unsigned long *evtchn_pending_sel_l2; + struct vcpu *next_in_list; s_time_t periodic_period; @@ -218,6 +222,8 @@ struct domain struct evtchn **evtchn; spinlock_t event_lock; unsigned int evtchn_level; + unsigned long *evtchn_pending[EVTCHN_MAX_L3_PAGES]; + unsigned long *evtchn_mask[EVTCHN_MAX_L3_PAGES]; struct grant_table *grant_table; -- 1.7.10.4