Re: [Qemu-devel] [PATCH RESEND] apic: Don't iterate past last used apic

2010-11-16 Thread Anthony Liguori
On 11/05/2010 05:01 PM, Alex Williamson wrote: local_apics are allocated sequentially and never removed, so we can stop any iterations that go to MAX_APICS as soon as we hit the first NULL. Looking at a small guest running a virtio-net workload with oprofile, this drops

[Qemu-devel] [PATCH RESEND] apic: Don't iterate past last used apic

2010-11-05 Thread Alex Williamson
local_apics are allocated sequentially and never removed, so we can stop any iterations that go to MAX_APICS as soon as we hit the first NULL. Looking at a small guest running a virtio-net workload with oprofile, this drops apic_get_delivery_bitmask() from #3 in the profile to down in the noise.