migrate: Introduce zero RAM checks to skip RAM migration
commit0827b9e97d443781a17a21c64695940675aa1f8a
authorAshijeet Acharya <ashijeetacharya@gmail.com>
Wed, 8 Feb 2017 14:28:45 +0000 (8 19:58 +0530)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Mon, 13 Feb 2017 17:27:13 +0000 (13 17:27 +0000)
treeb3962d8af015e971b66b9c7c0c79cc42182e17e3
parentced1c6166ef901a91578d54ff39f46b3e7ae870f
migrate: Introduce zero RAM checks to skip RAM migration

Migration of a "none" machine with no RAM crashes abruptly as
bitmap_new() fails and thus aborts. Instead place zero RAM checks at
appropriate places to skip migration of RAM in this case and complete
migration successfully for devices only.

Signed-off-by: Ashijeet Acharya <ashijeetacharya@gmail.com>
Message-Id: <1486564125-31366-1-git-send-email-ashijeetacharya@gmail.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
migration/ram.c