Re: [Android-virt] [PATCH v4 05/10] ARM: KVM: Inject IRQs and FIQs from userspace

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

 



On 08/09/2011 02:27 PM, Christoffer Dall wrote:
>
>>  +
>>  +	if (irq_level->level) {
>>  +		vcpu->arch.virt_irq |= mask;
>>  +		vcpu->arch.wait_for_interrupts = 0;
>>  +	} else
>>  +		vcpu->arch.virt_irq&= ~mask;
>>  +
>
>  This seems to be non-smp-safe?  Do you need atomic ops and barriers
>  here?  And a wakeup?

The whole thing is not SMP tested yet, so I took some shortcuts. I only recently got hold of a SMP model and SMP support will be a focus area for the next series. Thanks for pin-pointing this though.

Note even a single vcpu guest on an smp host needs this.

--
error compiling committee.c: too many arguments to function

--
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