]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
KVM: use proper hrtimer function to retrieve expiration time
authorMarcelo Tosatti <mtosatti@redhat.com>
Thu, 8 Oct 2009 13:55:03 +0000 (10:55 -0300)
committerMarcelo Tosatti <mtosatti@redhat.com>
Fri, 16 Oct 2009 15:30:25 +0000 (12:30 -0300)
commitace1546487a0fe4634e3251067f8a32cb2cdc099
tree6f7ac8a23d0ac1ae5af287916cdd356de114f877
parent012abeea669ea49636cf952d13298bb68654146a
KVM: use proper hrtimer function to retrieve expiration time

hrtimer->base can be temporarily NULL due to racing hrtimer_start.
See switch_hrtimer_base/lock_hrtimer_base.

Use hrtimer_get_remaining which is robust against it.

CC: stable@kernel.org
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/i8254.c
arch/x86/kvm/lapic.c