From: Jim Fehlig <jfehlig@suse.com>
To: John Ferlan <jferlan@redhat.com>
Cc: libvir-list@redhat.com, Kiarie Kahurani <davidkiarie4@gmail.com>,
xen-devel@lists.xen.org
Subject: Re: [libvirt] [PATCH 10/12] Introduce support for parsing/formatting Xen xl config format
Date: Mon, 12 Jan 2015 09:41:12 -0700 [thread overview]
Message-ID: <54B3F928.70604@suse.com> (raw)
In-Reply-To: <54B3E7FA.4070003@redhat.com>
John Ferlan wrote:
> On 01/10/2015 12:03 AM, 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.
>>
>> Disk config is specified a bit differently in xl as compared to xm. In
>> xl, disk config consists of comma-separated positional parameters and
>> keyword/value pairs separated by commas. Positional parameters are
>> specified as follows
>>
>> target, format, vdev, access
>>
>> Supported keys for key=value options are
>>
>> devtype, backend, backendtype, script, direct-io-safe,
>>
>> The positional paramters can also be specified in key/value form. For
>> example the following xl disk config are equivalent
>>
>> /dev/vg/guest-volume,,hda
>> /dev/vg/guest-volume,raw,hda,rw
>> format=raw, vdev=hda, access=rw, target=/dev/vg/guest-volume
>>
>> See $xen_sources/docs/misc/xl-disk-configuration.txt for more details.
>>
>> 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(-)
>>
>>
>
> The following is just from the Coverity check... I don't have all the
> build environments that have proved to be problematic over the last week
> or so...
>
> I assume all you've done is take the generated code and use that rather
> than going through the problems as a result of attempting to generate
> the code.
>
In place of the generated code I'm using libxlutil from Xen. The
initial series copied Xen's flex parser for parsing disk config strings,
but thankfully Ian Campbell noticed this and suggested using Xen's
libxlutil instead, which is provided specifically for this purpose.
Thanks for the review. I'll address the issues you've noted in the next
version.
Regards,
Jim
next prev parent reply other threads:[~2015-01-12 16:41 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-10 5:03 [PATCH 00/12] Replace Xen xl parsing/formatting impl Jim Fehlig
2015-01-10 5:03 ` [PATCH 01/12] Revert "bootstrap.conf: add check for flex" Jim Fehlig
2015-01-10 5:03 ` [PATCH 02/12] Revert "src/Makefile: Fix parallel build after xen_xl_disk parser introduction" Jim Fehlig
2015-01-10 5:03 ` [PATCH 03/12] Revert "src/Makefile: move the new xen_xl_disk parser code at the correct place" Jim Fehlig
2015-01-10 5:03 ` [PATCH 04/12] Revert "Revert "src/Makefile.am: fix build breaker for xenconfig"" Jim Fehlig
2015-01-10 5:03 ` [PATCH 05/12] Revert "build: fix xenconfig VPATH builds" Jim Fehlig
2015-01-10 5:03 ` [PATCH 06/12] Revert "src/Makefile.am: fix build breaker for xenconfig" Jim Fehlig
2015-01-10 5:03 ` [PATCH 07/12] Revert "libxl: Add support for parsing/formating Xen XL config" Jim Fehlig
2015-01-10 5:03 ` [PATCH 08/12] Revert "tests: Tests for the xen-xl parser" Jim Fehlig
2015-01-10 5:03 ` [PATCH 09/12] Revert "src/xenconfig: Xen-xl parser" Jim Fehlig
2015-01-12 14:51 ` [libvirt] " John Ferlan
[not found] ` <54B3DF75.2000406@redhat.com>
2015-01-12 16:07 ` Eric Blake
[not found] ` <54B3F12C.1050406@redhat.com>
2015-01-12 17:46 ` Jim Fehlig
2015-01-10 5:03 ` [PATCH 10/12] Introduce support for parsing/formatting Xen xl config format Jim Fehlig
2015-01-12 15:27 ` [libvirt] " John Ferlan
2015-01-12 16:41 ` Jim Fehlig [this message]
2015-01-13 1:32 ` Jim Fehlig
2015-01-12 17:49 ` Eric Blake
2015-01-13 1:33 ` Jim Fehlig
2015-01-10 5:03 ` [PATCH 11/12] tests: Tests for the xen-xl parser Jim Fehlig
2015-01-10 5:03 ` [PATCH 12/12] libxl: Add support for parsing/formating Xen XL config Jim Fehlig
2015-01-12 15:06 ` [PATCH 00/12] Replace Xen xl parsing/formatting impl Ian Campbell
[not found] ` <1421075193.26317.95.camel@citrix.com>
2015-01-12 16:05 ` [libvirt] " Eric Blake
2015-01-12 16:23 ` Jim Fehlig
2015-01-12 16:27 ` Ian Campbell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54B3F928.70604@suse.com \
--to=jfehlig@suse.com \
--cc=davidkiarie4@gmail.com \
--cc=jferlan@redhat.com \
--cc=libvir-list@redhat.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.