qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] qemu_chr_open_pipe
@ 2016-04-19 16:12 Tim Sander
  2016-04-28  8:57 ` Tim Sander
  0 siblings, 1 reply; 2+ messages in thread
From: Tim Sander @ 2016-04-19 16:12 UTC (permalink / raw)
  To: qemu-devel; +Cc: Paolo Bonzini

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] qemu_chr_open_pipe
  2016-04-19 16:12 [Qemu-devel] qemu_chr_open_pipe Tim Sander
@ 2016-04-28  8:57 ` Tim Sander
  0 siblings, 0 replies; 2+ messages in thread
From: Tim Sander @ 2016-04-28  8:57 UTC (permalink / raw)
  To: qemu-devel; +Cc: Paolo Bonzini

Hi 

> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-04-28  8:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-19 16:12 [Qemu-devel] qemu_chr_open_pipe Tim Sander
2016-04-28  8:57 ` Tim Sander

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).