libvirt-xml: implement interface in devices.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>