From 66aaaa5bd75d35418203a6030a07cca01e64a2ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kr=C3=B6ning?= Date: Fri, 15 Nov 2024 13:32:06 +0100 Subject: [PATCH] feat(xtask): set vcpu_count for Firecracker MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Kröning --- xtask/src/ci/firecracker.rs | 3 ++- xtask/src/ci/firecracker_vm_config.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/xtask/src/ci/firecracker.rs b/xtask/src/ci/firecracker.rs index fdcdd7584e..545ebc0296 100644 --- a/xtask/src/ci/firecracker.rs +++ b/xtask/src/ci/firecracker.rs @@ -27,7 +27,8 @@ impl Firecracker { let config = format!( include_str!("firecracker_vm_config.json"), kernel_image_path = "hermit-loader-x86_64-fc", - initrd_path = self.build.image().display() + initrd_path = self.build.image().display(), + vcpu_count = self.build.smp, ); eprintln!("firecracker config"); eprintln!("{config}"); diff --git a/xtask/src/ci/firecracker_vm_config.json b/xtask/src/ci/firecracker_vm_config.json index 14c7b8e29d..79d15055cd 100644 --- a/xtask/src/ci/firecracker_vm_config.json +++ b/xtask/src/ci/firecracker_vm_config.json @@ -6,7 +6,7 @@ }}, "drives": [], "machine-config": {{ - "vcpu_count": 1, + "vcpu_count": {vcpu_count}, "mem_size_mib": 256, "smt": false }}