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

View File

@@ -13,6 +13,11 @@ byteorder = { workspace = true }
event_monitor = { path = "../event_monitor" }
hypervisor = { path = "../hypervisor" }
libc = { workspace = true }
linux-loader = { workspace = true, features = [
"bzimage",
"elf",
"pe",
], optional = true }
log = { workspace = true }
num_enum = "0.7.2"
pci = { path = "../pci" }
@@ -38,6 +43,6 @@ arch = { path = "../arch" }
[features]
default = []
fw_cfg = ["zerocopy"]
fw_cfg = ["linux-loader", "zerocopy"]
kvm = ["arch/kvm"]
pvmemcontrol = []