
Daniel P. Berrange wrote:
Unfortunately I think we'll need to get an implementation done that works with SEXPR. Even if everything progresses smoothly with the new XML-RPC protocol for XenD, realistically it is going to be 2-3 months into the future before its anywhere near ready for use by libvirt, and even then there'll be a non-trivial existing userbase still on the SEXPR based XenD for quite a while after that.
Here is a first cut of the patch for review. I have minimally tested the "get" side of the patch, e.g. virsh dumpxml <some_hvm_domain>. Have not tried the "put" side, e.g. virsh create. I hope to test/fix the create side tomorrow as well as test the get side with more interesting configurations. I haven't quite decided on how to handle the cdrom yet. I'm hardly and expert on libxml so perhaps someone can suggest how to elegantly extract the cdrom info from the incoming xml :-). See the TODO related to cdrom in xml.c. Regards, Jim