[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 2/3] Always use nonblocking mode for qemu_chr_op

From: Gerd Hoffmann
Subject: Re: [Qemu-devel] [PATCH 2/3] Always use nonblocking mode for qemu_chr_open_fd.
Date: Wed, 23 Jul 2008 13:48:14 +0200
User-agent: Thunderbird (X11/20080501)

Daniel P. Berrange wrote:

> In the case of the PTY backend, the only time I'd expect data to be dropped
> is if there was no active slave open. If an application has the PTY open
> and is interacting, then I'd want to get all data.  

Yep, that would be most useful (and also matches what is done for tcp
for example).  Now the interesting question is:  How can qemu figure (in
a portable way) whenever there is some process listening on the slave side?

> My use case is that all VMs started will have a serial port configured
> with '-serial pty'. The guest OS should not be blocked when writing to
> the serial port if no one has the PTY open on the host, but if someone
> attaches to it with 'virsh console' then I want to be guartenteed to 
> get all data.

/me too.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]