aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xenstore/xs.c
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-01-19 15:28:34 +0000
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-01-19 15:28:34 +0000
commitb686a7d235163cb2309bb59dcab07059e0fe9aa1 (patch)
treea33f8798a09c55ce0b30e2c14bfa20d2f6f7cc65 /tools/xenstore/xs.c
parente105919b0120a0eccfe59ece2ce545ddd6f0881f (diff)
downloadxen-b686a7d235163cb2309bb59dcab07059e0fe9aa1.tar.gz
xen-b686a7d235163cb2309bb59dcab07059e0fe9aa1.tar.bz2
xen-b686a7d235163cb2309bb59dcab07059e0fe9aa1.zip
xenstore: add XS_RESUME command; export it to xend.
This clears the shutdown flag for a domain in xenstore, allowing subsequent shutdowns of the same domain to fire the appropriate watches. Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
Diffstat (limited to 'tools/xenstore/xs.c')
-rw-r--r--tools/xenstore/xs.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/xenstore/xs.c b/tools/xenstore/xs.c
index 44c1baaf48..370815de04 100644
--- a/tools/xenstore/xs.c
+++ b/tools/xenstore/xs.c
@@ -719,6 +719,12 @@ bool xs_release_domain(struct xs_handle *h, unsigned int domid)
return xs_bool(single_with_domid(h, XS_RELEASE, domid));
}
+/* clear the shutdown bit for the given domain */
+bool xs_resume_domain(struct xs_handle *h, unsigned int domid)
+{
+ return xs_bool(single_with_domid(h, XS_RESUME, domid));
+}
+
char *xs_get_domain_path(struct xs_handle *h, unsigned int domid)
{
char domid_str[MAX_STRLEN(domid)];