|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Minios-devel] [UNIKRAFT PATCHv5 38/46] plat/kvm: Get PSCI conduit method from DTB for Arm64
On 10.08.2018 09:08, Wei Chen wrote: From: Wei Chen <Wei.Chen@xxxxxxx> PSCI supports two conduit method: HVC and SMC. The method would be set value in device tree's PSCI node. This value would decide which instruction we should use to call PSCI functions. We only support PSCI-1.0 and PSCI-0.2 in this stage. Signed-off-by: Wei Chen <Wei.Chen@xxxxxxx> --- plat/kvm/arm/setup.c | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/plat/kvm/arm/setup.c b/plat/kvm/arm/setup.c index a74c85f..a0b1f50 100644 --- a/plat/kvm/arm/setup.c +++ b/plat/kvm/arm/setup.c @@ -22,6 +22,7 @@ #include <kvm/console.h> #include <uk/assert.h> #include <mm.h> +#include <arm/cpu.h> #include <uk/arch/limits.h>void *_libkvmplat_pagetable;@@ -33,6 +34,8 @@ void *_libkvmplat_dtb; #define MAX_CMDLINE_SIZE 1024 static char cmdline[MAX_CMDLINE_SIZE];+smcc_psci_callfn_t smcc_psci_call; What if you find something else than hvc or smc on the device tree?
_______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |