diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2010-12-03 09:36:47 +0000 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2010-12-03 09:36:47 +0000 |
commit | 048f6a9497466b39eb6f34eb0a699e632c15929f (patch) | |
tree | b323954ad4f08e230ca40aca617d2d458ef93ae9 /tools/libxc/xc_minios.c | |
parent | fa0eebfd1bd2a7eea7b6cb424a8d83cebfe6ee0b (diff) | |
download | xen-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/xc_minios.c')
-rw-r--r-- | tools/libxc/xc_minios.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/libxc/xc_minios.c b/tools/libxc/xc_minios.c index 2d5b43544c..990f7142ef 100644 --- a/tools/libxc/xc_minios.c +++ b/tools/libxc/xc_minios.c @@ -549,6 +549,7 @@ static struct xc_osdep_ops *minios_osdep_init(xc_interface *xch, enum xc_osdep_t xc_osdep_info_t xc_osdep_info = { .name = "Minios Native OS interface", .init = &minios_osdep_init, + .fake = 0, }; /* |