libxl: round memory values to next 1MiB increment
libxl: round memory values to next 1MiB increment

libxl requires the memory sizes to be rounded to 1MiB increments.
Attempting to start a domain that violates this requirement will
fail with the marginally helpful error

2018-02-22 01:55:32.921+0000: xc: panic: xc_dom_boot.c:141: xc_dom_boot_mem_init: can't allocate low memory for domain: Out of memory
2018-02-22 01:55:32.921+0000: libxl: libxl_dom.c:671:libxl__build_dom: xc_dom_boot_mem_init failed: No such file or directory

Round the maximum and current memory values to the next 1MiB
increment when generating the libxl_domain_config object.

Signed-off-by: Jim Fehlig <39929b5b86d72d51fceac59b52303e3fe8a3083e@suse.com>

zippy2/libvirt,libvirt/libvirt,jardasgit/libvirt,fabianfreyer/libvirt,jardasgit/libvirt,andreabolognani/libvirt,crobinso/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,olafhering/libvirt,eskultety/libvirt,andreabolognani/libvirt,libvirt/libvirt,olafhering/libvirt,zippy2/libvirt,jardasgit/libvirt,eskultety/libvirt,jardasgit/libvirt,eskultety/libvirt,jfehlig/libvirt,fabianfreyer/libvirt,jardasgit/libvirt,andreabolognani/libvirt,nertpinx/libvirt,zippy2/libvirt,andreabolognani/libvirt,olafhering/libvirt,nertpinx/libvirt,jfehlig/libvirt,crobinso/libvirt,libvirt/libvirt,eskultety/libvirt,crobinso/libvirt,olafhering/libvirt,andreabolognani/libvirt,eskultety/libvirt,libvirt/libvirt,fabianfreyer/libvirt,jfehlig/libvirt,jfehlig/libvirt,nertpinx/libvirt,crobinso/libvirt,zippy2/libvirt