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_solaris.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_solaris.c')
-rw-r--r-- | tools/libxc/xc_solaris.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/libxc/xc_solaris.c b/tools/libxc/xc_solaris.c index beec2872d4..71bbbe62a2 100644 --- a/tools/libxc/xc_solaris.c +++ b/tools/libxc/xc_solaris.c @@ -321,6 +321,7 @@ static struct xc_osdep_ops *solaris_osdep_init(xc_interface *xch, enum xc_osdep_ xc_osdep_info_t xc_osdep_info = { .name = "Solaris Native OS interface", .init = &solaris_osdep_init, + .fake = 0, }; /* |