Re: [PATCH 3/3] KVM: x86: do not scan IRR twice on APICv vmentry

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 14/10/2016 09:32, Yang Zhang wrote:
>>
>> -void __kvm_apic_update_irr(u32 *pir, void *regs)
>> +int __kvm_apic_update_irr(u32 *pir, void *regs)
>>  {
>> -    u32 i, pir_val;
>> +    u32 i, vec;
>> +    u32 pir_val, irr_val;
>> +    int max_irr = -1;
>>
>> -    for (i = 0; i <= 7; i++) {
>> +    for (i = vec = 0; i <= 7; i++, vec += 32) {
> 
> how about ignore the first 32 vectors since they cannot be used as
> normal interrupt except nmi interrupt which is special handled.

I think that, while they should not be used as normal interrupts,
there's nothing that prevents you from misusing them as normal interrupts.

Paolo
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux