As mentioned before, copy the console to the communication region. Now the inmates is able to take the console definition from there, without having the need to define everything statically in mach.h
Signed-off-by: Ralf Ramsauer <[email protected]> --- hypervisor/control.c | 1 + include/jailhouse/hypercall.h | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/hypervisor/control.c b/hypervisor/control.c index 5cf96c95..fc72ed54 100644 --- a/hypervisor/control.c +++ b/hypervisor/control.c @@ -476,6 +476,7 @@ static int cell_create(struct per_cpu *cpu_data, unsigned long config_address) config_commit(cell); cell->comm_page.comm_region.cell_state = JAILHOUSE_CELL_SHUT_DOWN; + cell->comm_page.comm_region.console = cell->config->console; last = &root_cell; while (last->next) diff --git a/include/jailhouse/hypercall.h b/include/jailhouse/hypercall.h index 08bf73ff..fe274951 100644 --- a/include/jailhouse/hypercall.h +++ b/include/jailhouse/hypercall.h @@ -39,6 +39,8 @@ #ifndef _JAILHOUSE_HYPERCALL_H #define _JAILHOUSE_HYPERCALL_H +#include <jailhouse/console.h> + #define JAILHOUSE_HC_DISABLE 0 #define JAILHOUSE_HC_CELL_CREATE 1 #define JAILHOUSE_HC_CELL_START 2 @@ -98,7 +100,9 @@ volatile __u32 cell_state; \ /** \privatesection */ \ volatile __u32 padding; \ - /** \publicsection */ + /** \publicsection */ \ + /** Debug console that may be accessed by the inmate */ \ + struct jailhouse_debug_console console; #include <asm/jailhouse_hypercall.h> -- 2.17.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.
