On Fri, Jan 11, 2019 at 02:18:35PM +0100, Stefano Garzarella wrote: > The new pvh.bin option rom can be used with SeaBIOS to boot > uncompressed kernel using the x86/HVM direct boot ABI. > > pvh.S contains the entry point of the option rom. It runs > in real mode, loads the e820 table querying the BIOS, and > then it switches to 32bit protect mode and jump to the > pvh_load_kernel() written in pvh_main.c. > pvh_load_kernel() loads the cmdline and kernel entry_point > using fw_cfg, then it looks for RSDP, fills the > hvm_start_info required by x86/HVM ABI, and finally jumps > to the kernel entry_point. > > Signed-off-by: Stefano Garzarella <sgarz...@redhat.com> > --- > pc-bios/optionrom/Makefile | 5 +- > pc-bios/optionrom/pvh.S | 200 +++++++++++++++++++++++++++++++++++ > pc-bios/optionrom/pvh_main.c | 117 ++++++++++++++++++++ > 3 files changed, 321 insertions(+), 1 deletion(-) > create mode 100644 pc-bios/optionrom/pvh.S > create mode 100644 pc-bios/optionrom/pvh_main.c
Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>
signature.asc
Description: PGP signature