Skip to contentSkip to conversation

QEMU + HVF Fails to start OVMF.fd (hang before displaying logo)

DISCUSSION Philippe Mathieu-Daudé 2 participants 2 messages May 11, 2020 – May 12, 2020 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi Olivier,

Cc'ing the HVF maintainers.

Quoted 41 lines · LAHAYE Olivier

Hi,

I’m facing a similar problem to this one, but I’m unable to find any solution via google.

https://www.mail-archive.com/[email protected]/msg04372.html

I’m trying to run an EFI BIOS using qemu.

* It works fine without acceleration
* It hangs (display not initialized) when using -accel hvf

I’ve tested many OVMF.fd files from internet including the official one of course whith no differences. (always work with no acceleration and always fail with HVF acceleration).

* OS: MacOS 10.14.6
* QEMU 5.0.0 monitor - type 'help' for more information
* (qemu) qemu-system-x86_64: warning: host doesn't support requested

    feature: CPUID.80000001H:ECX.svm [bit 2]
  * info roms
  * fw=genroms/kvmvapic.bin size=0x002400 name="kvmvapic.bin"
  * addr=00000000fff00000 size=0x100000 mem=rom
    name="/Users/ol222822/data/OVMF.fd"

* /rom@etc/acpi/tables size=0x200000 name="etc/acpi/tables"
* /rom@etc/table-loader size=0x001000 name="etc/table-loader"
* /rom@etc/acpi/rsdp size=0x000014 name="etc/acpi/rsdp"

Is it a known issue?

Is there something I’m missing?

I’m running qemu in the following way:

qemu-system-x86_64 -machine q35 -bios ~/data/OVMF.fd -monitor stdio

If I add -accel hvf, it’ll hang before tiano core logo.

Best regards,

Signature · 1 line
Olivier LAHAYE
#2 lore raw
Quoted 50 lines · Philippe Mathieu-Daudé

Hi Olivier,

Cc'ing the HVF maintainers.

Quoted 44 lines · LAHAYE Olivier

Hi,

I’m facing a similar problem to this one, but I’m unable to find any solution via google.

https://www.mail-archive.com/[email protected]/msg04372.html

I’m trying to run an EFI BIOS using qemu.

* It works fine without acceleration
* It hangs (display not initialized) when using -accel hvf

I’ve tested many OVMF.fd files from internet including the official one of course whith no differences. (always work with no acceleration and always fail with HVF acceleration).

* OS: MacOS 10.14.6
* QEMU 5.0.0 monitor - type 'help' for more information
* (qemu) qemu-system-x86_64: warning: host doesn't support requested

    feature: CPUID.80000001H:ECX.svm [bit 2]
  * info roms
  * fw=genroms/kvmvapic.bin size=0x002400 name="kvmvapic.bin"
  * addr=00000000fff00000 size=0x100000 mem=rom
    name="/Users/ol222822/data/OVMF.fd"

* /rom@etc/acpi/tables size=0x200000 name="etc/acpi/tables"
* /rom@etc/table-loader size=0x001000 name="etc/table-loader"
* /rom@etc/acpi/rsdp size=0x000014 name="etc/acpi/rsdp"

Is it a known issue?

Is there something I’m missing?

I’m running qemu in the following way:

qemu-system-x86_64 -machine q35 -bios ~/data/OVMF.fd -monitor stdio

If I add -accel hvf, it’ll hang before tiano core logo.

Best regards,

Signature · 1 line
Olivier LAHAYE

I tried to use OVMF shipped with qemu couple months ago and it worked, but the latest UEFI from the master branch fails to boot either with hvf or without it if built on macOS and the patch addresses the issue:

https://edk2.groups.io/g/devel/message/59372

I'm able to use UEFI shell on hvf accel if the patch is applied, and I tried to boot FreeBSD iso with UEFI, it also works on the master branch of qemu:

$QEMU_CMD -M q35,accel=hvf -m 512 -drive if=pflash,format=raw,readonly,file=Build/OvmfX64/DEBUG_XCODE5/FV/OVMF_CODE.fd -drive if=pflash,format=raw,file=Build/OvmfX64/DEBUG_XCODE5/FV/OVMF_VARS.fd -chardev file,path=debugcon.log,id=debugcon -device isa-debugcon,iobase=0x402,chardev=debugcon -net none -cdrom ~/Downloads/FreeBSD-12.0-RELEASE-amd64-bootonly.iso

I'm not sure about the logo though, I've never seen it.

Regards,
Roman