virtio-serial: save/load: Ensure nr_ports on src and dest are same.
commit295587f747c7747e37208540a7a7f4d13a6ba4de
authorAmit Shah <amit.shah@redhat.com>
Tue, 27 Apr 2010 12:33:56 +0000 (27 18:03 +0530)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 28 Apr 2010 13:58:21 +0000 (28 08:58 -0500)
tree2cd11bb7db26985181007e686021f7476012e5f8
parente245795b50e97250ee63f86580457cf35f29f3ca
virtio-serial: save/load: Ensure nr_ports on src and dest are same.

The number of ports on the source as well as the destination machines
should match. If they don't, it means some ports that got hotplugged on
the source aren't instantiated on the destination. Or that ports that
were hot-unplugged on the source are created on the destination.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Reported-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/virtio-serial-bus.c