hvc_xen: fix xenboot for DomUs
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Thu, 25 Feb 2016 12:10:38 +0000 (12:10 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Fri, 26 Feb 2016 16:51:08 +0000 (16:51 +0000)
commit5de738b3fbbd52a21850d5c1b6c1e5823db18b21
tree863e721a59393476be1a21909db8e6ccb3e0c95c
parent16e506efc08e5cab313588bd0e38803d4bbaad59
hvc_xen: fix xenboot for DomUs

The xenboot early console has been partially broken for DomU for a long
time: the output would only go to the hypervisor via hypercall
(HYPERVISOR_console_io), while it wouldn't actually go to the DomU
console. The reason is that domU_write_console would return early as no
xencons structs are configured for it.

Add an appropriate xencons struct for xenboot from the xenboot setup
callback.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
drivers/tty/hvc/hvc_xen.c