Files
cloud-hypervisor/docs
Keith Adler 926dd1e141 vmm, devices: Add fw_cfg string item support
QEMU supports passing inline string values to the guest via fw_cfg
(-fw_cfg name=...,string=...). Cloud Hypervisor previously only
supported file-backed fw_cfg items. This adds the 'string' option
so users can pass values like OVMF's X-PciMmio64Mb without creating
a temporary file on the host.

Each fw_cfg item now accepts exactly one of 'file' or 'string'.
The FwCfgInvalidItem invariant is validated in PayloadConfig::validate()
(via FwCfgConfig::validate()), covering both CLI and JSON API paths.
The populate_fw_cfg match arm uses unreachable!() since validation
guarantees the invariant holds at that point.

CLI syntax:
  --fw-cfg-config items=[name=opt/ovmf/X-PciMmio64Mb,string=262144]

Signed-off-by: Keith Adler <kadler@cloudflare.com>
2026-04-20 09:39:56 +00:00
..
2026-02-24 07:53:53 +00:00
2024-10-23 18:38:50 +01:00
2024-06-08 16:31:30 +00:00
2026-01-15 18:55:36 +00:00
2026-01-14 09:20:34 +00:00
2025-02-08 16:37:03 +08:00
2024-06-08 16:31:30 +00:00
2022-11-27 18:55:07 +00:00
2024-06-08 16:31:30 +00:00
2026-01-22 01:45:43 +00:00