vma: Use vma_area_is helper where appropriate (p2)

Lost from c8d5f1a2

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
dump: Merge mm and vmas dumping functions

The plan is to merge vma images into mm ones (see further
patching), so prepare the dumping code for that.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
vma: Turn embeded VmaEntry on vma_area into pointer

On restore we will read all VmaEntries in one big MmEntry object,
so to avoif copying them all into vma_areas, make them be pointable.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
vma: Don't copy VmaEntry on vma_area

After previous patch is't now possible.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
mm: Read mmentry early

We'll merge mm and vma images, so mm should be read in the
same place where vmas are.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
mm: Move VmaEntries from separate image into Mm one

When writing VMAs we perform too many small writes into vma-.img files.
This can be easily fixed by moving the vma-s into mm-s, all the more
so they cannot be splitted from each other.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
pb: Don't crash when showing empty repeated field

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
vma: Backward compatible VMA restore

If we've found zero VMAs in MmEntry try to look for
VMAs in vma-.img image file.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>