Hi,
In the case of disk hot-plug, we need a xml like this :
/<disk type="file" device="disk">//
// <driver name="qemu" type="qcow2"/>//
// <source file="/root/vda.qcow2"/>//
// <target dev="vda" bus="virtio"/>//
// <address type='pci' domain='0x0000' bus='1'
slot='20' function='0x0'/>//
//</disk>/
For now, go-xml does not support DomainDisk marshal.
Any good idea ?