@yumingfei .Yes, thanks for reminding me . I just found this API int "Libvirt xml devices" pull request.