Gerd Hoffmann wrote:
Hi,
How about this one? extboot rom and interface are unmodified.
The windup in qemu is very different though. It is now implemented as
isa bus device (which is what extboot actually is). It is properly
integrated into qdev. It is much less invasive than the previous
version. The patch just drops a hw/extboot.c file into the tree and
adds it to Makefile.target. No code changes anywhere else in qemu.
The magic words to activate extboot are '-device extboot,drive=<name>'.
If we were going to introduce a light weight block protocol like this,
I'd rather it be implemented in SeaBIOS as a block driver. Then we
reuse all of the int13 code, it gets registered as a BCV device allowing
selection in the boot menu, and requires no special options on the
command line.
It would require a mechanism to do enumeration and identification though.
Regards,
Anthony Liguori
cheers,
Gerd