devices: Implement DMA for fw_cfg device

We pass a reference to the guest memory when we create the device
in DeviceManager. This allows us to access the guest memory for DMA.

Signed-off-by: Alex Orozco <alexorozco@google.com>
This commit is contained in:
Alex Orozco
2025-04-18 16:37:11 +00:00
committed by Bo Chen
parent 1f51e4525b
commit edee53ac1a
4 changed files with 257 additions and 16 deletions

1
Cargo.lock generated
View File

@@ -526,6 +526,7 @@ dependencies = [
"acpi_tables",
"anyhow",
"arch",
"bitfield-struct",
"bitflags 2.9.0",
"byteorder",
"event_monitor",