[libvirt] [PATCH 3/4] qemu: consolidate device modification functions