qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] questions about host side of virtio-serial
@ 2014-07-30 18:52 Chris Friesen
  2014-07-31  9:32 ` Richard W.M. Jones
  0 siblings, 1 reply; 4+ messages in thread
From: Chris Friesen @ 2014-07-30 18:52 UTC (permalink / raw)
  To: qemu-devel@nongnu.org, Amit Shah

Hi,

I'm working on a native user of virtio-serial (ie, not going via the 
qemu guest agent).

The information at "http://www.linux-kvm.org/page/Virtio-serial_API" 
does a good job of describing the guest side of things, but has very 
little information about the host side of things.

In particular, assuming that the host side is using a chardev mapped to 
a unix socket:

1) Is there any way for the host app to get information about whether or 
not the guest is reading the messages?  (i.e. logically equivalent to 
getting POLLHUP in the guest when the host app disconnects.)

2) Suppose the host sends a large message.  The guest app reads a 
portion of the message, then crashes.  We respawn the guest app and 
start reading again, but now we're in the middle of a message of 
arbitrary size.  Is there a recommended technique to re-sync the host 
and guest?

3) Same as 2, but the guest sending to the host and the host app 
crashing partway through.

4) If nothing in the guest is reading the data, how much data can the 
host send before it will get an error?  Is there a way to adjust this?

Thanks,
Chris

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

end of thread, other threads:[~2014-07-31 15:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-30 18:52 [Qemu-devel] questions about host side of virtio-serial Chris Friesen
2014-07-31  9:32 ` Richard W.M. Jones
2014-07-31 14:45   ` Chris Friesen
2014-07-31 15:07     ` Paolo Bonzini

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).