[libvirt] [PREPOST 02/17] src/xenxs:Introduce function