aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/public/domctl.h
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 /xen/include/public/domctl.h
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 'xen/include/public/domctl.h')
-rw-r--r--xen/include/public/domctl.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/xen/include/public/domctl.h b/xen/include/public/domctl.h
index f7b1fc5ec7..3b4cb51796 100644
--- a/xen/include/public/domctl.h
+++ b/xen/include/public/domctl.h
@@ -401,7 +401,11 @@ struct xen_domctl_settimeoffset {
typedef struct xen_domctl_settimeoffset xen_domctl_settimeoffset_t;
DEFINE_XEN_GUEST_HANDLE(xen_domctl_settimeoffset_t);
-
+#define XEN_DOMCTL_set_tsc_native 57
+typedef struct xen_domctl_set_tsc_native {
+ uint32_t is_native; /* IN: 0: TSC is emulated; 1: TSC is host TSC */
+} xen_domctl_set_tsc_native_t;
+
#define XEN_DOMCTL_gethvmcontext 33
#define XEN_DOMCTL_sethvmcontext 34
typedef struct xen_domctl_hvmcontext {
@@ -672,6 +676,7 @@ struct xen_domctl {
struct xen_domctl_hypercall_init hypercall_init;
struct xen_domctl_arch_setup arch_setup;
struct xen_domctl_settimeoffset settimeoffset;
+ struct xen_domctl_set_tsc_native set_tsc_native;
struct xen_domctl_real_mode_area real_mode_area;
struct xen_domctl_hvmcontext hvmcontext;
struct xen_domctl_hvmcontext_partial hvmcontext_partial;