On Aug 9, 2011, at 1:37 PM, Avi Kivity wrote:
> 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.
yep, I am aware. It's on my to-do list. Thanks.
>
> --
> 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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html