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