WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: [Qemu-devel] [PATCH 2/2] Option ROM for booting from SCS

To: Anthony Liguori <aliguori@xxxxxxxxxx>
Subject: [Xen-devel] Re: [Qemu-devel] [PATCH 2/2] Option ROM for booting from SCSI/PV disks
From: Avi Kivity <avi@xxxxxxxxxxxx>
Date: Thu, 20 Dec 2007 13:45:46 +0200
Cc: kvm-devel <kvm-devel@xxxxxxxxxxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx, qemu-devel@xxxxxxxxxx
Delivery-date: Thu, 20 Dec 2007 03:46:30 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <4756D0E0.2040500@xxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <4756D0E0.2040500@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.9 (X11/20071115)
Anthony Liguori wrote:
> Hi,
>
> The attached patch is an option ROM that allows x86 guests to boot
> from any block device supported by QEMU (and the guest kernel).  It
> works by hijacking the BIOS int13 function and then uses a very simply
> protocol to communicate all block requests to QEMU.
>
> This patch also adds a "boot=on|off" parameter to the -drive option. 
> When this option is specified, the extboot option ROM is automatically
> loaded and this device will be exposes by int13 as '0x80'.  What
> '-boot c' really means is boot from the first disk driver or BIOS
> drive '0x80' so the -boot option is complimentary to this new boot flag.
>
> I have successfully booted Linux, Win2k, and WinXP from SCSI with this
> patch.  Windows takes a bit of prep work to be able to boot from
> SCSI.   For win2k, you just need to make sure you have the right
> driver installed.  WinXP, however, seems to require that it be
> installed on SCSI to boot from SCSI.  If anyone knows how to modify
> WinXP after the fact, please let me know.
>
> I can also use this new flag to boot a Linux guest from my previously
> posted virtio blk driver.
>
> This patch is against my previous virtio patches but does not strictly
> depend on them.  When applying this patch, you'll have to build
> extboot in extboot/ and then copy extboot/extboot.bin to
> pc-bios/extboot.bin.

Now that we have scsi support (with -drive) I would like to apply this
to the kvm tree (I already applied the CHS refactoring patch).  But as
qemu seems to shy away from sources which can only compile on x86, can
you rearrange it to build outside the qemu/ dir (i.e. a new toplevel
extboot/)?

The qemu changes should be in a separate patch.

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


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>