From: Ian Campbell <ian.campbell@citrix.com>
To: Julien Grall <julien.grall@citrix.com>
Cc: xen-devel@lists.xenproject.org, stefano.stabellini@citrix.com
Subject: Re: [PATCH v2 15/15] xen/arm: gic-v3: Add support of vGICv2 when available
Date: Wed, 1 Jul 2015 09:12:14 +0100 [thread overview]
Message-ID: <1435738334.21469.228.camel@citrix.com> (raw)
In-Reply-To: <5592D1FD.1000103@citrix.com>
On Tue, 2015-06-30 at 18:29 +0100, Julien Grall wrote:
> >
> >> + */
> >> + if ( v->domain->arch.vgic.version == GIC_V2 )
> >> + val &= ~GICC_SRE_EL2_ENEL1;
> >> + else
> >> + val |= GICC_SRE_EL2_ENEL1;
> >> + WRITE_SYSREG32(val, ICC_SRE_EL2);
> >> + isb();
> >
> > Is the isb strictly needed? I suppose we are already using rather too
> > many, perhaps a more complete audit is in order.
>
> AFAICT no, the ENEL1 doesn't gate any access to EL1 systems register in EL2.
>
> There is an isb in the caller (gic_restore_state) but I find it
> confusing because we rely on the caller doing the right thing for us.
> I'm thinking to push the isb within the callee for more clarify.
isb's aren't free though.
> It can be part of a bigger audit.
Indeed, this isn't one for now/.
Really there should probably be a single isb at the end of ctxt
save/restore and very little otherwise except where there is an absolute
need for some sort of ordering between steps.
> >> + /*
> >> + * When the guest is GICv3, all guest IRQs are Group 1, as Group0
> >> + * would result in a FIQ in the guest, which it wouldn't expect
> >
> > Unless the guest actually asked for a FIQ (not sure how that works).
> > Anyway, I don't think you need to support that case here...
>
> Well, I don't even think that FIQ has ever working with guest and Xen.
Yes, you don't need to anything, I was just idly wondering, sorry for
not being clear about that.
> So I would expect to see more work than this small change.
Absolutely,
> > I wonder how one specifies without GICC, given that GICH comes after
> > it... Oh well!
>
> GICv3 doesn't use the GICH to control the GIC hypervisor interface but
> the system register.
Oh of course, I'd forgotten.
> > Despite all the comments I don't think there are any blockers:
> >
> > Acked-by: Ian Campbell <ian.campbell@citrix.com>
>
> Thank you.
>
next prev parent reply other threads:[~2015-07-01 8:12 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-26 9:34 [PATCH v2 00/15] xen/arm: Add support for GICv2 on GICv3 Julien Grall
2015-06-26 9:34 ` [PATCH v2 01/15] xen/arm: Gate GICv3 change with HAS_GICV3 rather than CONFIG_ARM_64 Julien Grall
2015-06-30 12:41 ` Ian Campbell
2015-06-26 9:34 ` [PATCH v2 02/15] xen/arm: gic: Rename the callback make_dt_node in make_hwdom_dt_node Julien Grall
2015-06-30 12:43 ` Ian Campbell
2015-06-26 9:34 ` [PATCH v2 03/15] xen/arm: vGIC: Export vgic_vN ops rather than add an indirection Julien Grall
2015-06-30 12:45 ` Ian Campbell
2015-06-30 13:24 ` Julien Grall
2015-06-26 9:34 ` [PATCH v2 04/15] xen/arm: vGIC: Check return of the domain_init callback Julien Grall
2015-06-26 9:34 ` [PATCH v2 05/15] xen/arm: gic-v3: Fix the distributor region to 64kB Julien Grall
2015-06-26 9:34 ` [PATCH v2 06/15] xen/arm: gic-v3: Use the domain redistributor information to make the DT node Julien Grall
2015-06-30 12:46 ` Ian Campbell
2015-06-26 9:34 ` [PATCH v2 07/15] xen/arm: gic-v3: Rework the print message at initialization Julien Grall
2015-06-30 12:49 ` Ian Campbell
2015-06-26 9:34 ` [PATCH v2 08/15] xen/arm: gic-{v2, hip04}: Remove redundant check in {gicv2, hip04gic}_init Julien Grall
2015-06-26 9:34 ` [PATCH v2 09/15] xen/arm: gic-{v2, hip04}: Use SZ_64K rather than our custom value Julien Grall
2015-06-26 9:34 ` [PATCH v2 10/15] xen/arm: gic: Allow the base address to be 0 Julien Grall
2015-06-26 9:34 ` [PATCH v2 11/15] xen/arm: gic-{v2, hip04}: Remove hbase from the global state Julien Grall
2015-06-26 9:34 ` [PATCH v2 12/15] xen/arm: gic: Store the necessary HW information per vGIC Julien Grall
2015-06-30 12:56 ` Ian Campbell
2015-06-30 13:38 ` Julien Grall
2015-06-30 14:00 ` Ian Campbell
2015-06-30 14:11 ` Julien Grall
2015-06-30 14:18 ` Ian Campbell
2015-06-26 9:34 ` [PATCH v2 13/15] xen/arm: Merge gicv_setup with vgic_domain_init Julien Grall
2015-06-30 12:59 ` Ian Campbell
2015-06-30 13:51 ` Julien Grall
2015-06-30 13:56 ` Ian Campbell
2015-06-26 9:34 ` [PATCH v2 14/15] arm: Allow the user to specify the GIC version Julien Grall
2015-06-30 13:06 ` Ian Campbell
2015-06-30 14:23 ` Julien Grall
2015-06-26 9:34 ` [PATCH v2 15/15] xen/arm: gic-v3: Add support of vGICv2 when available Julien Grall
2015-06-30 13:16 ` Ian Campbell
2015-06-30 17:29 ` Julien Grall
2015-07-01 8:12 ` Ian Campbell [this message]
2015-07-01 10:21 ` Julien Grall
2015-06-30 8:05 ` [PATCH v2 00/15] xen/arm: Add support for GICv2 on GICv3 Chen Baozi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1435738334.21469.228.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=julien.grall@citrix.com \
--cc=stefano.stabellini@citrix.com \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.