diff options
author | Juergen Gross <jgross@suse.com> | 2016-05-20 09:26:48 +0200 |
---|---|---|
committer | David Vrabel <david.vrabel@citrix.com> | 2016-07-06 10:34:48 +0100 |
commit | ecb23dc6f2eff0ce64dd60351a81f376f13b12cc (patch) | |
tree | 09536e5db2dc00af9dd5209fef72a1e1222f6cf2 /include/xen | |
parent | c7ebf9d9c6b4e9402b978da0b0785db4129c1f79 (diff) | |
download | op-kernel-dev-ecb23dc6f2eff0ce64dd60351a81f376f13b12cc.zip op-kernel-dev-ecb23dc6f2eff0ce64dd60351a81f376f13b12cc.tar.gz |
xen: add steal_clock support on x86
The pv_time_ops structure contains a function pointer for the
"steal_clock" functionality used only by KVM and Xen on ARM. Xen on x86
uses its own mechanism to account for the "stolen" time a thread wasn't
able to run due to hypervisor scheduling.
Add support in Xen arch independent time handling for this feature by
moving it out of the arm arch into drivers/xen and remove the x86 Xen
hack.
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Diffstat (limited to 'include/xen')
-rw-r--r-- | include/xen/xen-ops.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/xen/xen-ops.h b/include/xen/xen-ops.h index 3491582..355275b 100644 --- a/include/xen/xen-ops.h +++ b/include/xen/xen-ops.h @@ -21,6 +21,7 @@ void xen_resume_notifier_unregister(struct notifier_block *nb); bool xen_vcpu_stolen(int vcpu); void xen_setup_runstate_info(int cpu); +void xen_time_setup_guest(void); void xen_get_runstate_snapshot(struct vcpu_runstate_info *res); int xen_setup_shutdown_event(void); |