Currently I am trying to give a physical rs232 port to a Qemu VM.
Currently I use
command argument to do that. However, being an usb-based serial port, sometimes it should be able to handle hot add/removes without a guest restart, too.
Furthermore, any app on guest OS wants to know a serial port number to talk on. In the case of Windows guests, these would be com1-com4, while Linuxes would use /dev/ttyS0-3.
Qemu docs don't reveal too much about it.
Sharing the usb host with
device_add usb-host,... works, but it is not a viable option. Thus:
- Sharing should happen on the rs232 level,
- it should be hotadd-capable,
- and somehow I should influence (or, at least see), which serial port will it be on the guest side.
Can I somehow do this with qmp? (Qmp is that qemu monitor, I handle it with telnetting to a tcp port on