aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_domain.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-09-28 10:01:10 +0100
committerKeir Fraser <keir.fraser@citrix.com>2009-09-28 10:01:10 +0100
commitbf2c44f8b469835338e185fac93399fd34dff6e3 (patch)
treea10d7112775efdde68aa9886b139a5acbfc4f869 /tools/libxc/xc_domain.c
parentbcc65857674894a8f54fb07b1db0e96bb984ef9f (diff)
downloadxen-bf2c44f8b469835338e185fac93399fd34dff6e3.tar.gz
xen-bf2c44f8b469835338e185fac93399fd34dff6e3.tar.bz2
xen-bf2c44f8b469835338e185fac93399fd34dff6e3.zip
x86: Allow TSC mode (emulate vs native) to be configured per domain.
The default is to emulate. Old saved images will be restored with legacy behaviour however (native TSC, no emulation). Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'tools/libxc/xc_domain.c')
-rw-r--r--tools/libxc/xc_domain.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/libxc/xc_domain.c b/tools/libxc/xc_domain.c
index 6ed4f52ec3..61cde9af39 100644
--- a/tools/libxc/xc_domain.c
+++ b/tools/libxc/xc_domain.c
@@ -466,6 +466,15 @@ int xc_domain_set_time_offset(int xc_handle,
return do_domctl(xc_handle, &domctl);
}
+int xc_domain_set_tsc_native(int xc_handle, uint32_t domid, int is_native)
+{
+ DECLARE_DOMCTL;
+ domctl.cmd = XEN_DOMCTL_set_tsc_native;
+ domctl.domain = (domid_t)domid;
+ domctl.u.set_tsc_native.is_native = is_native;
+ return do_domctl(xc_handle, &domctl);
+}
+
int xc_domain_memory_increase_reservation(int xc_handle,
uint32_t domid,
unsigned long nr_extents,