
Eric Blake wrote:
On 01/09/2015 10:03 PM, Jim Fehlig wrote:
Introduce a parser/formatter for the xl config format. Since the deprecation of xm/xend, the VM config file format has diverged as new features are added to libxl. This patch adds support for parsing and formating the xl config format. It supports the existing xm config format, plus adds support for spice graphics and xl disk config syntax.
xl disk config is parsed with the help of xlu_disk_parse() from libxlutil, libxl's utility library. Although the library exists in all Xen versions supported by the libxl virt driver, only recently has the corresponding header file been included. A check for the header is done in configure.ac. If not found, xlu_disk_parse() is declared externally.
Signed-off-by: Kiarie Kahurani <davidkiarie4@gmail.com> Signed-off-by: Jim Fehlig <jfehlig@suse.com> --- configure.ac | 3 + po/POTFILES.in | 1 + src/Makefile.am | 4 +- src/libvirt_xenconfig.syms | 4 + src/xenconfig/xen_common.c | 3 +- src/xenconfig/xen_xl.c | 492 +++++++++++++++++++++++++++++++++++++++++++++ src/xenconfig/xen_xl.h | 33 +++ 7 files changed, 538 insertions(+), 2 deletions(-)
This patch fails to build on RHEL 5: http://fpaste.org/168738/84783142/
I'm able to reproduce the failures and have a fix for the next version. Regards, Jim