virt-libvirt: Standardize VMXML device package module handling

Signed-off-by: Chris Evich <cevich@redhat.com>
virt-libvirt: Base classes for VMXML devices

Signed-off-by: Chris Evich <cevich@redhat.com>
virt-libvirt: Add VMXML serial device base class

Signed-off-by: Chris Evich <cevich@redhat.com>
virt-libvirt: Add xml validation method and property

Signed-off-by: Chris Evich <cevich@redhat.com>
virt-libvirt: Add device manipulation to vm_xml module

Signed-off-by: Chris Evich <cevich@redhat.com>
Fix: slots should add a special list, not a string.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
Fix: find_module should be given a list include pathes.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
Add Serial class for libvirt_xml/devices/serial module.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
Change the implement of get_devices in vm_xml module.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virt-libvirt: Change libvirt_xml API (virsh parameter order)

Signed-off-by: Chris Evich <cevich@redhat.com>
virt: Improve vm_xml device support + unittests

* Add ability to compare LibvirtXMLBase derived instances
* Fixed indentation problems in libvirt_xml.devices.librarian
* Added ability to create devices from ElementTree elements
* Added simplistic input element XML validation
* Simplified Serial device class hierarchy
* Added new unittests for serial devices
* Added new unittests for vm_xml device enumeration / comparison
* Added stub modules for all devices classes
* Added address pseudo-device support
* Added unittests to verify no class steps on address-class properties
* Added unittest tearDown() to cleanup from any library module
  inter-test changes
* Added basic address pseudo-device unittest
* Added simplified address pseudo-device to take
  simple dictionary of attributes

Signed-off-by: Chris Evich <cevich@redhat.com>
virt-libvirt: small @param comment fix

Improved error reporting for missing accessor generator parameters

Signed-off-by: Chris Evich <cevich@redhat.com>
virt-libvirt: Add remaining libvirt_xml serial device properties

Signed-off-by: Chris Evich <cevich@redhat.com>