On 07/11/19 13:53, Nitesh Narayan Lal wrote: > In IOAPIC fixed delivery mode instead of flushing the scan > requests to all vCPUs, we should only send the requests to > vCPUs specified within the destination field. > > This patch introduces kvm_get_dest_vcpus_mask() API which > retrieves an array of target vCPUs by using > kvm_apic_map_get_dest_lapic() and then based on the > vcpus_idx, it sets the bit in a bitmap. However, if the above > fails kvm_get_dest_vcpus_mask() finds the target vCPUs by > traversing all available vCPUs. Followed by setting the > bits in the bitmap. Queued, thanks. I just took the liberty of renaming the function to kvm_bitmap_or_dest_vcpus. Paolo