Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 264446
b: refs/heads/master
c: ddacf5e
h: refs/heads/master
v: v3
  • Loading branch information
Olaf Hering authored and Konrad Rzeszutek Wilk committed Sep 22, 2011
1 parent 61b360a commit e69e600
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3b082b25c006f9a4ca82af7bb5bdc289d98cf6b9
refs/heads/master: ddacf5ef684a655abe2bb50c4b2a5b72ae0d5e05
13 changes: 13 additions & 0 deletions trunk/drivers/xen/xenbus/xenbus_xs.c
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,15 @@ static struct xenbus_watch *find_watch(const char *token)
return NULL;
}

static void xs_reset_watches(void)
{
int err;

err = xs_error(xs_single(XBT_NIL, XS_RESET_WATCHES, "", NULL));
if (err && err != -EEXIST)
printk(KERN_WARNING "xs_reset_watches failed: %d\n", err);
}

/* Register callback to watch this node. */
int register_xenbus_watch(struct xenbus_watch *watch)
{
Expand Down Expand Up @@ -896,5 +905,9 @@ int xs_init(void)
if (IS_ERR(task))
return PTR_ERR(task);

/* shutdown watches for kexec boot */
if (xen_hvm_domain())
xs_reset_watches();

return 0;
}
3 changes: 2 additions & 1 deletion trunk/include/xen/interface/io/xs_wire.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ enum xsd_sockmsg_type
XS_IS_DOMAIN_INTRODUCED,
XS_RESUME,
XS_SET_TARGET,
XS_RESTRICT
XS_RESTRICT,
XS_RESET_WATCHES
};

#define XS_WRITE_NONE "NONE"
Expand Down

0 comments on commit e69e600

Please sign in to comment.