summaryrefslogtreecommitdiff
path: root/arch/x86/kvm/timer.c
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2009-06-11 11:06:51 +0300
committerAvi Kivity <avi@redhat.com>2009-09-10 08:32:57 +0300
commit33e4c68656a2e461b296ce714ec322978de85412 (patch)
tree9fbadb2c192cc22dca24dc6dfac6804dba5e70e8 /arch/x86/kvm/timer.c
parent6edf14d8d0df144d6928799040f46fa37b5460ae (diff)
KVM: Optimize searching for highest IRR
Most of the time IRR is empty, so instead of scanning the whole IRR on each VM entry keep a variable that tells us if IRR is not empty. IRR will have to be scanned twice on each IRQ delivery, but this is much more rare than VM entry. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/timer.c')
0 files changed, 0 insertions, 0 deletions