Hi Anthony,

I found a bug in the last code: send_command() failed to copy back the
result into extboot_cmd structure. This patch fixes it.

I succesfully tested this version with guest Win2K (fully updated,
scsi boot) and Linux 2.6.25-rc8 (virtio).

Let me know if you can boot Windows with this version.

Thanks,
Quynh
---
This code is an attempt to rewrite the current extboot option rom in
C. The new code now minimize the assembly code, so that the assembly
code is very small and simple: boot.S's only job is to interface with
C code, which does all the dirty job. "signrom" is modified to adapt
with the new result binary image.

The result option rom has the same size as the original one: 1.5KB,
while the actual code size is around the same: 1.2KB (gcc can optimize
really well)

To install this option rom, do the following steps as root:

make
make save         <--- backup the original option rom to
/usr/share/qemu/extboot.bin.org
make install       <--- overwrite the new option rom to
/usr/share/qemu/extboot.bin

Attachment: extboot2.tbz2
Description: Binary data

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel

Reply via email to