xen: add rebind_evtchn_irq
commiteb1e305f4ef201e549ffd475b7dcbcd4ec36d7dc
authorJeremy Fitzhardinge <jeremy@goop.org>
Mon, 26 May 2008 22:31:23 +0000 (26 23:31 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 27 May 2008 08:11:37 +0000 (27 10:11 +0200)
tree078c5acb7d6ca6e3f24b45c5d4a660abcdc75202
parentd5edbc1f75420935b1ec7e65df10c8f81cea82de
xen: add rebind_evtchn_irq

Add rebind_evtchn_irq(), which will rebind an device driver's existing
irq to a new event channel on restore.  Since the new event channel
will be masked and bound to vcpu0, we update the state accordingly and
unmask the irq once everything is set up.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/xen/events.c
include/xen/events.h