[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 0/8] Emulate virtual UART for DOM0 and some UART clean up
Hi, This patch series follows the thread http://patches.linaro.org/18358/ on Linux. In some configuration, the kernel can use hardcoded code to access to the UART (for instance early printk). If Xen has stolen the UART for its own use, DOM0 will abort because Xen has not mapped to DOM0 the UART memory. With this patch series, Xen will "replace" the real UART by a basic virtual UART for DOM0. For the moment, this patch series is not able to cooperate with early printk in guest kernel. To fix it, there is 2 approach: - Expose a pl011 UART for guest - Implement xen early in Linux Any ideas on the best solution? This patch series also contains clean up for the pl011 and exynos4210 drivers. Cheers, Julien Grall (8): pl011: Use ioreadl/iowritel pl011: Move registers' definition in a separate file xen/arm: Use define instead of hardcoded value in debug-pl011 xen/arm: New callback in uart_driver to retrieve serial information xen/arm: Implement a virtual UART exynos4210: rename UTRSTAT_TX_EMPTY in UTRSTAT_TXFE exynos4210: Implement serial_info callback pl011: Implement serial_info callback xen/arch/arm/Makefile | 2 +- xen/arch/arm/arm32/debug-exynos4210.inc | 2 +- xen/arch/arm/arm32/debug-pl011.inc | 18 ++-- xen/arch/arm/domain.c | 12 ++- xen/arch/arm/io.c | 2 +- xen/arch/arm/io.h | 2 +- xen/arch/arm/vpl011.c | 152 ------------------------------- xen/arch/arm/vpl011.h | 35 ------- xen/arch/arm/vuart.c | 150 ++++++++++++++++++++++++++++++ xen/arch/arm/vuart.h | 35 +++++++ xen/drivers/char/exynos4210-uart.c | 15 +++ xen/drivers/char/pl011.c | 115 +++++++++-------------- xen/drivers/char/serial.c | 8 ++ xen/include/asm-arm/domain.h | 14 +-- xen/include/asm-arm/exynos4210-uart.h | 3 +- xen/include/asm-arm/pl011-uart.h | 81 ++++++++++++++++ xen/include/xen/serial.h | 13 +++ 17 files changed, 378 insertions(+), 281 deletions(-) delete mode 100644 xen/arch/arm/vpl011.c delete mode 100644 xen/arch/arm/vpl011.h create mode 100644 xen/arch/arm/vuart.c create mode 100644 xen/arch/arm/vuart.h create mode 100644 xen/include/asm-arm/pl011-uart.h -- 1.7.10.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |