Received: from eggs.gnu.org ([140.186.70.92]:38387) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qm2ro-00046J-FN for qemu-devel@nongnu.org; Wed, 27 Jul 2011 08:05:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qm2rn-0003dj-0A for qemu-devel@nongnu.org; Wed, 27 Jul 2011 08:05:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57134) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qm2rm-0003df-Lg for qemu-devel@nongnu.org; Wed, 27 Jul 2011 08:05:34 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p6RC5Xq4032323 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 27 Jul 2011 08:05:34 -0400 Date: Wed, 27 Jul 2011 17:35:28 +0530 From: Amit Shah Message-ID: <20110727120528.GA30750@amit-x200.redhat.com> References: <1311685434-25282-1-git-send-email-alevy@redhat.com> <20110727070756.GZ2375@bow.redhat.com> <20110727102011.GC3053@amit-x200.redhat.com> <20110727110945.GD2799@bow.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110727110945.GD2799@bow.redhat.com> Subject: Re: [Qemu-devel] [PATCH] virtio-serial-bus: replay guest_open on migration List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster , qemu-devel@nongnu.org, hdegoede@redhat.com, yhalperi@redhat.com, quintela@redhat.com 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? 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. Amit