search for: xs_open_socketonly

Displaying 4 results from an estimated 4 matches for "xs_open_socketonly".

2018 Oct 09
2
Ill-advised use of xs_open flag 1UL<<2 by Debian
...ty with xenstored of Xen 4.0. which I can tell by diffing 4.1.0-1 and 4.1.0-2 must refer to this. I was not able to discover what the incompatibility was. There did not seem to be any related archived bugs, or commentary, or anything. It may be related to one of these d31038383192 xenstore: new XS_OPEN_SOCKETONLY flag ... 999241f7aa45 Adds an open xenstore connection function ... (commitids are from usptream xen.git) In any case, if this patch previously served any purpose it doesn't seem to any more. xenstore socket connections work just fine in dom0, and attempting them in domUs does no harm. I b...
2012 Dec 14
1
[PATCH V5] libxenstore: filter watch events in libxenstore when we unwatch
...++++++++++++++----- 2 files changed, 97 insertions(+), 8 deletions(-) diff --git a/tools/xenstore/xenstore.h b/tools/xenstore/xenstore.h index 7259e49..fdf5e76 100644 --- a/tools/xenstore/xenstore.h +++ b/tools/xenstore/xenstore.h @@ -27,6 +27,27 @@ #define XS_OPEN_READONLY 1UL<<0 #define XS_OPEN_SOCKETONLY 1UL<<1 +/* + * Setting XS_UNWATCH_FILTER arranges that after xs_unwatch, no + * related watch events will be delivered via xs_read_watch. But + * this relies on the couple token, subpath is unique. + * + * XS_UNWATCH_FILTER clear XS_UNWATCH_FILTER set + * + * Even after xs_un...
2012 Dec 14
1
[PATCH V4] libxenstore: filter watch events in libxenstore when we unwatch
...++++++++++++++----- 2 files changed, 97 insertions(+), 8 deletions(-) diff --git a/tools/xenstore/xenstore.h b/tools/xenstore/xenstore.h index 7259e49..fdf5e76 100644 --- a/tools/xenstore/xenstore.h +++ b/tools/xenstore/xenstore.h @@ -27,6 +27,27 @@ #define XS_OPEN_READONLY 1UL<<0 #define XS_OPEN_SOCKETONLY 1UL<<1 +/* + * Setting XS_UNWATCH_FILTER arranges that after xs_unwatch, no + * related watch events will be delivered via xs_read_watch. But + * this relies on the couple token, subpath is unique. + * + * XS_UNWATCH_FILTER clear XS_UNWATCH_FILTER set + * + * Even after xs_un...
2012 Dec 13
4
[PATCH V3] libxenstore: filter watch events in libxenstore when we unwatch
...++++++++++++----- 2 files changed, 85 insertions(+), 8 deletions(-) diff --git a/tools/xenstore/xenstore.h b/tools/xenstore/xenstore.h index 7259e49..81ce8da 100644 --- a/tools/xenstore/xenstore.h +++ b/tools/xenstore/xenstore.h @@ -26,6 +26,13 @@ #define XS_OPEN_READONLY 1UL<<0 #define XS_OPEN_SOCKETONLY 1UL<<1 +/* + * Avoid race condition with unwatch - Not enabled by default + * + * If you want to enable it please be sure to watch a path (/foo) and + * a sub-path (/foo/bar) with the same token. + */ +#define XS_UNWATCH_SAFE 1UL<<2 struct xs_handle; typedef uint32_t xs_tra...