[Qemu-devel] Re: [PATCHv2] Support for booting from virtio disks

2010-05-12 Thread Kevin O'Connor
On Wed, May 12, 2010 at 10:22:59AM +0300, Avi Kivity wrote: > On 05/11/2010 03:31 PM, Gleb Natapov wrote: > >Real BIOS can do that because it enumerates all bootable devices, > >attach name for each one of them and then asks user to configure > >boot order using names it attached to devices. In our

[Qemu-devel] Re: [PATCHv2] Support for booting from virtio disks

2010-05-12 Thread Gleb Natapov
On Wed, May 12, 2010 at 10:22:59AM +0300, Avi Kivity wrote: > On 05/11/2010 03:31 PM, Gleb Natapov wrote: > >On Tue, May 11, 2010 at 11:19:07AM +0300, Avi Kivity wrote: > >>On 05/10/2010 06:48 PM, Anthony Liguori wrote: > >>>On 05/10/2010 03:11 AM, Gleb Natapov wrote: > This patch adds native s

[Qemu-devel] Re: [PATCHv2] Support for booting from virtio disks

2010-05-12 Thread Avi Kivity
On 05/11/2010 03:31 PM, Gleb Natapov wrote: On Tue, May 11, 2010 at 11:19:07AM +0300, Avi Kivity wrote: On 05/10/2010 06:48 PM, Anthony Liguori wrote: On 05/10/2010 03:11 AM, Gleb Natapov wrote: This patch adds native support for booting from virtio disks to Seabios. Signed-

[Qemu-devel] Re: [PATCHv2] Support for booting from virtio disks

2010-05-11 Thread Gleb Natapov
On Tue, May 11, 2010 at 10:04:25AM +0100, Stefan Hajnoczi wrote: > >From what I can tell SeaBIOS is reading CMOS_BIOS_BOOTFLAG1 and > CMOS_BIOS_BOOTFLAG2 from non-volatile memory. The values index into > bev[], which contains IPL entries (the drives). > > Is the order of bev[] entries well-define

[Qemu-devel] Re: [PATCHv2] Support for booting from virtio disks

2010-05-11 Thread Gleb Natapov
On Tue, May 11, 2010 at 11:19:07AM +0300, Avi Kivity wrote: > On 05/10/2010 06:48 PM, Anthony Liguori wrote: > >On 05/10/2010 03:11 AM, Gleb Natapov wrote: > >>This patch adds native support for booting from virtio disks to Seabios. > >> > >>Signed-off-by: Gleb Natapov > > > >A related problem that

[Qemu-devel] Re: [PATCHv2] Support for booting from virtio disks

2010-05-11 Thread Stefan Hajnoczi
>From what I can tell SeaBIOS is reading CMOS_BIOS_BOOTFLAG1 and CMOS_BIOS_BOOTFLAG2 from non-volatile memory. The values index into bev[], which contains IPL entries (the drives). Is the order of bev[] entries well-defined? Is there a way for QEMU command-line to know that the first virtio-blk

[Qemu-devel] Re: [PATCHv2] Support for booting from virtio disks

2010-05-11 Thread Avi Kivity
On 05/10/2010 06:48 PM, Anthony Liguori wrote: On 05/10/2010 03:11 AM, Gleb Natapov wrote: This patch adds native support for booting from virtio disks to Seabios. Signed-off-by: Gleb Natapov A related problem that I think we need to think about how we solve is indicating to Seabios which de

[Qemu-devel] Re: [PATCHv2] Support for booting from virtio disks

2010-05-10 Thread Gleb Natapov
On Mon, May 10, 2010 at 10:58:45AM -0500, Anthony Liguori wrote: > On 05/10/2010 10:54 AM, Gleb Natapov wrote: > >On Mon, May 10, 2010 at 10:48:42AM -0500, Anthony Liguori wrote: > >>On 05/10/2010 03:11 AM, Gleb Natapov wrote: > >>>This patch adds native support for booting from virtio disks to Sea

[Qemu-devel] Re: [PATCHv2] Support for booting from virtio disks

2010-05-10 Thread Anthony Liguori
On 05/10/2010 10:54 AM, Gleb Natapov wrote: On Mon, May 10, 2010 at 10:48:42AM -0500, Anthony Liguori wrote: On 05/10/2010 03:11 AM, Gleb Natapov wrote: This patch adds native support for booting from virtio disks to Seabios. Signed-off-by: Gleb Natapov A related problem tha

[Qemu-devel] Re: [PATCHv2] Support for booting from virtio disks

2010-05-10 Thread Gleb Natapov
On Mon, May 10, 2010 at 10:48:42AM -0500, Anthony Liguori wrote: > On 05/10/2010 03:11 AM, Gleb Natapov wrote: > >This patch adds native support for booting from virtio disks to Seabios. > > > >Signed-off-by: Gleb Natapov > > A related problem that I think we need to think about how we solve > is

[Qemu-devel] Re: [PATCHv2] Support for booting from virtio disks

2010-05-10 Thread Anthony Liguori
On 05/10/2010 03:11 AM, Gleb Natapov wrote: This patch adds native support for booting from virtio disks to Seabios. Signed-off-by: Gleb Natapov A related problem that I think we need to think about how we solve is indicating to Seabios which device we want to boot from With your patch,

[Qemu-devel] Re: [PATCHv2] Support for booting from virtio disks

2010-05-10 Thread Stefan Hajnoczi
> diff --git a/src/virtio-blk.c b/src/virtio-blk.c > new file mode 100644 > index 000..a41c336 > --- /dev/null > +++ b/src/virtio-blk.c > @@ -0,0 +1,155 @@ > +// Virtio blovl boot support. Just noticed the "blovl" typo. > +        char *desc = malloc_tmphigh(MAXDESCSIZE); > +        struct vi

[Qemu-devel] Re: [PATCHv2] Support for booting from virtio disks

2010-05-10 Thread Gleb Natapov
On Mon, May 10, 2010 at 09:25:20AM +0100, Stefan Hajnoczi wrote: > > diff --git a/src/virtio-blk.c b/src/virtio-blk.c > > new file mode 100644 > > index 000..a41c336 > > --- /dev/null > > +++ b/src/virtio-blk.c > > @@ -0,0 +1,155 @@ > > +// Virtio blovl boot support. > > Just noticed the "blov