From: "Gerd Hoffmann" <kraxel@redhat.com>
To: devel@edk2.groups.io, chris.willing@linux.com
Cc: Ard Biesheuvel <ardb@kernel.org>,
James Bottomley <James.Bottomley@hansenpartnership.com>,
Ard Biesheuvel <ardb+tianocore@kernel.org>,
Jiewen Yao <jiewen.yao@intel.com>
Subject: Re: [edk2-devel] [PATCH 1/1] OvmfPkg PlatformBootManagerLib: Move TryRunningQemuKernel()
Date: Thu, 12 Aug 2021 15:36:28 +0200 [thread overview]
Message-ID: <20210812133628.2tk46qvou725435c@sirius.home.kraxel.org> (raw)
In-Reply-To: <9972a9a6-b34e-7735-d4a7-5ff7c1be8fe0@linux.com>
Hi,
> While that all worked fine, probably with better performance (as Gerd
> mentioned) it was still unsatisfying that I couldn't make the plain ide
> work. It turns out that the ide interface can work without changes to
> the initrd but invocation requires separate -drive and -device options,
> somewhat like James' scsi version, namely:
>
> -device ahci,id=ahci \
> -device ide-hd,drive=ide0,bus=ahci.0 \
> -drive
> if=none,id=ide0,file=disk.img,format=raw,cache=none,index=0,media=disk \
That is again something different, namely sata ...
> instead of my original shortcut version:
>
> -drive file=disk.img,format=raw,cache=none,index=0,media=disk \
... while this is the older pata (with "-machine pc").
To add even more confusion: When using the more modern q35 chipset
("-machine q35") qemu will also use the more modern sata when you
use the shortcut version to attach your disk.
So, in general it is a good idea to explicitly add the storage
controller and devices you want as suggested by James. Results
in less surprises ;)
> I'll probably stick with the better performing scsi version from now on
> although it's still interesting that the shortcut version works without
> UEFI but fails with UEFI.
I've seen guest driver failures due to missing firmware initialization
before. Specifically firmware not setting the busmaster bit in pci
config space leading to guest driver's dma transfers failing (which of
course is a guest driver bug).
I can imagine ovmf taking shortcuts for direct kernel boot could have
that kind of effect too, and of course it could vary depending on the
kind of storage controller used.
take care,
Gerd
next prev parent reply other threads:[~2021-08-12 13:36 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-28 2:02 [PATCH 0/1] OvmfPkg PlatformBootManagerLib: Move TryRunningQemuKernel() Christoph Willing
2021-07-28 2:02 ` [PATCH 1/1] " Christoph Willing
2021-08-09 13:08 ` [edk2-devel] " Ard Biesheuvel
[not found] ` <1695D2E15A92C8E7.3876@groups.io>
2021-08-09 12:53 ` Christoph Willing
2021-08-09 14:52 ` James Bottomley
2021-08-10 0:10 ` Christoph Willing
2021-08-10 6:01 ` Gerd Hoffmann
2021-08-10 12:10 ` Christoph Willing
2021-08-10 14:26 ` James Bottomley
2021-08-10 23:04 ` Christoph Willing
2021-08-10 23:24 ` James Bottomley
2021-08-11 0:34 ` Christoph Willing
2021-08-11 6:12 ` Gerd Hoffmann
2021-08-11 9:55 ` Christoph Willing
2021-08-11 10:30 ` Ard Biesheuvel
2021-08-12 12:41 ` Christoph Willing
2021-08-12 13:36 ` Gerd Hoffmann [this message]
2021-08-12 14:07 ` Christoph Willing
2021-08-11 6:08 ` Gerd Hoffmann
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-list 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=20210812133628.2tk46qvou725435c@sirius.home.kraxel.org \
--to=devel@edk2.groups.io \
/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