OSDN Git Service

hvc_xen: add earlycon support
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Thu, 25 Feb 2016 12:10:37 +0000 (12:10 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Fri, 26 Feb 2016 15:37:24 +0000 (15:37 +0000)
commit16e506efc08e5cab313588bd0e38803d4bbaad59
tree7fc75d2f12469180b50205fb548641da24650124
parent81f70ba233d5f660e1ea5fe23260ee323af5d53a
hvc_xen: add earlycon support

Introduce EARLYCON support in hvc_xen, useful for early debugging on arm
and arm64, where xen early_printk is not available.

It is different from xenboot_write_console on x86 in two ways:

- it does not return if !xen_pv_domain(), not only because ARM guests
  are xen_hvm_domain(), but also because we want to capture all the
  early boot messages, before xen support is discovered
- it does not try to print to the domU console at all, because xen
  support will only be discovered at a later point

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