Make DTBO for VM containing vendor pubkey when vendor image exists
Bug: 285855436
Test: adb shell /apex/com.android.virt/bin/vm run-microdroid --vendor /data/local/tmp/test_microdroid_vendor_image.img
Test: atest virtualizationmanager_device_test
Change-Id: Ib1b8301d572d2546350fb1e5e9b11060b430b756
diff --git a/virtualizationmanager/src/crosvm.rs b/virtualizationmanager/src/crosvm.rs
index bb6066f..b842574 100644
--- a/virtualizationmanager/src/crosvm.rs
+++ b/virtualizationmanager/src/crosvm.rs
@@ -116,6 +116,7 @@
pub detect_hangup: bool,
pub gdb_port: Option<NonZeroU16>,
pub vfio_devices: Vec<VfioDevice>,
+ pub dtbo_vendor: Option<File>,
}
/// A disk image to pass to crosvm for a VM.
@@ -886,6 +887,8 @@
.arg("--socket")
.arg(add_preserved_fd(&mut preserved_fds, &control_server_socket.as_raw_descriptor()));
+ // TODO(b/285855436): Pass dtbo_vendor after --device-tree-overlay crosvm option is supported.
+
append_platform_devices(&mut command, &config)?;
debug!("Preserving FDs {:?}", preserved_fds);