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