[Skiboot] [RFC PATCH v4 04/16] Add uv-entry dt property for starting ultravisor

Ryan Grimm grimm at linux.ibm.com
Thu Feb 27 23:20:30 AEDT 2020


We can jump into any location in the uv image for testing.

Signed-off-by: Ryan Grimm <grimm at linux.ibm.com>
---
 hw/ultravisor.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/hw/ultravisor.c b/hw/ultravisor.c
index 362b7f54..2fc1ecf1 100644
--- a/hw/ultravisor.c
+++ b/hw/ultravisor.c
@@ -14,8 +14,13 @@ static uint64_t uv_base_addr;
 
 static void cpu_start_ultravisor(void *fdt)
 {
+	uint64_t uv_entry = 0;
+
+	if (dt_find_property(uv_fw_node, "uv-entry"))
+		uv_entry = dt_prop_get_u64(uv_fw_node, "uv-entry");
+
 	prlog(PR_DEBUG, "UV: Starting on CPU 0x%04x\n", this_cpu()->pir);
-	start_uv(uv_base_addr, fdt);
+	start_uv(uv_base_addr + uv_entry, fdt);
 }
 
 int start_ultravisor(void *fdt)
-- 
2.21.0



More information about the Skiboot mailing list