diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2016-06-27 15:08:01 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-07-01 11:03:39 +0200 |
commit | 9175d2e97b08e86293e68246020a5c29f88aa674 (patch) | |
tree | cb8268447f8a95149214b807c987d7d84f0dc098 /arch/x86/kvm/lapic.c | |
parent | f2485b3e0c6c0aa3a9546babc2fad3739e964ebb (diff) | |
download | lwn-9175d2e97b08e86293e68246020a5c29f88aa674.tar.gz lwn-9175d2e97b08e86293e68246020a5c29f88aa674.zip |
KVM: vmx: fix underflow in TSC deadline calculation
If the TSC deadline timer is programmed really close to the deadline or
even in the past, the computation in vmx_set_hv_timer can underflow and
cause delta_tsc to be set to a huge value. This generally results
in vmx_set_hv_timer returning -ERANGE, but we can fix it by limiting
delta_tsc to be positive or zero.
Reported-by: Wanpeng Li <wanpeng.li@hotmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/lapic.c')
0 files changed, 0 insertions, 0 deletions