diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2015-05-28 20:20:39 -0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-05-29 14:01:39 +0200 |
commit | 611917258f88fb2fa41d1c2826b193f7c3885b54 (patch) | |
tree | 76eac0af82fcc6134dc0872fbdbf88261e528926 /arch/x86 | |
parent | 4141259b56cbd5a8614e487366909a02d702b9dd (diff) | |
download | op-kernel-dev-611917258f88fb2fa41d1c2826b193f7c3885b54.zip op-kernel-dev-611917258f88fb2fa41d1c2826b193f7c3885b54.tar.gz |
x86: kvmclock: add flag to indicate pvclock counts from zero
Setting sched clock stable for kvmclock causes the printk timestamps
to not start from zero, which is different from baremetal and
can possibly break userspace. Add a flag to indicate that
hypervisor sets clock base at zero when kvmclock is initialized.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/include/asm/pvclock-abi.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/pvclock-abi.h b/arch/x86/include/asm/pvclock-abi.h index 6167fd7..655e07a 100644 --- a/arch/x86/include/asm/pvclock-abi.h +++ b/arch/x86/include/asm/pvclock-abi.h @@ -41,5 +41,6 @@ struct pvclock_wall_clock { #define PVCLOCK_TSC_STABLE_BIT (1 << 0) #define PVCLOCK_GUEST_STOPPED (1 << 1) +#define PVCLOCK_COUNTS_FROM_ZERO (1 << 2) #endif /* __ASSEMBLY__ */ #endif /* _ASM_X86_PVCLOCK_ABI_H */ |