aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xenctrlosdep.h
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2010-12-03 09:36:47 +0000
committerIan Campbell <ian.campbell@citrix.com>2010-12-03 09:36:47 +0000
commit048f6a9497466b39eb6f34eb0a699e632c15929f (patch)
treeb323954ad4f08e230ca40aca617d2d458ef93ae9 /tools/libxc/xenctrlosdep.h
parentfa0eebfd1bd2a7eea7b6cb424a8d83cebfe6ee0b (diff)
downloadxen-048f6a9497466b39eb6f34eb0a699e632c15929f.tar.gz
xen-048f6a9497466b39eb6f34eb0a699e632c15929f.tar.bz2
xen-048f6a9497466b39eb6f34eb0a699e632c15929f.zip
libxc: add ability to query OS interface for "fakeness"
i.e. not running on a real hypervisor Allows users of the library to adjust behaviour. I don't especially like this violation of the abstraction but both oxenstored and xapi use this to avoid difficult to simulate operations when running on the simulator. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Ian Jackson <ian.jackson.citrix.com>
Diffstat (limited to 'tools/libxc/xenctrlosdep.h')
-rw-r--r--tools/libxc/xenctrlosdep.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/libxc/xenctrlosdep.h b/tools/libxc/xenctrlosdep.h
index d862fcff85..874fd653b4 100644
--- a/tools/libxc/xenctrlosdep.h
+++ b/tools/libxc/xenctrlosdep.h
@@ -122,6 +122,9 @@ struct xc_osdep_info
/* Returns ops function. */
xc_osdep_init_fn init;
+
+ /* True if this interface backs onto a fake Xen. */
+ int fake;
};
typedef struct xc_osdep_info xc_osdep_info_t;