diff --git a/src/qemu.rs b/src/qemu.rs index ceea26b..ecbac90 100644 --- a/src/qemu.rs +++ b/src/qemu.rs @@ -428,7 +428,7 @@ fn kernel_args( fn virtio_serial_args(host_sock: &Path) -> Vec { let mut args: Vec = Vec::new(); - args.push("--device".into()); + args.push("-device".into()); args.push("virtio-serial".into()); args.push("-chardev".into()); @@ -438,7 +438,7 @@ fn virtio_serial_args(host_sock: &Path) -> Vec { arg.push(",server=on,wait=off,id=cmdout"); args.push(arg); - args.push("--device".into()); + args.push("-device".into()); arg = OsString::new(); arg.push("virtserialport,chardev=cmdout,name="); arg.push(COMMAND_OUTPUT_PORT_NAME);