From: tamas.k.lengyel@gmail.com
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: Ian Campbell <Ian.Campbell@citrix.com>, xen-devel@lists.xen.org
Subject: Re: libxl config datastructures
Date: Mon, 13 Aug 2012 15:26:12 -0400 [thread overview]
Message-ID: <1344885972.2726.5.camel@Nokia-N900> (raw)
In-Reply-To: <20521.2218.8505.913476@mariner.uk.xensource.com>
[-- Attachment #1.1: Type: text/plain, Size: 1357 bytes --]
Hi Ian,
> I don't understand why you aren't happy to use just the config parser supplied in libxlu.
I'm OK with the config parser in Xlu, my problem is the conversion between XLU_Config and the datastructure the libxl domain creation functions are expecting. Right now the only way would be to duplicate the code in xl to do the transition, which I don't want to do, or by calling xl itself instead of using libxl, which I found very ugly and hack-ish.
Further problems with XLU_Config is the fact that the datastructure is transparent. It would be fine, if there were more accessor functions written for it, such that it could be saved again as a file or dumped in a char *. Also would be required the ability to change elements of a XLU_ConfigList.
Currently, the only way I was able to do this is by unmasking XLU_Config and XLU_ConfigList, and interacting with the elements directly. That way I can change the config, export it back to a file, then by forking and calling xl itself (!) I can create the VM with the modified config. It works, its a hack, I don't like it.
I would be happy to send you patches that would enable me to do the XLU_Config modifications I need to do without needing to unmask it.
As for libxl, without the datastructure conversion I won't be able
to use it and have to do the ugly fork and xl call instead..
Tamas
[-- Attachment #1.2: Type: text/html, Size: 1730 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2012-08-13 19:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-01 2:45 libxl config datastructures Tamas Lengyel
2012-08-01 3:16 ` Tamas Lengyel
2012-08-01 8:21 ` Ian Campbell
2012-08-01 10:06 ` Tamas Lengyel
2012-08-01 10:10 ` Ian Campbell
2012-08-13 14:01 ` Ian Jackson
2012-08-13 19:26 ` tamas.k.lengyel [this message]
2012-08-14 13:53 ` Ian Jackson
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=1344885972.2726.5.camel@Nokia-N900 \
--to=tamas.k.lengyel@gmail.com \
--cc=Ian.Campbell@citrix.com \
--cc=Ian.Jackson@eu.citrix.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).