diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2008-06-03 16:17:31 +0200 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-06-24 21:02:32 +0300 |
commit | 50d0a0f987b83a8dadb1134d834e35ec410392b5 (patch) | |
tree | 2fb98f898838668ed62092f08c3889ddebb7df62 /include | |
parent | 1c7b67f7576c4ca2a344379a4a29eec8fe8e7935 (diff) | |
download | linux-50d0a0f987b83a8dadb1134d834e35ec410392b5.tar.gz linux-50d0a0f987b83a8dadb1134d834e35ec410392b5.tar.bz2 linux-50d0a0f987b83a8dadb1134d834e35ec410392b5.zip |
KVM: Make kvm host use the paravirt clocksource structs
This patch updates the kvm host code to use the pvclock structs.
It also makes the paravirt clock compatible with Xen.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-x86/kvm_host.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/asm-x86/kvm_host.h b/include/asm-x86/kvm_host.h index 1d8cd01fa514..844f2a89afbc 100644 --- a/include/asm-x86/kvm_host.h +++ b/include/asm-x86/kvm_host.h @@ -18,6 +18,7 @@ #include <linux/kvm_para.h> #include <linux/kvm_types.h> +#include <asm/pvclock-abi.h> #include <asm/desc.h> #define KVM_MAX_VCPUS 16 @@ -282,7 +283,8 @@ struct kvm_vcpu_arch { struct x86_emulate_ctxt emulate_ctxt; gpa_t time; - struct kvm_vcpu_time_info hv_clock; + struct pvclock_vcpu_time_info hv_clock; + unsigned int hv_clock_tsc_khz; unsigned int time_offset; struct page *time_page; }; |