From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:60724) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHsqu-000794-3j for qemu-devel@nongnu.org; Tue, 19 Mar 2013 05:29:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UHsqs-0000FA-BR for qemu-devel@nongnu.org; Tue, 19 Mar 2013 05:29:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52005) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHsqs-0000F2-0i for qemu-devel@nongnu.org; Tue, 19 Mar 2013 05:29:02 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r2J9T1eB019249 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 19 Mar 2013 05:29:01 -0400 Message-ID: <51482FDA.9020105@redhat.com> Date: Tue, 19 Mar 2013 10:28:58 +0100 From: Gerd Hoffmann MIME-Version: 1.0 References: <395888904.10562585.1363684543684.JavaMail.root@redhat.com> In-Reply-To: <395888904.10562585.1363684543684.JavaMail.root@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 7/8] spice-qemu-char: Register interface on post load List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alon Levy Cc: Amit Shah , Hans de Goede , =?UTF-8?B?TWFyYy1BbmRyw6kgTHVyZWF1?= , qemu-devel@nongnu.org On 03/19/13 10:15, Alon Levy wrote: >>> + vmstate_register(NULL, -1, &spice_chr_vmstate, s); >>> + >> >> That is a showstopper. If there are two of these there is no >> reliable >> way to figure which is which. > > But they will both get a different state pointer s. I mean in the migration data stream. > It is being migrated in virtio-serial-bus (port->guest_connected) > but we need to pass that on to spice-server, which there is no hook > for in the chardev layer, I could add one. I would need to query the > backend, in this case virtio-serial-bus, something like this: That is better IMHO. cheers, Gerd