diff options
author | Olaf Hering <olaf@aepfle.de> | 2012-01-05 19:40:40 +0100 |
---|---|---|
committer | Olaf Hering <olaf@aepfle.de> | 2012-01-05 19:40:40 +0100 |
commit | 17c9cd6d20735ce4be4cb7f1590b3d6d64c627c7 (patch) | |
tree | 68fb3d45acfe7dd1eefa1f6246005e2a27f0ad46 /tools | |
parent | fa1d65c22f5260d80fcdeace70146645ffb6a29f (diff) | |
download | xen-17c9cd6d20735ce4be4cb7f1590b3d6d64c627c7.tar.gz xen-17c9cd6d20735ce4be4cb7f1590b3d6d64c627c7.tar.bz2 xen-17c9cd6d20735ce4be4cb7f1590b3d6d64c627c7.zip |
libxl: add feature flag to xenstore for XS_RESET_WATCHES
Tell guest about availibilty of xenstoreds XS_RESET_WATCHES function.
Guests can not issue this command unconditionally because some buggy
toolstacks (such as EC2) do not ignore unknown commands properly.
Signed-off-by: Olaf Hering <olaf@aepfle.de>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/libxl/libxl_create.c | 1 | ||||
-rw-r--r-- | tools/python/xen/xend/XendDomainInfo.py | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/tools/libxl/libxl_create.c b/tools/libxl/libxl_create.c index 7b6a2f92d2..815ee7951b 100644 --- a/tools/libxl/libxl_create.c +++ b/tools/libxl/libxl_create.c @@ -452,6 +452,7 @@ retry_transaction: libxl__xs_writev(gc, t, libxl__sprintf(gc, "%s/platform", dom_path), info->platformdata); xs_write(ctx->xsh, t, libxl__sprintf(gc, "%s/control/platform-feature-multiprocessor-suspend", dom_path), "1", 1); + xs_write(ctx->xsh, t, libxl__sprintf(gc, "%s/control/platform-feature-xs_reset_watches", dom_path), "1", 1); if (!xs_transaction_end(ctx->xsh, t, 0)) { if (errno == EAGAIN) { t = 0; diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 9f7c4a30df..456e325923 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -1770,6 +1770,7 @@ class XendDomainInfo: f('store/port', self.store_port) f('store/ring-ref', self.store_mfn) + f('control/platform-feature-xs_reset_watches', True) if arch.type == "x86": f('control/platform-feature-multiprocessor-suspend', True) |