This patch adds extboot to Xen. It should be pretty harmless as the moment because it''s never enabled. extboot allows arbitrary block devices to be used to boot guests including SCSI and PV disks. I''ve tested it with both Windows and Linux guests in QEMU. The version of QEMU in Xen is a bit old so I couldn''t complete the plumbing. The main problem is that Xen provides no way of exposing SCSI disks right now and PV disks aren''t actually accessible within QEMU. I''m hoping someone else can pick that up though as I''m pretty overcommitted at the moment. The extboot infrastructure is there though so it''s just a matter of initializing it with the appropriate BlockDriverState. Another thing to look at is the choice of physical address. extboot occupies 1.5k of memory but option roms have to fall on a 2k boundary. I stole 2k from the space used by etherboot. That should be fine since etherboot and extboot should never be loaded at the same time. Of course, someone with more insight into hvmloader may know of a better place. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On 15/1/08 20:02, "Anthony Liguori" <aliguori@us.ibm.com> wrote:> The version of QEMU in Xen is a bit old so I couldn''t complete the plumbing. > The main problem is that Xen provides no way of exposing SCSI disks > right now > and PV disks aren''t actually accessible within QEMU. I''m hoping someone > else > can pick that up though as I''m pretty overcommitted at the moment. The > extboot infrastructure is there though so it''s just a matter of > initializing it > with the appropriate BlockDriverState.Could you send the original complete version of your qemu changes, which applies to more recent qemu versions, to compare against? Thanks, Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On Tue, Jan 15, 2008 at 02:02:24PM -0600, Anthony Liguori wrote:> This patch adds extboot to Xen. It should be pretty harmless as the moment > because it''s never enabled. extboot allows arbitrary block devices to > be used > to boot guests including SCSI and PV disks. I''ve tested it with both > Windows > and Linux guests in QEMU. > > The version of QEMU in Xen is a bit old so I couldn''t complete the plumbing. > The main problem is that Xen provides no way of exposing SCSI disks > right now > and PV disks aren''t actually accessible within QEMU. I''m hoping someone > else > can pick that up though as I''m pretty overcommitted at the moment. The > extboot infrastructure is there though so it''s just a matter of > initializing it > with the appropriate BlockDriverState.We really badly need the ''-drive'' patch from QEMU 0.9.1 in Xen. We currently hack this horribly by passing disks via xenstore, while all other args to QEMU are regular command line args. If we had the -drive patch another large chunk of Xen specific patches would go away which has to be a good thing. If there aren''t already plans to rebase to QEMU 0.9.1 in Xen 3.3.x series I''d recommend back-porting the ''-drive'' patch to Xen''s QEMU 0.9.0 Dan. -- |=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=| |=- Perl modules: http://search.cpan.org/~danberr/ -=| |=- Projects: http://freshmeat.net/~danielpb/ -=| |=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=| _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser wrote:> On 15/1/08 20:02, "Anthony Liguori" <aliguori@us.ibm.com> wrote: > > >> The version of QEMU in Xen is a bit old so I couldn''t complete the plumbing. >> The main problem is that Xen provides no way of exposing SCSI disks >> right now >> and PV disks aren''t actually accessible within QEMU. I''m hoping someone >> else >> can pick that up though as I''m pretty overcommitted at the moment. The >> extboot infrastructure is there though so it''s just a matter of >> initializing it >> with the appropriate BlockDriverState. >> > > Could you send the original complete version of your qemu changes, which > applies to more recent qemu versions, to compare against? >Attached. Regards, Anthony Liguori> Thanks, > Keir > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel