Driver must know the location of the console_page. Use the jailhouse_header for propagating the offset.
Signed-off-by: Ralf Ramsauer <[email protected]> --- hypervisor/include/jailhouse/header.h | 3 +++ hypervisor/setup.c | 1 + 2 files changed, 4 insertions(+) diff --git a/hypervisor/include/jailhouse/header.h b/hypervisor/include/jailhouse/header.h index 072a37b2..655d4c91 100644 --- a/hypervisor/include/jailhouse/header.h +++ b/hypervisor/include/jailhouse/header.h @@ -53,6 +53,9 @@ struct jailhouse_header { /** Entry point (arch_entry()). * @note Filled at build time. */ int (*entry)(unsigned int); + /** Offset of the console page inside the hypervisor memory + * @note Filled at build time. */ + unsigned long console_page; /** Configured maximum logical CPU ID + 1. * @note Filled by Linux loader driver before entry. */ diff --git a/hypervisor/setup.c b/hypervisor/setup.c index 12e563ba..791341b1 100644 --- a/hypervisor/setup.c +++ b/hypervisor/setup.c @@ -232,4 +232,5 @@ hypervisor_header = { .core_size = (unsigned long)__page_pool - JAILHOUSE_BASE, .percpu_size = sizeof(struct per_cpu), .entry = arch_entry - JAILHOUSE_BASE, + .console_page = (unsigned long)&console - JAILHOUSE_BASE, }; -- 2.11.0 -- 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]. For more options, visit https://groups.google.com/d/optout.
