From af875b02aa89dd5ec79812928c75af7eb8182306 Mon Sep 17 00:00:00 2001 From: Andres Lagar-Cavilla Date: Tue, 6 Dec 2011 20:10:32 +0000 Subject: Create a generic callback mechanism for Xen-bound event channels For event channels for which Xen is the consumer, there currently is a single action. With this patch, we allow event channel creators to specify a generic callback (or no callback). Because the expectation is that there will be few callbacks, they are stored in a small table. Signed-off-by: Adin Scannell Signed-off-by: Keir Fraser Signed-off-by: Andres Lagar-Cavilla Committed-by: Tim Deegan --- xen/include/xen/sched.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xen/include/xen/sched.h') diff --git a/xen/include/xen/sched.h b/xen/include/xen/sched.h index 39ed2c061b..3904afe7e5 100644 --- a/xen/include/xen/sched.h +++ b/xen/include/xen/sched.h @@ -47,7 +47,7 @@ struct evtchn #define ECS_VIRQ 5 /* Channel is bound to a virtual IRQ line. */ #define ECS_IPI 6 /* Channel is bound to a virtual IPI line. */ u8 state; /* ECS_* */ - u8 consumer_is_xen; /* Consumed by Xen or by guest? */ + u8 xen_consumer; /* Consumer in Xen, if any? (0 = send to guest) */ u16 notify_vcpu_id; /* VCPU for local delivery notification */ union { struct { -- cgit v1.2.3