From: Ian Campbell Subject: Re: [PATCH 0/2] vgic emulation and GICD_ITARGETSR Date: Wed, 28 May 2014 14:33:45 +0100 Message-ID: <1401284025.2427.15.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 Sun, 2014-05-25 at 19:06 +0100, Stefano Stabellini wrote: > Hi all, > this small patch series improves vgic emulation in relation to > GICD_ITARGETSR and irq delivery. > > At the moment we don't support irq delivery to vcpu != 0, so prevent the > guest from setting itarget to something != 0. How hard would this be to support? I think all interrupts already all arrive at pCPU==0, so we must be capable of forwarding them to whichever pCPU might be running vCPU==0? Is extending that to select wihch vcpu to send to hard? > 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: add a warning if the guest asks for SPI delivery to vcpu != 0. > xen/arm: observe itarget setting in vgic_enable_irqs and vgic_disable_irqs > > xen/arch/arm/vgic.c | 47 +++++++++++++++++++++++++++++++++++++++-------- > 1 file changed, 39 insertions(+), 8 deletions(-)