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