qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: Anthony Liguori <anthony@codemonkey.ws>
Cc: Jan Kiszka <jan.kiszka@siemens.com>,
	Gerd Hoffmann <kraxel@redhat.com>,
	qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Re: [PATCH 0/2] port over extboot from kvm
Date: Tue, 08 Sep 2009 22:11:18 +0300	[thread overview]
Message-ID: <4AA6AC56.5020700@redhat.com> (raw)
In-Reply-To: <4AA692A0.1070006@codemonkey.ws>

On 09/08/2009 08:21 PM, Anthony Liguori wrote:
> Avi Kivity wrote:
>> On 09/08/2009 05:32 PM, Anthony Liguori wrote:
>>> Gerd Hoffmann wrote:
>>>> On 09/08/09 15:47, Jan Kiszka wrote:
>>>>
>>>>> Before setting this definitely useful feature in stone, I have two
>>>>> questions though:
>>>>>
>>>>>   - -drive ...,boot=on is logically in conflict with -boot. Yes, 
>>>>> -boot
>>>
>>> x86 boot is strange.  The BIOS boots from the "first hard disk"  
>>> What extboot allows you do to is redefine to the bios what 
>>> constitutes the "first hard disk".
>>
>> It's not just booting - it's the int 0x13 interface.  Grub for 
>> example continues to use it and can boot from the second hard disk if 
>> desired.
>
> Our BIOS can only support booting from the 0x80 and this is pretty 
> normal.

The bios exports the "bios drives".  You can tell grub to load a kernel 
from the first partition of the second disk: (hd1,0) or even chain-load 
another boot loaded from another disk.

>
> The right way to do this from a BBS perspective would be to implement 
> BCV support.  We could then have BCV entries for every possible disk.  
> Option roms (like extboot/gpxe) can register add new BCV entries.  
> We'd want the user to be able to specify the priority of each disk, so..

I don't know anything about BBS/BCV but it seems reasonable.

>
>> I agree with this and I think we should extend it to 
>> boot=0x80|0x81....  boot=on is an alias to boot=0x80.
>
> Would be better to stick with 0-based integers.  We would then use 
> this to generate BCV priorities.

Sure.

>
> The highest priority BCV device is still exposed as int13 disk 0x80.  
> I suspect certain OSes will only boot from disk 0x80 (probably Windows).

Windows has its own boot loader drive format that can specify other 
drives (I think using its own drivers, not the bios).

-- 
Do not meddle in the internals of kernels, for they are subtle and quick to panic.

  reply	other threads:[~2009-09-08 19:05 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-08  9:17 [Qemu-devel] [PATCH 0/2] port over extboot from kvm Gerd Hoffmann
2009-09-08  9:17 ` [Qemu-devel] [PATCH 1/2] extboot: add option rom Gerd Hoffmann
2009-09-08  9:17 ` [Qemu-devel] [PATCH 2/2] extboot: qemu code Gerd Hoffmann
2009-09-08 11:59 ` [Qemu-devel] [PATCH 0/2] port over extboot from kvm Gerd Hoffmann
2009-09-08 13:47 ` [Qemu-devel] " Jan Kiszka
2009-09-08 14:22   ` Gerd Hoffmann
2009-09-08 14:32     ` Anthony Liguori
2009-09-08 16:05       ` Avi Kivity
2009-09-08 17:21         ` Anthony Liguori
2009-09-08 19:11           ` Avi Kivity [this message]
2009-09-08 19:46             ` Anthony Liguori
2009-09-08 20:00               ` Avi Kivity
2009-09-08 20:10                 ` Anthony Liguori
2009-09-12 15:03         ` Kevin O'Connor
2009-09-08 14:40     ` Jan Kiszka
2009-09-08 14:52       ` Gerd Hoffmann
2009-09-08 16:15         ` Jan Kiszka
2009-09-08 17:12           ` Anthony Liguori
2009-09-08 19:03             ` Gerd Hoffmann
2009-09-08 19:39               ` Anthony Liguori
2009-09-12 15:43       ` Kevin O'Connor
2009-09-08 14:16 ` [Qemu-devel] " Anthony Liguori
2009-11-09 16:06   ` Paul Brook
2009-11-09 16:31     ` Gerd Hoffmann
2009-11-09 16:40       ` Anthony Liguori
2009-11-11 13:01         ` Hannes Reinecke
2009-11-11 13:25           ` Anthony Liguori
2009-11-11 13:54             ` Paul Brook

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=4AA6AC56.5020700@redhat.com \
    --to=avi@redhat.com \
    --cc=anthony@codemonkey.ws \
    --cc=jan.kiszka@siemens.com \
    --cc=kraxel@redhat.com \
    --cc=qemu-devel@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).