]> rtime.felk.cvut.cz Git - jailhouse.git/commit
core/driver: Add support for mapping the debug UART from the driver
authorJan Kiszka <jan.kiszka@siemens.com>
Sun, 12 Oct 2014 14:52:31 +0000 (16:52 +0200)
committerJan Kiszka <jan.kiszka@siemens.com>
Thu, 8 Jan 2015 12:01:23 +0000 (13:01 +0100)
commitda2e3fec9d672dfb4e47e855700605d1efa3e012
treedbbb21ca2cfff914c89017238fa19d6e5e263ba2
parent3c73567dce7f8c213afdc8873ceb33dacfb4f0f8
core/driver: Add support for mapping the debug UART from the driver

If the debug UART is memory-mapped, we can only access prior to
switching to hypervisor mappings if the driver supports us in this. By
adding a debug_uart memory region to the system configuration, we tell
the driver about the mapping need. In turn, the driver reports the
virtual address via an additional header field. The mapping can be
released on Linux side right after enabling the hypervisor

Provided the virtual address of the UART mapping as chosen by Linux does
not conflict with our remapping region, this mapping can safely be
replicated into the hypervisor address space so that we don't need to
adjust the UART access after enabling our own mapping.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
driver.c
hypervisor/include/jailhouse/cell-config.h
hypervisor/include/jailhouse/header.h
hypervisor/paging.c