From: Gleb Natapov <gleb@redhat.com>
To: Stefan Hajnoczi <stefanha@gmail.com>
Cc: Bernhard Kohl <bernhard.kohl@nsn.com>,
seabios@seabios.org, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [RFC] Passing boot order from qemu to seabios
Date: Mon, 11 Oct 2010 18:04:19 +0200 [thread overview]
Message-ID: <20101011160419.GG28008@redhat.com> (raw)
In-Reply-To: <AANLkTi=Ojax1wk1-=5qAmmVXfqxS-mTRWBSyQcP9RwXO@mail.gmail.com>
On Mon, Oct 11, 2010 at 04:52:31PM +0100, Stefan Hajnoczi wrote:
> 2010/10/11 Gleb Natapov <gleb@redhat.com>:
> > On Mon, Oct 11, 2010 at 01:48:09PM +0100, Stefan Hajnoczi wrote:
> >> On Mon, Oct 11, 2010 at 12:16 PM, Bernhard Kohl <bernhard.kohl@nsn.com> wrote:
> >> > Am 11.10.2010 12:18, schrieb ext Gleb Natapov:
> >> >>
> >> >> Currently if VM is started with multiple disks it is almost impossible to
> >> >> guess which one of them will be used as boot device especially if there
> >> >> is a mix of ATA/virtio/SCSI devices. Essentially BIOS decides the order
> >> >> and without looking into the code you can't tell what the order will
> >> >> be (and in qemu-kvm if boot=on is used it brings even more havoc). We
> >> >> should allow fine-grained control of boot order from qemu command line,
> >> >> or as a minimum control what device will be used for booting.
> >> >>
> >> >> To do that along with inventing syntax to specify boot order on qemu
> >> >> command line we need to communicate boot order to seabios via fw_cfg
> >> >> interface. For that we need to have a way to unambiguously specify a
> >> >> disk from qemu to seabios. PCI bus address is not enough since not all
> >> >> devices are PCI (do we care about them?) and since one PCI device may
> >> >> control more then one disk (ATA slave/master, SCSI LUNs). We can do what
> >> >> EDD specification does. Describe disk as:
> >> >> bus type (isa/pci),
> >> >> address on a bus (16 bit base address for isa, b/s/f for pci)
> >> >> device type (ATA/SCSI/VIRTIO)
> >> >> device path (slave/master for ATA, LUN for SCSI, nothing for virtio)
> >> >>
> >> >> Will it cover all use cased? Any other ideas?
> >> >
> >> > I think this also applies to network booting via gPXE. Usually our VMs
> >> > have 4 NICs, mixed virtio-net and PCI pass-through. 2 of the NICs shall
> >> > be used for booting, even if there are hard disks or floppy disks
> >> > connected. This scenario is currently almost impossible to configure.
> >>
> >> Here is a gPXE to support fw_cfg. You can pass gPXE script files from
> >> the host to gPXE inside the guest. This means you can boot specific
> >> NICs:
> >> http://patchwork.ozlabs.org/patch/43777/
> >>
> >> Just wanted to post the link because it is related to the gPXE side of
> >> this discussion.
> >>
> > Don't we load gPXE for each NIC and seabios passes PCI device to boot from
> > when it invokes one of them?
>
> SeaBIOS may do that but gPXE internally just probes all PCI devices.
> It does not take advantage of the PCI bus/addr/fn that was passed to
> the option ROM. A gPXE instance will try booting from each available
> NIC in sequence.
Ah, thanks for clarification. Looks like gPXE does the wrong thing here.
Can this behaviour be changed by compile time option?
--
Gleb.
next prev parent reply other threads:[~2010-10-11 16:04 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-11 10:18 [Qemu-devel] [RFC] Passing boot order from qemu to seabios Gleb Natapov
2010-10-11 10:32 ` Kevin Wolf
2010-10-11 10:43 ` Gleb Natapov
2010-10-11 11:01 ` Kevin Wolf
2010-10-11 12:07 ` Gerd Hoffmann
2010-10-11 12:16 ` Gleb Natapov
2010-10-11 19:48 ` [SeaBIOS] " Anthony Liguori
2010-10-11 19:59 ` Gleb Natapov
2010-10-11 20:30 ` Anthony Liguori
2010-10-11 20:36 ` Gleb Natapov
2010-10-11 20:50 ` Anthony Liguori
2010-10-11 21:14 ` Gleb Natapov
2010-10-11 21:15 ` H. Peter Anvin
2010-10-11 21:41 ` Sebastian Herbszt
2010-10-11 21:51 ` H. Peter Anvin
2010-10-12 8:01 ` Gleb Natapov
2010-10-12 16:33 ` H. Peter Anvin
2010-10-12 16:56 ` Gleb Natapov
2010-10-12 17:35 ` H. Peter Anvin
2010-10-12 17:41 ` Gleb Natapov
2010-10-12 17:45 ` H. Peter Anvin
2010-10-12 19:06 ` Gleb Natapov
2010-10-13 19:17 ` H. Peter Anvin
2010-10-13 20:00 ` H. Peter Anvin
2010-10-13 20:22 ` H. Peter Anvin
2010-10-11 19:51 ` Anthony Liguori
2010-10-11 20:02 ` Gleb Natapov
2010-10-11 20:18 ` [SeaBIOS] " H. Peter Anvin
2010-10-11 11:16 ` Bernhard Kohl
2010-10-11 12:08 ` Gleb Natapov
2010-10-11 23:33 ` [SeaBIOS] " Kevin O'Connor
2010-10-11 12:48 ` Stefan Hajnoczi
2010-10-11 14:29 ` Gleb Natapov
2010-10-11 15:52 ` Stefan Hajnoczi
2010-10-11 16:04 ` Gleb Natapov [this message]
2010-10-11 17:01 ` Anthony Liguori
2010-10-11 17:04 ` Gleb Natapov
2010-10-11 23:16 ` [SeaBIOS] " Kevin O'Connor
2010-10-12 8:44 ` Stefan Hajnoczi
2010-10-11 15:09 ` [Qemu-devel] Re: [SeaBIOS] " Avi Kivity
2010-10-11 15:39 ` Gleb Natapov
2010-10-11 15:42 ` Avi Kivity
2010-10-11 15:52 ` Gleb Natapov
2010-10-12 0:08 ` Kevin O'Connor
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=20101011160419.GG28008@redhat.com \
--to=gleb@redhat.com \
--cc=bernhard.kohl@nsn.com \
--cc=qemu-devel@nongnu.org \
--cc=seabios@seabios.org \
--cc=stefanha@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.