[libvirt] [PATCH v2 00/25] Refactor the xm parser

David Kiarie davidkiarie4 at gmail.com
Sat Jul 26 09:39:46 UTC 2014


Kiarie Kahurani (25):
  src/xenxs:Refactor code parsing memory config
  src/xenxs:Refactor code parsing event actions config
  src/xenxs:Refactor code parsing virtual time controls config
  src/xenxs:Refactor code parsing PCI devices config
  src/xenxs:Refactor code parsing CPU features config
  src/xenxs:Refactor code parsing disk config
  src/xenxs:Refactor code parsing Vfb config
  src/xenxs:Refactor code parsing OS related config
  src/xenxs:Refactor code parsing Char device related config
  src/xenxs:Refactor code parsing Vif
  src/xenxs:Refactor code parsing emulated hardware config
  src/xenxs:Refactor code parsing general config
  src/xenxs:Organise functions to avoid duplication
  src/xenxs:Refactor code formating general config
  src/xenxs:Refactor code formating memory config
  src/xenxs:Reafactor code formating virtual time config
  src/xenxs:Refactor code formating event actions config
  src/xenxs:Refactor code formating Vif config
  src/xenxs:Refactor code formating Vfb config
  src/xenxs:Refactor code formating CPU config and features
  src/xenxs:Refactor code formating disk list
  src/xenxs:Refactor code formating emulated devices config
  src/xenxs:Refactor char devices formating code
  src/xenxs:Refactor code formating OS config
  src/xenxs:Export code to be reused

 src/xenxs/xen_xm.c                                 | 2009 ++++++++++++--------
 src/xenxs/xen_xm.h                                 |    6 +-
 tests/xmconfigdata/test-escape-paths.cfg           |   14 +-
 tests/xmconfigdata/test-fullvirt-force-hpet.cfg    |   12 +-
 tests/xmconfigdata/test-fullvirt-force-nohpet.cfg  |   12 +-
 tests/xmconfigdata/test-fullvirt-localtime.cfg     |   12 +-
 tests/xmconfigdata/test-fullvirt-net-ioemu.cfg     |   12 +-
 tests/xmconfigdata/test-fullvirt-net-netfront.cfg  |   12 +-
 tests/xmconfigdata/test-fullvirt-new-cdrom.cfg     |   12 +-
 tests/xmconfigdata/test-fullvirt-old-cdrom.cfg     |   12 +-
 tests/xmconfigdata/test-fullvirt-parallel-tcp.cfg  |   12 +-
 .../test-fullvirt-serial-dev-2-ports.cfg           |   12 +-
 .../test-fullvirt-serial-dev-2nd-port.cfg          |   12 +-
 tests/xmconfigdata/test-fullvirt-serial-file.cfg   |   12 +-
 tests/xmconfigdata/test-fullvirt-serial-null.cfg   |   12 +-
 tests/xmconfigdata/test-fullvirt-serial-pipe.cfg   |   12 +-
 tests/xmconfigdata/test-fullvirt-serial-pty.cfg    |   12 +-
 tests/xmconfigdata/test-fullvirt-serial-stdio.cfg  |   12 +-
 .../test-fullvirt-serial-tcp-telnet.cfg            |   12 +-
 tests/xmconfigdata/test-fullvirt-serial-tcp.cfg    |   12 +-
 tests/xmconfigdata/test-fullvirt-serial-udp.cfg    |   12 +-
 tests/xmconfigdata/test-fullvirt-serial-unix.cfg   |   12 +-
 tests/xmconfigdata/test-fullvirt-sound.cfg         |   14 +-
 tests/xmconfigdata/test-fullvirt-usbmouse.cfg      |   12 +-
 tests/xmconfigdata/test-fullvirt-usbtablet.cfg     |   12 +-
 tests/xmconfigdata/test-fullvirt-utc.cfg           |   12 +-
 tests/xmconfigdata/test-no-source-cdrom.cfg        |   12 +-
 tests/xmconfigdata/test-pci-devs.cfg               |   12 +-
 28 files changed, 1326 insertions(+), 1005 deletions(-)

This patches try to refactor the code for the xen-xm parser since 
much of the code can be reused when writing the xen-xl parser.

changes since Prepost
   I have finished refactoring all the code
   Fixed numerous memory leaks
   I have also changed the layout of the tests since they depend
   on the layout of the code which I have changed

I would also like to hear some comment on what configs I should 
support in the new xen-xl parser.

Regards,
David

-- 
1.8.4.5




More information about the libvir-list mailing list