From: Christoffer Dall Subject: Re: [Android-virt] [PATCH v4 05/10] ARM: KVM: Inject IRQs and FIQs from userspace Date: Tue, 9 Aug 2011 13:40:03 +0200 Message-ID: <812F9B33-2934-4F45-833B-4E7C60C5DDE2@virtualopensystems.com> References: <20110806103821.27198.41231.stgit@localhost6.localdomain6> <20110806103933.27198.91264.stgit@localhost6.localdomain6> <4E4106D8.3070305@redhat.com> <4E411C02.6070008@redhat.com> Mime-Version: 1.0 (Apple Message framework v1244.3) Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Cc: Christoffer Dall , tech@virtualopensystems.com, android-virt@lists.cs.columbia.edu, kvm@vger.kernel.org To: Avi Kivity Return-path: Received: from mail-fx0-f46.google.com ([209.85.161.46]:42480 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753134Ab1HILkG convert rfc822-to-8bit (ORCPT ); Tue, 9 Aug 2011 07:40:06 -0400 Received: by fxh19 with SMTP id 19so6405712fxh.19 for ; Tue, 09 Aug 2011 04:40:05 -0700 (PDT) In-Reply-To: <4E411C02.6070008@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: 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 >