Only try and read a VMDescription if it should be there
commit1aca9a5f7d5a1ef9ee0233eac0fccc77ea6f0626
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Tue, 23 Jun 2015 16:34:35 +0000 (23 17:34 +0100)
committerJuan Quintela <quintela@redhat.com>
Tue, 7 Jul 2015 12:54:46 +0000 (7 14:54 +0200)
treef2a0eccc82260c0601d787568c38ff50a7c304e2
parent728470bea15b11ba7b3e3db54f0d9939908e0e65
Only try and read a VMDescription if it should be there

The VMDescription section maybe after the EOF mark, the current code
does a 'qemu_get_byte' and either gets the header byte identifying the
description or an error (which it ignores).  Doing the 'get' upsets
RDMA which hangs on old machine types without the VMDescription.

Just avoid reading the VMDescription if we wouldn't send it.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/savevm.c