Re: [Patch v2 2/2] KVM: x86: deliver KVM IOAPIC scan request to target vCPUs

From: Nitesh Narayan Lal
Date: Fri Nov 15 2019 - 06:46:18 EST



On 11/15/19 5:26 AM, Paolo Bonzini wrote:
> 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.

Sure, thank you.

>
> Paolo
>
--
Nitesh

Attachment: signature.asc
Description: OpenPGP digital signature