From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei Liu Subject: [RFC PATCH V2 10/14] Add control structures for 3-level event channel Date: Mon, 21 Jan 2013 14:30:50 +0000 Message-ID: <1358778654-29559-11-git-send-email-wei.liu2@citrix.com> References: <1358778654-29559-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: <1358778654-29559-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 df3b877..d6e3a03 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 @@ -119,6 +120,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; @@ -281,6 +285,8 @@ struct domain spinlock_t event_lock; unsigned int evtchn_level; struct xen_evtchn_ops *eops; + 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