From: Roman Bolshakov <r.bolshakov@yadro.com>
To: "Philippe Mathieu-Daudé" <philmd@redhat.com>
Cc: LAHAYE Olivier <olivier.lahaye@cea.fr>,
qemu-devel <qemu-devel@nongnu.org>,
Cameron Esfahani <dirty@apple.com>,
"qemu-discuss@nongnu.org" <qemu-discuss@nongnu.org>
Subject: Re: QEMU + HVF Fails to start OVMF.fd (hang before displaying logo)
Date: Wed, 13 May 2020 00:49:30 +0300 [thread overview]
Message-ID: <20200512214930.GE98158@SPB-NB-133.local> (raw)
In-Reply-To: <6878b688-dd72-c4e4-bdbc-38d6af10f257@redhat.com>
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/qemu-discuss@nongnu.org/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
prev parent reply other threads:[~2020-05-12 21:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1E2B87BF-BC9F-4A4A-962B-DC70B1232B37@cea.fr>
2020-05-11 10:38 ` QEMU + HVF Fails to start OVMF.fd (hang before displaying logo) Philippe Mathieu-Daudé
2020-05-12 21:49 ` Roman Bolshakov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200512214930.GE98158@SPB-NB-133.local \
--to=r.bolshakov@yadro.com \
--cc=dirty@apple.com \
--cc=olivier.lahaye@cea.fr \
--cc=philmd@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-discuss@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).