]> err.no Git - linux-2.6/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)
commit9da8f4e83a824dabf3fb7ad0890549257ae614a0
treec99a6c3ae8f07c9ae9fc49b5567a665359d7da24
parentb33ac88b4c23330043acad930517282eb486db1d
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