pvh: Write start_info structure to guest memory

Fill the hvm_start_info and related memory map structures as
specified in the PVH boot protocol. Write the data structures
to guest memory at the GPA that will be stored in %rbx when
the guest starts.

Signed-off-by: Alejandro Jimenez <alejandro.j.jimenez@oracle.com>
This commit is contained in:
Alejandro Jimenez
2020-02-12 23:14:12 -05:00
committed by Sebastien Boeuf
parent 840a9a97ff
commit a22bc3559f
2 changed files with 182 additions and 7 deletions

View File

@@ -446,6 +446,7 @@ impl Vm {
boot_vcpus,
Some(hdr),
rsdp_addr,
BootProtocol::LinuxBoot,
)
.map_err(Error::ConfigureSystem)?;
@@ -480,6 +481,7 @@ impl Vm {
boot_vcpus,
None,
rsdp_addr,
boot_prot,
)
.map_err(Error::ConfigureSystem)?;