]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: Improve local apic timer wraparound handling
authorKevin Pedretti <kevin.pedretti@gmail.com>
Sun, 21 Oct 2007 06:55:50 +0000 (08:55 +0200)
committerAvi Kivity <avi@qumranet.com>
Mon, 22 Oct 2007 10:03:29 +0000 (12:03 +0200)
commit5ac78600d01292cbc6ee54e9f7c54fd13adb9239
treec99a6c3ae8f07c9ae9fc49b5567a665359d7da24
parentaca7ef25b786dbfc951efca0d7bbced65edfb86d
KVM: Improve local apic timer wraparound handling

Better handle wrap-around cases when reading the APIC CCR
(current count register).  Also, if ICR is 0, CCR should also
be 0... previously reading CCR before setting ICR would result
in a large kinda-random number.

Signed-off-by: Kevin Pedretti <kevin.pedretti@gmail.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/lapic.c