diff options
author | Glauber Costa <glommer@redhat.com> | 2010-05-11 12:17:45 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-05-19 11:41:05 +0300 |
commit | 3a0d7256a6fb8c13f9fac6cd63250f97a8f0d8de (patch) | |
tree | 27a710b0f7e54c243382d47c290061699d0e755c /arch/x86/include/asm/kvm_para.h | |
parent | 838815a78785022f6611e5c48386567aea7b818b (diff) | |
download | linux-stable-3a0d7256a6fb8c13f9fac6cd63250f97a8f0d8de.tar.gz linux-stable-3a0d7256a6fb8c13f9fac6cd63250f97a8f0d8de.tar.bz2 linux-stable-3a0d7256a6fb8c13f9fac6cd63250f97a8f0d8de.zip |
x86, paravirt: don't compute pvclock adjustments if we trust the tsc
If the HV told us we can fully trust the TSC, skip any
correction
Signed-off-by: Glauber Costa <glommer@redhat.com>
Acked-by: Zachary Amsden <zamsden@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/x86/include/asm/kvm_para.h')
-rw-r--r-- | arch/x86/include/asm/kvm_para.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_para.h b/arch/x86/include/asm/kvm_para.h index f019f8cb182e..05eba5e9a8e8 100644 --- a/arch/x86/include/asm/kvm_para.h +++ b/arch/x86/include/asm/kvm_para.h @@ -21,6 +21,11 @@ */ #define KVM_FEATURE_CLOCKSOURCE2 3 +/* The last 8 bits are used to indicate how to interpret the flags field + * in pvclock structure. If no bits are set, all flags are ignored. + */ +#define KVM_FEATURE_CLOCKSOURCE_STABLE_BIT 24 + #define MSR_KVM_WALL_CLOCK 0x11 #define MSR_KVM_SYSTEM_TIME 0x12 |