Add facility to get notification of domain suspend by event channel.
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 4 Jul 2008 11:00:24 +0000 (12:00 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 4 Jul 2008 11:00:24 +0000 (12:00 +0100)
commit4539594d46f9d1ed1ad34f2662eea985839435a7
tree897b50e68f865106efdeae2befc9fb9902ed2b1c
parent5552b9af817acd2253a2423e04b147e0d26d751d
Add facility to get notification of domain suspend by event channel.
This event channel will be notified when the domain transitions to the
suspended state, which can be much faster than raising VIRQ_DOM_EXC
and waiting for the notification to be propagated via xenstore.

No attempt is made here to prevent multiple subscribers (last one
wins), or to detect that the subscriber has gone away. Userspace tools
should take care.

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
tools/libxc/xc_domain.c
tools/libxc/xenctrl.h
xen/arch/x86/traps.c
xen/arch/x86/x86_32/traps.c
xen/arch/x86/x86_64/compat/traps.c
xen/arch/x86/x86_64/traps.c
xen/common/domain.c
xen/common/domctl.c
xen/include/public/domctl.h
xen/include/xen/sched.h