* [PATCH] xen: arm: enable aborts on all physical processors.
@ 2013-04-25 14:45 Ian Campbell
2013-07-18 12:13 ` Ian Campbell
0 siblings, 1 reply; 4+ messages in thread
From: Ian Campbell @ 2013-04-25 14:45 UTC (permalink / raw)
To: xen-devel; +Cc: tim, Ian Campbell, stefano.stabellini
I'm not sure how this ended up in construct dom0 where it only affects the
boot cpu and doesn't logically fit.
Enable aborts at the same time as we enable interrupts.
I'm not sure what the behaviour of an "abort worthy" operation while aborts
are disable is, but it must surely be worse than calling do_unexpected_trap,
which is what happens from now on.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
---
xen/arch/arm/domain_build.c | 2 --
xen/arch/arm/setup.c | 1 +
xen/arch/arm/smpboot.c | 1 +
3 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c
index 81a759c..1913f87 100644
--- a/xen/arch/arm/domain_build.c
+++ b/xen/arch/arm/domain_build.c
@@ -455,8 +455,6 @@ int construct_dom0(struct domain *d)
}
#endif
- local_abort_enable();
-
return 0;
}
diff --git a/xen/arch/arm/setup.c b/xen/arch/arm/setup.c
index cfe3d94..9be1fc9 100644
--- a/xen/arch/arm/setup.c
+++ b/xen/arch/arm/setup.c
@@ -473,6 +473,7 @@ void __init start_xen(unsigned long boot_phys_offset,
arch_init_memory();
local_irq_enable();
+ local_abort_enable();
smp_prepare_cpus(cpus);
diff --git a/xen/arch/arm/smpboot.c b/xen/arch/arm/smpboot.c
index bd353c8..507936d 100644
--- a/xen/arch/arm/smpboot.c
+++ b/xen/arch/arm/smpboot.c
@@ -177,6 +177,7 @@ void __cpuinit start_secondary(unsigned long boot_phys_offset,
wmb();
local_irq_enable();
+ local_abort_enable();
printk(XENLOG_DEBUG "CPU %u booted.\n", smp_processor_id());
--
1.7.2.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] xen: arm: enable aborts on all physical processors.
2013-04-25 14:45 [PATCH] xen: arm: enable aborts on all physical processors Ian Campbell
@ 2013-07-18 12:13 ` Ian Campbell
2013-07-18 17:01 ` Tim Deegan
0 siblings, 1 reply; 4+ messages in thread
From: Ian Campbell @ 2013-07-18 12:13 UTC (permalink / raw)
To: xen-devel@lists.xen.org; +Cc: Tim (Xen.org), Stefano Stabellini
(Very Belated) Ping?
On Thu, 2013-04-25 at 15:45 +0100, Ian Campbell wrote:
> I'm not sure how this ended up in construct dom0 where it only affects the
> boot cpu and doesn't logically fit.
>
> Enable aborts at the same time as we enable interrupts.
>
> I'm not sure what the behaviour of an "abort worthy" operation while aborts
> are disable is, but it must surely be worse than calling do_unexpected_trap,
> which is what happens from now on.
>
> Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
> ---
> xen/arch/arm/domain_build.c | 2 --
> xen/arch/arm/setup.c | 1 +
> xen/arch/arm/smpboot.c | 1 +
> 3 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c
> index 81a759c..1913f87 100644
> --- a/xen/arch/arm/domain_build.c
> +++ b/xen/arch/arm/domain_build.c
> @@ -455,8 +455,6 @@ int construct_dom0(struct domain *d)
> }
> #endif
>
> - local_abort_enable();
> -
> return 0;
> }
>
> diff --git a/xen/arch/arm/setup.c b/xen/arch/arm/setup.c
> index cfe3d94..9be1fc9 100644
> --- a/xen/arch/arm/setup.c
> +++ b/xen/arch/arm/setup.c
> @@ -473,6 +473,7 @@ void __init start_xen(unsigned long boot_phys_offset,
> arch_init_memory();
>
> local_irq_enable();
> + local_abort_enable();
>
> smp_prepare_cpus(cpus);
>
> diff --git a/xen/arch/arm/smpboot.c b/xen/arch/arm/smpboot.c
> index bd353c8..507936d 100644
> --- a/xen/arch/arm/smpboot.c
> +++ b/xen/arch/arm/smpboot.c
> @@ -177,6 +177,7 @@ void __cpuinit start_secondary(unsigned long boot_phys_offset,
> wmb();
>
> local_irq_enable();
> + local_abort_enable();
>
> printk(XENLOG_DEBUG "CPU %u booted.\n", smp_processor_id());
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] xen: arm: enable aborts on all physical processors.
2013-07-18 12:13 ` Ian Campbell
@ 2013-07-18 17:01 ` Tim Deegan
2013-07-19 14:17 ` Ian Campbell
0 siblings, 1 reply; 4+ messages in thread
From: Tim Deegan @ 2013-07-18 17:01 UTC (permalink / raw)
To: Ian Campbell; +Cc: Stefano Stabellini, xen-devel@lists.xen.org
At 13:13 +0100 on 18 Jul (1374153205), Ian Campbell wrote:
> (Very Belated) Ping?
>
> On Thu, 2013-04-25 at 15:45 +0100, Ian Campbell wrote:
> > I'm not sure how this ended up in construct dom0 where it only affects the
> > boot cpu and doesn't logically fit.
> >
> > Enable aborts at the same time as we enable interrupts.
> >
> > I'm not sure what the behaviour of an "abort worthy" operation while aborts
> > are disable is, but it must surely be worse than calling do_unexpected_trap,
> > which is what happens from now on.
> >
> > Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] xen: arm: enable aborts on all physical processors.
2013-07-18 17:01 ` Tim Deegan
@ 2013-07-19 14:17 ` Ian Campbell
0 siblings, 0 replies; 4+ messages in thread
From: Ian Campbell @ 2013-07-19 14:17 UTC (permalink / raw)
To: Tim Deegan; +Cc: Stefano Stabellini, xen-devel@lists.xen.org
On Thu, 2013-07-18 at 18:01 +0100, Tim Deegan wrote:
> At 13:13 +0100 on 18 Jul (1374153205), Ian Campbell wrote:
> > (Very Belated) Ping?
> >
> > On Thu, 2013-04-25 at 15:45 +0100, Ian Campbell wrote:
> > > I'm not sure how this ended up in construct dom0 where it only affects the
> > > boot cpu and doesn't logically fit.
> > >
> > > Enable aborts at the same time as we enable interrupts.
> > >
> > > I'm not sure what the behaviour of an "abort worthy" operation while aborts
> > > are disable is, but it must surely be worse than calling do_unexpected_trap,
> > > which is what happens from now on.
> > >
> > > Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
>
> Acked-by: Tim Deegan <tim@xen.org>
Thanks, applied.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-07-19 14:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-25 14:45 [PATCH] xen: arm: enable aborts on all physical processors Ian Campbell
2013-07-18 12:13 ` Ian Campbell
2013-07-18 17:01 ` Tim Deegan
2013-07-19 14:17 ` Ian Campbell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).