From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH v4 16/16] xen/arm: add SGI handling for GICv3 Date: Wed, 11 Jun 2014 13:38:42 +0100 Message-ID: <53984DD2.3030804@linaro.org> References: <1401100009-7326-1-git-send-email-vijay.kilari@gmail.com> <1401100009-7326-17-git-send-email-vijay.kilari@gmail.com> <538CA395.4000905@linaro.org> 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: Vijay Kilari Cc: Ian Campbell , Stefano Stabellini , Prasun Kapoor , Vijaya Kumar K , "xen-devel@lists.xen.org" , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On 06/11/2014 01:35 PM, Vijay Kilari wrote: > On Mon, Jun 2, 2014 at 9:47 PM, Julien Grall wrote: >> Hi Vijay, >> >> On 05/26/2014 11:26 AM, vijay.kilari@gmail.com wrote: >>> diff --git a/xen/arch/arm/vgic-v3.c b/xen/arch/arm/vgic-v3.c >>> index d80683d..99d0d46 100644 >>> --- a/xen/arch/arm/vgic-v3.c >>> +++ b/xen/arch/arm/vgic-v3.c >> >> [..] >> >>> +int vgic_emulate(struct cpu_user_regs *regs, union hsr hsr) >>> +{ >> >> You are by-passing without any reason the vgic structure. Why didn't you >> add a new callback there? > > Sorry, I could not get you. Can you please be more clear? Why didn't you add a callback in the vgic structure? The vgic structure is per-domain, so it's perfectly valid (even though it's not you use case) to run a GICv2 guest and a GICv3 guest at the same time. On the former, you don't want to let the guest send an SGI via this solution. Regards, -- Julien Grall