hvc_xen: make early_printk work with HVM guests
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Thu, 25 Feb 2016 12:10:39 +0000 (12:10 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Fri, 26 Feb 2016 16:51:24 +0000 (16:51 +0000)
commita4d7b75be034115d36b6a20db566eb8b11bacaf8
tree248751b330ad2cc41bca983987fa20cafbc80423
parent5de738b3fbbd52a21850d5c1b6c1e5823db18b21
hvc_xen: make early_printk work with HVM guests

Refactor the existing code in xen_raw_console_write to get the generic
early_printk console work with HVM guests.

Take the opportunity to replace the outb loop with a single outsb call
to reduce the number of vmexit.

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