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_linux.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_linux.c')
-rw-r--r-- | tools/libxc/xc_linux.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/libxc/xc_linux.c b/tools/libxc/xc_linux.c index 7c62ee375e..a1ed5f450c 100644 --- a/tools/libxc/xc_linux.c +++ b/tools/libxc/xc_linux.c @@ -697,6 +697,7 @@ static struct xc_osdep_ops *linux_osdep_init(xc_interface *xch, enum xc_osdep_ty xc_osdep_info_t xc_osdep_info = { .name = "Linux Native OS interface", .init = &linux_osdep_init, + .fake = 0, }; /* |