qemu_chr_open_pipe
Hi
I would like to try to connect some serial hardware simulation to a standard serial port within qemu. Everything should run within qemu.
The closest i found was qemu_chr_open_pipe but then there seem to be no uses within the qemu code which made me suspicious. It also made it hard finding some usage examples.
So dear qemu-hackers is this the recommended way to connect to serial devices within qemu and are there any examples available?
Best regards
Tim
Hi
Quoted 2 lines
I would like to try to connect some serial hardware simulation to a standard serial port within qemu. Everything should run within qemu.
I found the answer and just to make the people happy using search engines here is the answer:
There are backends which already implement serial hardware. They can be found under backends/. Especially msmouse.c and baum.c realize serial hardware which give a nice example how to connect to a qemu system.
qapi-schema.json needs to be adaped similar to msmouse. And i guess the function qemu_chr_parse_compat in qemu-char.c needs also a new strcmp matching the new device name. qemu-options.hx also seems to need some changes.
Currently unclear is to me is how the argument parsing callback works and how serial_hds should be replaced by properties? Any pointers are welcome.
Best regards
Tim