Pass an FDT to the unit test VMs

Instead of passing the assigned memory size, optionally pass the
FDT to the secondary VMs. The VMs can extract the memory size, as
well as other potentially useful information from the FDT.

This is done to facilitate using the same unit test framework
with kvm-unit-tests, which expects an FDT, as does the Linux
kernel.

Change-Id: I436d86b3f4d1540c1995e01e48289f39e2c23490
Signed-off-by: Fuad Tabba <tabba@google.com>
diff --git a/src/manifest.c b/src/manifest.c
index 5b586f1..003a1b9 100644
--- a/src/manifest.c
+++ b/src/manifest.c
@@ -265,6 +265,8 @@
 	if (vm_id != HF_PRIMARY_VM_ID) {
 		TRY(read_uint64(node, "mem_size", &vm->secondary.mem_size));
 		TRY(read_uint16(node, "vcpu_count", &vm->secondary.vcpu_count));
+		TRY(read_optional_string(node, "fdt_filename",
+					 &vm->secondary.fdt_filename));
 	}
 
 	return MANIFEST_SUCCESS;