lguest: use the PCI console device's emerg_wr for early boot messages.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 11 Feb 2015 04:56:01 +0000 (15:26 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 11 Feb 2015 06:17:44 +0000 (16:47 +1030)
commita561adfaecc9eb6fb66941b450458801f3f60ca0
treefc4bb1870df410e832adb8e321b6a2417706b33d
parent713e3f72244cb67fe1ad5c82a061c0b1be2f2fc5
lguest: use the PCI console device's emerg_wr for early boot messages.

This involves manually checking the console device (which is always in
slot 1 of bus 0) and using the window in VIRTIO_PCI_CAP_PCI_CFG to
program it (as we can't map the BAR yet).

We could in fact do this much earlier, but we wait for the first
write from the virtio_cons_early_init() facility.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
arch/x86/lguest/boot.c