From: Gleb Natapov Date: Thu, 11 Jun 2009 08:06:51 +0000 (+0300) Subject: KVM: Optimize searching for highest IRR X-Git-Tag: v2.6.32-rc1~693^2~139 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33e4c68656a2e461b296ce714ec322978de85412;p=pandora-kernel.git 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 Signed-off-by: Avi Kivity --- Reading git-diff-tree failed