[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT early RFC PATCH 05/11] plat/kvm/smp: Add psci call psci_cpu_on



Add psci call psci_cpu_on

Signed-off-by: Jia He <justin.he@xxxxxxx>
---
 plat/kvm/arm/setup.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/plat/kvm/arm/setup.c b/plat/kvm/arm/setup.c
index 6125a30..1f6e458 100644
--- a/plat/kvm/arm/setup.c
+++ b/plat/kvm/arm/setup.c
@@ -41,6 +41,12 @@ smcc_psci_callfn_t smcc_psci_call;
 extern void _libkvmplat_newstack(uint64_t stack_start,
                        void (*tramp)(void *), void *arg);
 
+int psci_cpu_on(unsigned long cpu, unsigned long entry)
+{
+       /* PSCI v0.1 and v0.2 both support cpu_on. */
+       return smcc_psci_hvc_call(PSCI_FNID_CPU_ON, cpu, entry, cpu);
+}
+
 static void _init_dtb(void *dtb_pointer)
 {
        int ret;
-- 
2.17.1


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.