All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: Amit Shah <amit.shah@redhat.com>,
	Anthony Liguori <aliguori@redhat.com>,
	Alon Levy <alevy@redhat.com>, qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] RFC adding ioctl's to virtserial/virtconsole
Date: Tue, 03 Aug 2010 15:45:22 -0500	[thread overview]
Message-ID: <4C587FE2.3010405@codemonkey.ws> (raw)
In-Reply-To: <4C587EE9.3070306@redhat.com>

On 08/03/2010 03:41 PM, Gerd Hoffmann wrote:
> On 08/03/10 19:53, Anthony Liguori wrote:
>> On 08/03/2010 12:02 PM, Gerd Hoffmann wrote:
>>> On 08/03/10 18:45, Anthony Liguori wrote:
>>>> On 08/03/2010 11:42 AM, Gerd Hoffmann wrote:
>>>>> spice-vmc code registers/unregisters the interface within the spice
>>>>> server. So the interface is only activated in case the guest uses it.
>>>>> Spice client sees the interface being active or not and can act
>>>>> accordingly.
>>>>
>>>> So we have to migrate connected state?
>>>
>>> virtio-serial handles that already.
>>
>> And we have to propagate this upon load to the char device backend.
>
> Happens too, by calling port->guest_open() if needed in loadvm_post().
>
>> Do we assume that the chardev is in the CONNECTED state initially? If we
>> do a loadvm at run time while we're in the CONNECTED state, do we
>> generate a DISCONNECTED followed by CONNECTED state transition? If we
>> loadvm to a state where we were in the DISCONNECTED state, does that
>> generate DISCONNECTED followed by CONNECTED followed by DISCONNECTED or
>> just DISCONNECTED?
>>
>> This is exactly the type of problem that we've had in the past by not
>> having an API that clearly forces management of life cycle.
>
> That indeed must be cleanly defined and for best results also enforced 
> in some way, say using asserts().  That needs some bigger planning and 
> not some ad-hoc "Oh lets us quickly add this" patching though.  When 
> re-designing chardevs I wanna do it once and wanna do it right.
>
> Are there BoF slots @ kvm forum?

Yes.

>   I can try to put together something (current pain points + feature 
> wishlist + better chardev data structures + better chardev api) to 
> kick a discussion either in Boston or at qemu-devel.  Will take some 
> time though.

That would be really helpful!

Regards,

Anthony Liguori

> cheers,
>   Gerd
>

  reply	other threads:[~2010-08-03 20:45 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <183307416.602861280770002326.JavaMail.root@zmail06.collab.prod.int.phx2.redhat.com>
2010-08-02 17:28 ` [Qemu-devel] RFC adding ioctl's to virtserial/virtconsole Alon Levy
2010-08-02 17:42   ` Anthony Liguori
2010-08-03  8:46     ` Gerd Hoffmann
2010-08-03 13:12       ` Anthony Liguori
2010-08-03 15:28         ` Gerd Hoffmann
2010-08-03 15:46           ` Anthony Liguori
2010-08-03 16:42             ` Gerd Hoffmann
2010-08-03 16:45               ` Anthony Liguori
2010-08-03 17:02                 ` Gerd Hoffmann
2010-08-03 17:53                   ` Anthony Liguori
2010-08-03 20:41                     ` Gerd Hoffmann
2010-08-03 20:45                       ` Anthony Liguori [this message]
     [not found] <391834624.690531280844685997.JavaMail.root@zmail06.collab.prod.int.phx2.redhat.com>
2010-08-03 14:13 ` Alon Levy
     [not found] <2092558519.524651280737489312.JavaMail.root@zmail06.collab.prod.int.phx2.redhat.com>
2010-08-02  8:33 ` Alon Levy
2010-08-02  9:03   ` Amit Shah
2010-08-02 15:04   ` Anthony Liguori

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C587FE2.3010405@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=alevy@redhat.com \
    --cc=aliguori@redhat.com \
    --cc=amit.shah@redhat.com \
    --cc=kraxel@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.