[Libvirt-cim] [PATCH] (#2) Make xmlgen.c use libxml2 instead of hacking it out manually

Kaitlin Rupert kaitlin at linux.vnet.ibm.com
Wed Dec 3 21:06:27 UTC 2008


> -static char *_lxc_os_xml(struct domain *domain)
> +char *device_to_xml(struct virt_device *dev)
>  {

> +
> +        switch (type) {
> +        case CIM_RES_TYPE_DISK:
> +                func = disk_xml;
> +                dominfo->dev_disk_ct = 1;
> +                dominfo->dev_disk = dev;
> +                break;
> +        case CIM_RES_TYPE_PROC:
> +                func = vcpu_xml;
> +                dominfo->dev_vcpu_ct = 1;
> +                dominfo->dev_vcpu = dev;
> +                break;
> +        case CIM_RES_TYPE_NET:
> +                func = net_xml;
> +                dominfo->dev_net_ct = 1;
> +                dominfo->dev_vcpu = dev;

Oops, I missed this last time.  This should be: dominfo->dev_net = dev;

-- 
Kaitlin Rupert
IBM Linux Technology Center
kaitlin at linux.vnet.ibm.com




More information about the Libvirt-cim mailing list