From: Alon Levy <alevy@redhat.com>
To: Amit Shah <amit.shah@redhat.com>
Cc: hdegoede@redhat.com, quintela@redhat.com, yhalperi@redhat.com,
Markus Armbruster <armbru@redhat.com>,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] virtio-serial-bus: replay guest_open on migration
Date: Wed, 27 Jul 2011 15:27:16 +0300 [thread overview]
Message-ID: <20110727122716.GF2799@bow.redhat.com> (raw)
In-Reply-To: <20110727120528.GA30750@amit-x200.redhat.com>
On Wed, Jul 27, 2011 at 05:35:28PM +0530, Amit Shah wrote:
> On (Wed) 27 Jul 2011 [14:09:45], Alon Levy wrote:
>
> > > Also, we'll be lying that a guest opened, since a guest was opened
> > > much earlier, before migration. Nothing has changed as far as the
> > > guest is concerned, this is just some host-side tracking that has to
> > > be done post-migrate, which belongs in individual devices / ports.
> >
> > The callback is there on purpose, some qemu side users exist surely. While
> > I understand the lying part about the time, it is worst to lie completely
> > by not mentioning the guest has opened the port.
>
> Guest has not re-opened the port. When the guest opened the port,
> spice did get the callback called. After migration, guest state has
> not changed. Why should you get the callback again?
Again, my point is that from the chardev pov this *is* the first callback.
You say the timing is wrong - correct, but I don't see any part in the api
that talks about timing, i.e. no gurantee to be broken.
Actually searching for current users it appears it is just spicevmc (spice-qemu-char.c).
> If you depend on
> guest connectedness, after migration, just ensure you do whatever is
> necessary. I think there's no need to involve any other code in this.
There is no migration mechanism for char devices. There is no migration
mechanism for the spice server. All data that is passed is done via device migration -
qxl or in this case I suggest virtio-serial.
Do you think chardevices should be migratable? that would also work.
Do you think a separate callback would be better worded? or add a "migrated" boolean?
both are ugly, I agree.
The chardev does receive parameters, it's possible to have the remote vm start with
a spicevmc chardev that has "migrated=1" as part of the command line. That looks much
uglier then this patch to me.
>
> Amit
>
next prev parent reply other threads:[~2011-07-27 12:27 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-26 13:03 [Qemu-devel] [PATCH] virtio-serial-bus: replay guest_open on migration Alon Levy
2011-07-27 5:45 ` Markus Armbruster
2011-07-27 7:07 ` Alon Levy
2011-07-27 9:21 ` Markus Armbruster
2011-07-27 10:20 ` Amit Shah
2011-07-27 11:09 ` Alon Levy
2011-07-27 12:05 ` Amit Shah
2011-07-27 12:27 ` Alon Levy [this message]
2011-07-27 14:02 ` Markus Armbruster
2011-07-27 14:16 ` Anthony Liguori
2011-07-27 14:49 ` Alon Levy
2011-07-27 15:01 ` Anthony Liguori
2011-07-27 15:32 ` Alon Levy
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=20110727122716.GF2799@bow.redhat.com \
--to=alevy@redhat.com \
--cc=amit.shah@redhat.com \
--cc=armbru@redhat.com \
--cc=hdegoede@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.com \
--cc=yhalperi@redhat.com \
/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.