arch: Support loading initramfs with PVH boot protocol

Fill and write to guest memory the necessary boot module
structure to allow a guest using the PVH boot protocol
to load an initramfs image.

Signed-off-by: Alejandro Jimenez <alejandro.j.jimenez@oracle.com>
This commit is contained in:
Alejandro Jimenez
2020-04-06 15:21:41 -04:00
committed by Sebastien Boeuf
parent b9f193703a
commit 0fc3936448
3 changed files with 34 additions and 2 deletions
+2
View File
@@ -43,6 +43,8 @@ pub enum Error {
StartInfoSetup,
/// Failed to compute initramfs address.
InitramfsAddress,
/// Error writing module entry to guest memory.
ModlistSetup(vm_memory::GuestMemoryError),
}
pub type Result<T> = result::Result<T, Error>;