efifb on Linux guest fails to load when using VGA passthrough
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Expired
|
Undecided
|
Unassigned |
Bug Description
The EFI framebuffer fails to load when booting a Gentoo guest using ovmf + vga_passthrough. I retested using they system rescue CD and saw the same issue, but also noticed that when a second framebuffer loads, nouveaufb in my case, the terminal appears. I have also verified that the Gentoo min CD is not hanging at boot as I can type 'poweroff' after waiting a few minutes and the system responds by powering off. I am unable to reproduce with seabios as I have been unable to get vga passthrough to work with that BIOS.
Steps to Reproduce:
1. Install qemu and ovmf
2. Download systemrescuecd-
3. Run qemu using one of the configurations below
4. Select first boot option in GRUB menu
5. Wait 30 seconds
6. Press enter # System rescue is prompting for the keymap between steps 5 and 6
7. Wait 2 minutes
8. Observe fb console
9. Note lack of output until very late in boot process
10. Check dmesg
11. Note efifb failed to load (invalid address)
12. Note nouveaufb started late in boot process
Expected Results:
The EFI FB to load and display output to monitor. This is the behavior I see when booting the host system via UEFI.
Actual Results:
The EFI FB fails to load and display output. System fails to display any output until nouveaufb loads. When booting using the Gentoo minCD, this makes the system largely unusable.
Additional information:
Tested using Gentoo's app-emulation/
I also tested qemu at git commit 179f9ac887973c8
The OVMF BIOS used can be downloaded from https:/ /dev.gentoo. org/~tamiko/ distfiles/ edk2-ovmf- 2017_p20180211- bin.tar. xz
System information via 'emerge --info' is also provided below.
Portage 2.3.51 (python 3.6.6-final-0, default/ linux/amd64/ 17.1/desktop, gcc-8.2.0, glibc-2.27-r6, 4.19.0-gentoo x86_64) ======= ======= ======= ======= ======= ======= ======= ======= ==
System Settings ======= ======= ======= ======= ======= ======= ======= ======= == 19.0-gentoo- x86_64- Intel-R- _Core-TM- _i7-4771_ CPU_@_3. 50GHz-with- gentoo- 2.6 1707dd73cde11f4 6aca67da49
=======
=======
System uname: Linux-4.
KiB Mem: 32634140 total, 6226108 free
KiB Swap: 2097148 total, 2097148 free
Timestamp of repository gentoo: Sun, 28 Oct 2018 09:44:31 +0000
Head commit of repository gentoo: aea18fb934c3bf3
Timestamp of repository brother-overlay: Sat, 27 Oct 2018 19:24:00 +0000 d12f40585721b65 af7f1f6469
Head commit of repository brother-overlay: 6a39a7856547c13
Head commit of repository nuntoo: b7b28a262ea47f1 e8d92e36ed1a59b ac2f338095
sh bash 4.4_p23 java-config: 2.2.0-r4::gentoo baselayout: 2.6-r1::gentoo gcc-config: 2.0::gentoo linux-headers: 4.19::gentoo (virtual/ os-headers)
ld GNU ld (Gentoo 2.31.1 p3) 2.31.1
app-shells/bash: 4.4_p23::gentoo
dev-java/
dev-lang/perl: 5.26.2::gentoo
dev-lang/python: 2.7.15::gentoo, 3.6.6::gentoo
dev-util/cmake: 3.12.3::gentoo
dev-util/pkgconfig: 0.29.2::gentoo
sys-apps/
sys-apps/openrc: 0.39.1::gentoo
sys-apps/sandbox: 2.13::gentoo
sys-devel/autoconf: 2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake: 1.11.6-r3::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils: 2.31.1-r1::gentoo
sys-devel/gcc: 8.2.0-r4::gentoo
sys-devel/
sys-devel/libtool: 2.4.6-r5::gentoo
sys-devel/make: 4.2.1-r4::gentoo
sys-kernel/
sys-libs/glibc: 2.27-r6::gentoo
Repositories:
gentoo repos/gentoo /github. com/gentoo- mirror/ gentoo. git
location: /var/db/
sync-type: git
sync-uri: https:/
priority: -1000
brother-overlay repos/brother- overlay /github. com/gentoo- mirror/ brother- overlay. git
location: /var/db/
sync-type: git
sync-uri: https:/
masters: gentoo
nuntoo repos/nuntoo /github. com/nvinson/ nuntoo. git
location: /var/db/
sync-type: git
sync-uri: https:/
masters: gentoo
private repos/private
location: /var/db/
masters: gentoo
ACCEPT_ KEYWORDS= "amd64 ~amd64" "x86_64- pc-linux- gnu" "-march= native -O2 -pipe" x86_64- pc-linux- gnu" PROTECT= "/etc /usr/lib64/ libreoffice/ program/ sofficerc /usr/share/ gnupg/qualified .txt" PROTECT_ MASK="/ etc/ca- certificates. conf /etc/dconf /etc/env.d /etc/fonts/ fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/ language. dat.d /etc/texmf/ language. def.d /etc/texmf/updmap.d /etc/texmf/web2c" "-march= native -O2 -pipe" "/var/cache/ portage/ distfiles" DEFAULT_ OPTS="- -jobs=8 --load-average=8" "DBUS_SESSION_ BUS_ADDRESS DISPLAY PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XD...
ACCEPT_LICENSE="* -@EULA"
CBUILD=
CFLAGS=
CHOST="
CONFIG_
CONFIG_
CXXFLAGS=
DISTDIR=
EMERGE_
ENV_UNSET=