devices: Add kernel cmdline, kernel, and initramfs to fw_cfg device

The kernel and initramfs are passed to the fw_cfg device as
file references. The cmdline is passed directly.

Signed-off-by: Alex Orozco <alexorozco@google.com>
This commit is contained in:
Alex Orozco
2025-03-24 19:50:46 +00:00
committed by Bo Chen
parent 777b7ee11e
commit 623fadfa9d
6 changed files with 203 additions and 6 deletions

4
Cargo.lock generated
View File

@@ -531,6 +531,7 @@ dependencies = [
"event_monitor",
"hypervisor",
"libc",
"linux-loader",
"log",
"num_enum",
"pci",
@@ -1143,8 +1144,7 @@ dependencies = [
[[package]]
name = "linux-loader"
version = "0.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "870c3814345f050991f99869417779f6062542bcf4ed81db7a1b926ad1306638"
source = "git+https://github.com/rust-vmm/linux-loader?branch=main#d5f39c09d59c8f50d5313b78ce4de511b12d1848"
dependencies = [
"vm-memory",
]