|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] [PATCH 10 of 15] xenpaging: compare both token and path
Olaf Hering writes ("Re: [Xen-devel] [PATCH 10 of 15] xenpaging: compare both
token and path when checking for @releaseDomain event"):
> I was under the impression there could be identical tokens for different
> paths,
Yes, but you control the token. The token you get back in your watch
event is whatever you gave to xs_watch.
> and that the actual value of the watched path is part of
> XS_WATCH_TOKEN.
"XS_WATCH_TOKEN" is just an array index into the return value of
xs_read_watch. It has the value 1 which means that
ret = xs_read_watch(...)
returns the token in ret[1]. The path comes back in ret[0].
(The use of "xs_watch_type" as the name for this enum is unfortunate.)
> But since the token seems to be unique (docs/misc/xenstore.txt has no
> further description of 'token'), only the DPRINTF part of my patch
> should be kept.
The token is whatever you specified when you set up the watch. I
haven't checked in xenpagingd what that value is in this case.
Ian.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 00 of 15] tools/xenpaging fixes for xen-unstable, Olaf Hering
- [Xen-devel] [PATCH 13 of 15] xenpaging: retry unpageable gfns, Olaf Hering
- [Xen-devel] [PATCH 14 of 15] xenpaging: install into LIBEXEC dir, Olaf Hering
- [Xen-devel] [PATCH 04 of 15] xenpaging: simplify file_op, Olaf Hering
- [Xen-devel] [PATCH 08 of 15] xenpaging: track the number of paged-out pages, Olaf Hering
- [Xen-devel] [PATCH 02 of 15] xenpaging: remove obsolete comment in resume path, Olaf Hering
- [Xen-devel] [PATCH 01 of 15] xenpaging: remove filename from comment, Olaf Hering
- [Xen-devel] [PATCH 07 of 15] xenpaging: remove xc_dominfo_t from paging_t, Olaf Hering
- [Xen-devel] [PATCH 15 of 15] xenpaging: add XEN_PAGING_DIR / libxl_xenpaging_dir_path(), Olaf Hering
- [Xen-devel] [PATCH 09 of 15] xenpaging: move page add/resume loops into its own function, Olaf Hering
- [Xen-devel] [PATCH 06 of 15] xenpaging: update xenpaging_init, Olaf Hering
|
|
|
|
|