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