We can move this function into libvirt_xml/vm_xml.py. It seems generic and will be used by other tests.