All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xen/arm64: Avoid sending SGI when kicking secondary cpus with spin_table
@ 2015-04-07  7:33 Chen Baozi
  2015-04-08 12:23 ` Julien Grall
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Chen Baozi @ 2015-04-07  7:33 UTC (permalink / raw)
  To: xen-devel; +Cc: Chen Baozi, julien.grall, ian.campbell

From: Chen Baozi <baozich@gmail.com>

On arm64, either firmware or xen's smp_up_cpu gate uses WFE on secondary
cpus to stand-by when booting. Thus, using SEV is enough for the boot
cpu to kick other secondaries. Further more, the current implementation
of cpu_up_send_sgi would pass a NULL cpumask pointer to send_SGI, which
then lead a data fault on GICv3 send_SGI implementation.

Signed-off-by: Chen Baozi <baozich@gmail.com>
---
 xen/arch/arm/arm64/smpboot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/arch/arm/arm64/smpboot.c b/xen/arch/arm/arm64/smpboot.c
index 341cc77..62e6abb 100644
--- a/xen/arch/arm/arm64/smpboot.c
+++ b/xen/arch/arm/arm64/smpboot.c
@@ -38,7 +38,7 @@ static int __init smp_spin_table_cpu_up(int cpu)
 
     sev();
 
-    return cpu_up_send_sgi(cpu);
+    return 0;
 }
 
 static void __init smp_spin_table_init(int cpu, struct dt_device_node *dn)
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-05-09 12:52 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-07  7:33 [PATCH] xen/arm64: Avoid sending SGI when kicking secondary cpus with spin_table Chen Baozi
2015-04-08 12:23 ` Julien Grall
2015-04-15 14:57   ` Ian Campbell
2015-04-15 15:56     ` Julien Grall
2015-04-15 16:21       ` Ian Campbell
2015-04-15 17:53         ` Julien Grall
2015-04-15 17:54         ` Julien Grall
2015-05-08 16:38 ` Julien Grall
2015-05-09 12:52   ` Chen Baozi
2015-05-08 16:39 ` 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.