* [PATCH] xen: arm: take FIQ exceptoons to Xen not guest by setting HCR_EL2.FMO
@ 2014-06-16 10:48 Ian Campbell
2014-06-16 11:22 ` Stefano Stabellini
2014-06-16 11:25 ` Julien Grall
0 siblings, 2 replies; 7+ messages in thread
From: Ian Campbell @ 2014-06-16 10:48 UTC (permalink / raw)
To: xen-devel; +Cc: julien.grall, tim, Ian Campbell, stefano.stabellini
So far none of the platforms which we support use FIQ for anything, but when we
end up supporting one it would be far better to surprise Xen with them than
whatever guest happens to be running...
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
---
xen/arch/arm/traps.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/xen/arch/arm/traps.c b/xen/arch/arm/traps.c
index 333d5c0..88292a5 100644
--- a/xen/arch/arm/traps.c
+++ b/xen/arch/arm/traps.c
@@ -89,8 +89,8 @@ void __cpuinit init_traps(void)
CPTR_EL2);
/* Setup hypervisor traps */
- WRITE_SYSREG(HCR_PTW|HCR_BSU_INNER|HCR_AMO|HCR_IMO|HCR_VM|HCR_TWI|HCR_TSC|
- HCR_TAC|HCR_SWIO|HCR_TIDCP, HCR_EL2);
+ WRITE_SYSREG(HCR_PTW|HCR_BSU_INNER|HCR_AMO|HCR_IMO|HCR_FMO|HCR_VM|
+ HCR_TWI|HCR_TSC|HCR_TAC|HCR_SWIO|HCR_TIDCP, HCR_EL2);
isb();
}
--
1.7.10.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] xen: arm: take FIQ exceptoons to Xen not guest by setting HCR_EL2.FMO
2014-06-16 10:48 [PATCH] xen: arm: take FIQ exceptoons to Xen not guest by setting HCR_EL2.FMO Ian Campbell
@ 2014-06-16 11:22 ` Stefano Stabellini
2014-06-16 11:26 ` Ian Campbell
2014-06-16 11:25 ` Julien Grall
1 sibling, 1 reply; 7+ messages in thread
From: Stefano Stabellini @ 2014-06-16 11:22 UTC (permalink / raw)
To: Ian Campbell; +Cc: stefano.stabellini, tim, julien.grall, xen-devel
On Mon, 16 Jun 2014, Ian Campbell wrote:
> So far none of the platforms which we support use FIQ for anything, but when we
> end up supporting one it would be far better to surprise Xen with them than
> whatever guest happens to be running...
>
> Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
> xen/arch/arm/traps.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/xen/arch/arm/traps.c b/xen/arch/arm/traps.c
> index 333d5c0..88292a5 100644
> --- a/xen/arch/arm/traps.c
> +++ b/xen/arch/arm/traps.c
> @@ -89,8 +89,8 @@ void __cpuinit init_traps(void)
> CPTR_EL2);
>
> /* Setup hypervisor traps */
> - WRITE_SYSREG(HCR_PTW|HCR_BSU_INNER|HCR_AMO|HCR_IMO|HCR_VM|HCR_TWI|HCR_TSC|
> - HCR_TAC|HCR_SWIO|HCR_TIDCP, HCR_EL2);
> + WRITE_SYSREG(HCR_PTW|HCR_BSU_INNER|HCR_AMO|HCR_IMO|HCR_FMO|HCR_VM|
> + HCR_TWI|HCR_TSC|HCR_TAC|HCR_SWIO|HCR_TIDCP, HCR_EL2);
> isb();
> }
>
> --
> 1.7.10.4
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] xen: arm: take FIQ exceptoons to Xen not guest by setting HCR_EL2.FMO
2014-06-16 10:48 [PATCH] xen: arm: take FIQ exceptoons to Xen not guest by setting HCR_EL2.FMO Ian Campbell
2014-06-16 11:22 ` Stefano Stabellini
@ 2014-06-16 11:25 ` Julien Grall
2014-06-16 11:28 ` Ian Campbell
1 sibling, 1 reply; 7+ messages in thread
From: Julien Grall @ 2014-06-16 11:25 UTC (permalink / raw)
To: Ian Campbell, xen-devel; +Cc: tim, stefano.stabellini
Hi Ian,
There is small typo in the commit title:
s/exceptoons/exceptions/
On 06/16/2014 11:48 AM, Ian Campbell wrote:
> So far none of the platforms which we support use FIQ for anything, but when we
> end up supporting one it would be far better to surprise Xen with them than
> whatever guest happens to be running...
May I ask for a reference in the ARM ARM? I can't find any paragraph
stating that the FIQ is taken in guest mode if HCR.EL2.FMO is not set.
Regards,
--
Julien Grall
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] xen: arm: take FIQ exceptoons to Xen not guest by setting HCR_EL2.FMO
2014-06-16 11:22 ` Stefano Stabellini
@ 2014-06-16 11:26 ` Ian Campbell
0 siblings, 0 replies; 7+ messages in thread
From: Ian Campbell @ 2014-06-16 11:26 UTC (permalink / raw)
To: Stefano Stabellini; +Cc: julien.grall, tim, xen-devel
On Mon, 2014-06-16 at 12:22 +0100, Stefano Stabellini wrote:
> On Mon, 16 Jun 2014, Ian Campbell wrote:
> > So far none of the platforms which we support use FIQ for anything, but when we
> > end up supporting one it would be far better to surprise Xen with them than
> > whatever guest happens to be running...
> >
> > Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
>
> Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Thanks.
I'll obviously fix the typo in $subject as this goes in...
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] xen: arm: take FIQ exceptoons to Xen not guest by setting HCR_EL2.FMO
2014-06-16 11:25 ` Julien Grall
@ 2014-06-16 11:28 ` Ian Campbell
2014-06-16 11:36 ` Julien Grall
0 siblings, 1 reply; 7+ messages in thread
From: Ian Campbell @ 2014-06-16 11:28 UTC (permalink / raw)
To: Julien Grall; +Cc: stefano.stabellini, tim, xen-devel
On Mon, 2014-06-16 at 12:25 +0100, Julien Grall wrote:
> Hi Ian,
>
> There is small typo in the commit title:
>
> s/exceptoons/exceptions/
Spotted, thanks
> On 06/16/2014 11:48 AM, Ian Campbell wrote:
> > So far none of the platforms which we support use FIQ for anything, but when we
> > end up supporting one it would be far better to surprise Xen with them than
> > whatever guest happens to be running...
>
> May I ask for a reference in the ARM ARM? I can't find any paragraph
> stating that the FIQ is taken in guest mode if HCR.EL2.FMO is not set.
That's pretty much the meaning of that bit, it's analogous to
HCR_EL2.IMO which does the same for regular interrupts and .AMO which
does the same for async aborts.
Ian.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] xen: arm: take FIQ exceptoons to Xen not guest by setting HCR_EL2.FMO
2014-06-16 11:28 ` Ian Campbell
@ 2014-06-16 11:36 ` Julien Grall
2014-06-16 11:42 ` Ian Campbell
0 siblings, 1 reply; 7+ messages in thread
From: Julien Grall @ 2014-06-16 11:36 UTC (permalink / raw)
To: Ian Campbell; +Cc: stefano.stabellini, tim, xen-devel
On 06/16/2014 12:28 PM, Ian Campbell wrote:
> On Mon, 2014-06-16 at 12:25 +0100, Julien Grall wrote:
>> Hi Ian,
>>
>> There is small typo in the commit title:
>>
>> s/exceptoons/exceptions/
>
> Spotted, thanks
>
>> On 06/16/2014 11:48 AM, Ian Campbell wrote:
>>> So far none of the platforms which we support use FIQ for anything, but when we
>>> end up supporting one it would be far better to surprise Xen with them than
>>> whatever guest happens to be running...
>>
>> May I ask for a reference in the ARM ARM? I can't find any paragraph
>> stating that the FIQ is taken in guest mode if HCR.EL2.FMO is not set.
>
> That's pretty much the meaning of that bit, it's analogous to
> HCR_EL2.IMO which does the same for regular interrupts and .AMO which
> does the same for async aborts.
AFAIU this bit is firstly use to change the masking of CPSR. My first
thought was about it. I had to follow multiple link before finding the
right paragraph about the routing.
Can you add a reference to B1.8.4?
Acked-by: Julien Grall <julien.grall@linaro.org>
Regards,
--
Julien Grall
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] xen: arm: take FIQ exceptoons to Xen not guest by setting HCR_EL2.FMO
2014-06-16 11:36 ` Julien Grall
@ 2014-06-16 11:42 ` Ian Campbell
0 siblings, 0 replies; 7+ messages in thread
From: Ian Campbell @ 2014-06-16 11:42 UTC (permalink / raw)
To: Julien Grall; +Cc: stefano.stabellini, tim, xen-devel
On Mon, 2014-06-16 at 12:36 +0100, Julien Grall wrote:
> On 06/16/2014 12:28 PM, Ian Campbell wrote:
> > On Mon, 2014-06-16 at 12:25 +0100, Julien Grall wrote:
> >> Hi Ian,
> >>
> >> There is small typo in the commit title:
> >>
> >> s/exceptoons/exceptions/
> >
> > Spotted, thanks
> >
> >> On 06/16/2014 11:48 AM, Ian Campbell wrote:
> >>> So far none of the platforms which we support use FIQ for anything, but when we
> >>> end up supporting one it would be far better to surprise Xen with them than
> >>> whatever guest happens to be running...
> >>
> >> May I ask for a reference in the ARM ARM? I can't find any paragraph
> >> stating that the FIQ is taken in guest mode if HCR.EL2.FMO is not set.
> >
> > That's pretty much the meaning of that bit, it's analogous to
> > HCR_EL2.IMO which does the same for regular interrupts and .AMO which
> > does the same for async aborts.
>
> AFAIU this bit is firstly use to change the masking of CPSR. My first
> thought was about it. I had to follow multiple link before finding the
> right paragraph about the routing.
>
> Can you add a reference to B1.8.4?
OK.
>
> Acked-by: Julien Grall <julien.grall@linaro.org>
>
> Regards,
>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-06-16 11:42 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-16 10:48 [PATCH] xen: arm: take FIQ exceptoons to Xen not guest by setting HCR_EL2.FMO Ian Campbell
2014-06-16 11:22 ` Stefano Stabellini
2014-06-16 11:26 ` Ian Campbell
2014-06-16 11:25 ` Julien Grall
2014-06-16 11:28 ` Ian Campbell
2014-06-16 11:36 ` Julien Grall
2014-06-16 11:42 ` Ian Campbell
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.