qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Roman Bolshakov
Subject: Re: QEMU + HVF Fails to start OVMF.fd (hang before displaying logo)
Date: Wed, 13 May 2020 00:49:30 +0300

On Mon, May 11, 2020 at 12:38:26PM +0200, Philippe Mathieu-Daudé wrote:
> Hi Olivier,
> 
> Cc'ing the HVF maintainers.
> 
> On 5/11/20 12:26 PM, LAHAYE Olivier wrote:
> > 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/address@hidden/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,
> > 
> > -- 
> > 
> > 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]