Set primary kernel in manifest and allow preloading.
The primary kernel was previously hard-coded as `vmlinuz` but the
manifest allows more flexibility. If the kernel file for any VM is not
specified, it is assumed that the image has been preloaded into memory.
The loading of the primary and secondaries are becoming increasingly
similar and will continue to do so.
Change-Id: I34f134d8a4d32e8ac92e142d3636902d52ad86ec
diff --git a/test/linux/BUILD.gn b/test/linux/BUILD.gn
index fcc5907..527a4c3 100644
--- a/test/linux/BUILD.gn
+++ b/test/linux/BUILD.gn
@@ -58,6 +58,7 @@
testonly = true
manifest = "manifest.dts"
+ primary_name = "vmlinuz"
primary_vm = "//third_party:linux__prebuilt"
primary_initrd = ":linux_test_initrd"
secondary_vms = [ [
diff --git a/test/linux/manifest.dts b/test/linux/manifest.dts
index 1372663..71c891e 100644
--- a/test/linux/manifest.dts
+++ b/test/linux/manifest.dts
@@ -21,7 +21,8 @@
hypervisor {
compatible = "hafnium,hafnium";
vm1 {
- debug_name = "primary";
+ debug_name = "linux_test";
+ kernel_filename = "vmlinuz";
};
vm2 {