All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Enable Option ROM support in Guest BIOS
@ 2008-11-24  5:16 Shan, Haitao
  2008-11-25  0:35 ` Akio Takebe
  2008-11-25 17:15 ` John Levon
  0 siblings, 2 replies; 11+ messages in thread
From: Shan, Haitao @ 2008-11-24  5:16 UTC (permalink / raw)
  To: 'Keir Fraser'; +Cc: 'xen-devel@lists.xensource.com'

Hi, Keir,

These three patches enables Option ROM support in guest BIOS. Please see detailed description below.

Descriptions:
etherboot_reloc.patch: Relocating the etherboot ROM to be near the end of VGA BIOS. Current Xen hard coded VGA ROM at 0xC0000 and etherboot ROM at 0xD0000. This makes the space in [0xC0000 - 0xDFFFF] to be fragments, which makes it hard to find enough space to hold another Option ROM.

rom_copy.patch: In hvmloader, scan the PCI hierarchy and load Option ROM at proper place. If no space is left, a warning is given out.

rom_exec.patch: Append the BDF of the device at the end of the Option ROM location. Guest BIOS will fetch this info and pass it to Option ROM initialization routine.

I have tested the patch using a PCI SCSI card. I can successfully run the Option ROM to configure the SCSI disk.

Note: There is no support for booting from SCSI disk now. Since guest BIOS lacks support for that. Please see the comments below.
//--------------------------------------------------------------------------
// BIOS Boot Specification 1.0.1 compatibility
//
// Very basic support for the BIOS Boot Specification, which allows expansion
// ROMs to register themselves as boot devices, instead of just stealing the
// INT 19h boot vector.
//
// This is a hack: to do it properly requires a proper PnP BIOS and we aren't
// one; we just lie to the option ROMs to make them behave correctly.
// We also don't support letting option ROMs register as bootable disk
// drives (BCVs), only as bootable devices (BEVs).
//
// http://www.phoenix.com/en/Customer+Services/White+Papers-Specs/pc+industry+specifications.htm
//--------------------------------------------------------------------------

Best Regards
Haitao Shan

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2008-11-27 10:27 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-24  5:16 [PATCH 0/3] Enable Option ROM support in Guest BIOS Shan, Haitao
2008-11-25  0:35 ` Akio Takebe
2008-11-25  1:38   ` Shan, Haitao
2008-11-25  1:47     ` Akio Takebe
2008-11-25  2:09       ` Shan, Haitao
2008-11-25 17:15 ` John Levon
2008-11-26  2:08   ` Shan, Haitao
2008-11-26  5:27     ` Akio Takebe
2008-11-26  5:47   ` Ian Pratt
2008-11-26  5:54     ` James Harper
2008-11-27 10:27     ` Gerd Hoffmann

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.