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 <jianyong.wu@arm.com>
This commit is contained in:
Jianyong Wu 2022-09-29 20:54:04 +08:00
parent 949ffcc457
commit 6d585d5919

View File

@ -136,7 +136,7 @@ impl Vm {
configure_system( configure_system(
guest_memory, guest_memory,
cmdline.as_str(), cmdline.as_cstring().unwrap().to_str().unwrap(),
vcpu_mpidr, vcpu_mpidr,
self.device_manager.get_mmio_device_info(), self.device_manager.get_mmio_device_info(),
self.get_irqchip(), self.get_irqchip(),