On 2017-01-19 21:11, Ralf Ramsauer wrote: > 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 ccb9684243..132877a4a7 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 9b1c0c1df7..3a8c188024 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, > }; >
Reviewed-by: Jan Kiszka <[email protected]> -- 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.
