virtio-serial: save/load: Ensure target has enough ports
commite245795b50e97250ee63f86580457cf35f29f3ca
authorAmit Shah <amit.shah@redhat.com>
Tue, 27 Apr 2010 12:33:55 +0000 (27 18:03 +0530)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 28 Apr 2010 13:58:21 +0000 (28 08:58 -0500)
tree931393d22c080be2455f5ec33c89c886fda1969a
parentaacf4563878cac2afbbdc9818d810d2a3b075c6a
virtio-serial: save/load: Ensure target has enough ports

The target could be started with max_nr_ports for a virtio-serial device
lesser than what was available on the source machine. Fail the migration
in such a case.

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