diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-06-17 17:48:56 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-06-23 19:17:30 +0200 |
commit | 87aeb54f1b9891cf08b84b3f0c34f220a4977c4f (patch) | |
tree | 2479e2868c197f2a2e452d386606ef213fd6e61d /arch/mips/kvm/trace.h | |
parent | c45dcc71b794b5a346a43ad83bdcfac2138f0a2c (diff) | |
download | linux-next-87aeb54f1b9891cf08b84b3f0c34f220a4977c4f.tar.gz |
kvm: x86: use getboottime64
KVM reads the current boottime value as a struct timespec in order to
calculate the guest wallclock time, resulting in an overflow in 2038
on 32-bit systems.
The data then gets passed as an unsigned 32-bit number to the guest,
and that in turn overflows in 2106.
We cannot do much about the second overflow, which affects both 32-bit
and 64-bit hosts, but we can ensure that they both behave the same
way and don't overflow until 2106, by using getboottime64() to read
a timespec64 value.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/mips/kvm/trace.h')
0 files changed, 0 insertions, 0 deletions