Re: [PATCH] [APIC] Optimize searching for highest IRR

2009-05-19 Thread Avi Kivity
Gleb Natapov wrote: 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. static inline int

[PATCH] [APIC] Optimize searching for highest IRR

2009-05-18 Thread Gleb Natapov
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 g...@redhat.com ---