From: Ian Campbell Subject: Re: [PATCH v2 0/2] vgic emulation and GICD_ITARGETSR Date: Fri, 6 Jun 2014 17:29:47 +0100 Message-ID: <1402072187.1313.104.camel@kazak.uk.xensource.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Stefano Stabellini Cc: Julien Grall , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Tue, 2014-06-03 at 17:04 +0100, Stefano Stabellini wrote: > Hi all, > this small patch series improves vgic emulation in relation to > GICD_ITARGETSR and irq delivery. I think this somehow relates to the little discussion on "[PATCH v8 13/13] gic_remove_from_queues: take a lock on the right vcpu" is that correct? Do these two patches need to go in instead of that one? Or as precursors to it? Or maybe they are nothing to do with each other? Ian. > > At the moment we don't support irq delivery to vcpu != 0, so prevent the > guest from setting itarget to something != 0. > vgic_enable_irqs and vgic_disable_irqs currently ignore the itarget > settings and just enable/disable irqs on the current vcpu. Fix their > behaviour to enable/disable irqs on the vcpu set by itarget, that is > always vcpu0 for irq >= 32. > > > Stefano Stabellini (2): > xen/arm: ignore guest writes to GICD_ITARGETSR for SPIs > xen/arm: observe itarget setting in vgic_enable_irqs and vgic_disable_irqs > > xen/arch/arm/vgic.c | 50 ++++++++++++++++++++++++++++++++++++++++++-------- > 1 file changed, 42 insertions(+), 8 deletions(-)