Load BIOS via toolstack instead of been embedded in hvmloader.
Hi all,
Many changes in V3:
no more cmdline, but use each modules' cmdline to provide a name for it.
in libxc:
- use xc_dom_alloc_segment() to load modules. see patch #1.
- avoid duplication of code between PVHv2 and hvmloader for the
initialisation of hvm_start_info.
in xl/libxl:
- only one new option, bios_firmware. acpi_firmware is reused, see
patch #6.
in hvmloader:
- handle rombios as separate case.
more detail in each patches.
I've look at loading the BIOS and the ACPI tables via the toolstack instead
of having them embedded in the hvmloader binary. After this patch series,
hvmloader compilation would be indenpendant from SeaBIOS and OVMF
compilation.
Here is a general view of the few step to load the BIOS:
- libxl load the BIOS blob into it's memory and add it to struct
xc_hvm_build_args.bios_module
- libxc load the blob into the guest memory and fill the struct
hvm_start_info and store a name for each module into the module cmdline.
- hvmloader read the addresses from the hvm_start_info, find out which
module to load and copy the blob to the right place.
A git tree can be found here:
git://xenbits.xen.org/people/aperard/xen-unstable.git
tag: hvmloader-with-separated-bios-v3
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: Jan Beulich <jbeulich@suse.com>