[PATCHv4] KVM: optimize apic interrupt delivery

2012-09-13 Thread Gleb Natapov
Most interrupt are delivered to only one vcpu. Use pre-build tables to find interrupt destination instead of looping through all vcpus. In case of logical mode loop only through vcpus in a logical cluster irq is sent to. Signed-off-by: Gleb Natapov --- Changelog: - v3->v4 * remove inline f

Re: [PATCHv4] KVM: optimize apic interrupt delivery

2012-09-14 Thread Michael S. Tsirkin
On Thu, Sep 13, 2012 at 05:19:24PM +0300, Gleb Natapov wrote: > Most interrupt are delivered to only one vcpu. Use pre-build tables to > find interrupt destination instead of looping through all vcpus. In case > of logical mode loop only through vcpus in a logical cluster irq is sent > to. > > Sig

Re: [PATCHv4] KVM: optimize apic interrupt delivery

2012-09-14 Thread Marcelo Tosatti
On Thu, Sep 13, 2012 at 05:19:24PM +0300, Gleb Natapov wrote: > Most interrupt are delivered to only one vcpu. Use pre-build tables to > find interrupt destination instead of looping through all vcpus. In case > of logical mode loop only through vcpus in a logical cluster irq is sent > to. > > Si

Re: [PATCHv4] KVM: optimize apic interrupt delivery

2012-09-20 Thread Avi Kivity
On 09/13/2012 05:19 PM, Gleb Natapov wrote: > Most interrupt are delivered to only one vcpu. Use pre-build tables to > find interrupt destination instead of looping through all vcpus. In case > of logical mode loop only through vcpus in a logical cluster irq is sent > to. Applied, thanks. -- er