We need this for RISC-V. Makes life easier.

Signed-off-by: Ralf Ramsauer <[email protected]>
---
 driver/main.c                         | 1 +
 hypervisor/include/jailhouse/header.h | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/driver/main.c b/driver/main.c
index ef1c2a90..d5c823f2 100644
--- a/driver/main.c
+++ b/driver/main.c
@@ -513,6 +513,7 @@ static int jailhouse_cmd_enable(struct jailhouse_system 
__user *arg)
 
        header = (struct jailhouse_header *)hypervisor_mem;
        header->max_cpus = config_header.root_cell.num_cpus;
+       header->initial_load_address = (unsigned long)hypervisor_mem;
 
 #if defined(CONFIG_ARM) || defined(CONFIG_ARM64)
        header->arm_linux_hyp_vectors = virt_to_phys(*__hyp_stub_vectors_sym);
diff --git a/hypervisor/include/jailhouse/header.h 
b/hypervisor/include/jailhouse/header.h
index c5285262..574aae3f 100644
--- a/hypervisor/include/jailhouse/header.h
+++ b/hypervisor/include/jailhouse/header.h
@@ -77,6 +77,8 @@ struct jailhouse_header {
         * @note Filled at build time */
        void *gcov_info_head;
 
+       unsigned long initial_load_address;
+
        /** Configured maximum logical CPU ID + 1.
         * @note Filled by Linux loader driver before entry. */
        unsigned int max_cpus;
-- 
2.36.1

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/20220627132905.4338-26-ralf.ramsauer%40oth-regensburg.de.

Reply via email to