[libvirt] [PATCH 2/7] qemu: Abstract code for memory controller setting into a helper