pvmfw: Parse incoming <reg> and <iommus>
Bug: 277993056
Test: atest libpvmfw.device_assignment.test, launch protected VM
Change-Id: I20c09cc7518796ec8adbc5d45f0f51a6d75a0062
diff --git a/pvmfw/Android.bp b/pvmfw/Android.bp
index d267e2e..aa9942c 100644
--- a/pvmfw/Android.bp
+++ b/pvmfw/Android.bp
@@ -73,6 +73,7 @@
srcs: ["src/device_assignment.rs"],
defaults: ["libpvmfw.test.defaults"],
rustlibs: [
+ "libhyp",
"liblibfdt",
"liblog_rust",
"libpvmfw_fdt_template",
@@ -84,6 +85,7 @@
":test_pvmfw_devices_with_multiple_devices_iommus",
":test_pvmfw_devices_with_iommu_sharing",
":test_pvmfw_devices_with_iommu_id_conflict",
+ ":test_pvmfw_devices_without_device",
":test_pvmfw_devices_without_iommus",
],
// To use libpvmfw_fdt_template for testing
@@ -142,6 +144,13 @@
}
genrule {
+ name: "test_pvmfw_devices_without_device",
+ defaults: ["test_device_assignment_dts_to_dtb"],
+ srcs: ["testdata/test_pvmfw_devices_without_device.dts"],
+ out: ["test_pvmfw_devices_without_device.dtb"],
+}
+
+genrule {
name: "test_pvmfw_devices_with_multiple_devices_iommus",
defaults: ["test_device_assignment_dts_to_dtb"],
srcs: ["testdata/test_pvmfw_devices_with_multiple_devices_iommus.dts"],