diff options
author | cl349@freefall.cl.cam.ac.uk <cl349@freefall.cl.cam.ac.uk> | 2004-11-09 10:51:49 +0000 |
---|---|---|
committer | cl349@freefall.cl.cam.ac.uk <cl349@freefall.cl.cam.ac.uk> | 2004-11-09 10:51:49 +0000 |
commit | c696a6dadab93c5b26accc4b657b88f49f8be874 (patch) | |
tree | 2c53954a8cb416bc2c24a875ce5fd96b40152447 /xen/include/xen/event.h | |
parent | b87a9fd7f96514af8ae7d752ecdc3d13b9167193 (diff) | |
download | xen-c696a6dadab93c5b26accc4b657b88f49f8be874.tar.gz xen-c696a6dadab93c5b26accc4b657b88f49f8be874.tar.bz2 xen-c696a6dadab93c5b26accc4b657b88f49f8be874.zip |
bitkeeper revision 1.1159.1.393 (4190a145cbZFKzGdkH5xPlOlxNNPnw)
Split struct exec_domain out of struct domain.
Diffstat (limited to 'xen/include/xen/event.h')
-rw-r--r-- | xen/include/xen/event.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/xen/include/xen/event.h b/xen/include/xen/event.h index 1fcef0f03e..86af2954a7 100644 --- a/xen/include/xen/event.h +++ b/xen/include/xen/event.h @@ -22,7 +22,8 @@ static inline void evtchn_set_pending(struct domain *d, int port) { - shared_info_t *s = d->shared_info; + struct exec_domain *ed = d->exec_domain[0]; + shared_info_t *s = ed->shared_info; int running; /* These three operations must happen in strict order. */ @@ -42,10 +43,10 @@ static inline void evtchn_set_pending(struct domain *d, int port) * NB2. We save DF_RUNNING across the unblock to avoid a needless * IPI for domains that we IPI'd to unblock. */ - running = test_bit(DF_RUNNING, &d->flags); - domain_unblock(d); + running = test_bit(EDF_RUNNING, &ed->ed_flags); + exec_domain_unblock(ed); if ( running ) - smp_send_event_check_cpu(d->processor); + smp_send_event_check_cpu(ed->processor); } } @@ -54,8 +55,9 @@ static inline void evtchn_set_pending(struct domain *d, int port) * @d: Domain to which virtual IRQ should be sent * @virq: Virtual IRQ number (VIRQ_*) */ -static inline void send_guest_virq(struct domain *d, int virq) +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]); } |