From 6d585d5919240bac8fde2c2ef3c67188c1d60141 Mon Sep 17 00:00:00 2001 From: Jianyong Wu Date: Thu, 29 Sep 2022 20:54:04 +0800 Subject: [PATCH] dragonball: fix no "as_str" error on Arm Cmdline struct update in the latest linux-loader lib and its as_str method is changed to as_cstring, thus we need fix it according whereas the old as_str method is used. Fixes: #5287 Signed-off-by: Jianyong Wu --- src/dragonball/src/vm/aarch64.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dragonball/src/vm/aarch64.rs b/src/dragonball/src/vm/aarch64.rs index 7e249f5016..8206920ce7 100644 --- a/src/dragonball/src/vm/aarch64.rs +++ b/src/dragonball/src/vm/aarch64.rs @@ -136,7 +136,7 @@ impl Vm { configure_system( guest_memory, - cmdline.as_str(), + cmdline.as_cstring().unwrap().to_str().unwrap(), vcpu_mpidr, self.device_manager.get_mmio_device_info(), self.get_irqchip(),