aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/event.h
diff options
context:
space:
mode:
authorcl349@freefall.cl.cam.ac.uk <cl349@freefall.cl.cam.ac.uk>2004-11-09 13:14:11 +0000
committercl349@freefall.cl.cam.ac.uk <cl349@freefall.cl.cam.ac.uk>2004-11-09 13:14:11 +0000
commit5dc2655e892b3da66844f09b639e8fdaf5b6f35d (patch)
tree00ea04b1fe2abb89d1fc0b1f9684b96529352de1 /xen/include/xen/event.h
parent9566ef99d5c0ff92905ea2428b7e5471e108514d (diff)
downloadxen-5dc2655e892b3da66844f09b639e8fdaf5b6f35d.tar.gz
xen-5dc2655e892b3da66844f09b639e8fdaf5b6f35d.tar.bz2
xen-5dc2655e892b3da66844f09b639e8fdaf5b6f35d.zip
bitkeeper revision 1.1159.1.398 (4190c2a3yFTT9r-Ede8ilkq-wZrXkg)
Add focus to pirqs and interdomain evtchns.
Diffstat (limited to 'xen/include/xen/event.h')
-rw-r--r--xen/include/xen/event.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/xen/include/xen/event.h b/xen/include/xen/event.h
index 517b22ed4d..168c28185d 100644
--- a/xen/include/xen/event.h
+++ b/xen/include/xen/event.h
@@ -20,9 +20,9 @@
* may require explicit memory barriers.
*/
-static inline void evtchn_set_pending(struct domain *d, int port)
+static inline void evtchn_set_pending(struct exec_domain *ed, int port)
{
- struct exec_domain *ed = d->exec_domain[0];
+ struct domain *d = ed->domain;
shared_info_t *s = d->shared_info;
int running;
@@ -57,8 +57,7 @@ static inline void evtchn_set_pending(struct domain *d, int port)
*/
static inline void send_guest_virq(struct exec_domain *ed, int virq)
{
- struct domain *d = ed->domain;
- evtchn_set_pending(d, d->virq_to_evtchn[virq]);
+ evtchn_set_pending(ed, ed->domain->virq_to_evtchn[virq]);
}
/*
@@ -66,9 +65,9 @@ static inline void send_guest_virq(struct exec_domain *ed, int virq)
* @d: Domain to which physical IRQ should be sent
* @pirq: Physical IRQ number
*/
-static inline void send_guest_pirq(struct domain *d, int pirq)
+static inline void send_guest_pirq(struct exec_domain *ed, int pirq)
{
- evtchn_set_pending(d, d->pirq_to_evtchn[pirq]);
+ evtchn_set_pending(ed, ed->domain->pirq_to_evtchn[pirq]);
}
#define event_pending(_d) \