* SSID and CPU pool parsing in xl / libxl
@ 2014-04-25 10:20 Wei Liu
2014-04-25 10:36 ` Ian Campbell
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Wei Liu @ 2014-04-25 10:20 UTC (permalink / raw)
To: dario.faggioli, juergen.gross, dgdegra
Cc: Ian Jackson, wei.liu2, Ian Campbell, xen-devel
Hi Daniel, Dario, Juergen and others
I'm trying to overhaul some libxl infrastructure at the moment, so that
we can preserve domain configurations across save and restore. The first
step is libxl needs to be able to serialize / deserialize
configurations.
When I went through the list of xl config file options, most of the
options can be easily serialized and sent over the wire to the other
end. But SSID parsing and CPU pool ID parsing look exceptional -- they
happen in xl (toolstack) level, not libxl (library) level.
Take "init_seclabel" as an example, xl calls libxl_flask_context_to_sid
to translate a string to an SSID (which is local to host) then passes it
to libxl. If libxl serialize its data, then the receiving end only sees
the translated SSID, not the "init_seclabel". The string is actually the
relavent bit to rebuild a domain, not the SSID (because it's local to
host). The same situation applies to CPU pool ID parsing.
I plan to push the parsing down to libxl level, but I'm not sure if
there's any reason it's done in xl in the first place. Please let me
know if you have any concern.
Thanks
Wei.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: SSID and CPU pool parsing in xl / libxl
2014-04-25 10:20 SSID and CPU pool parsing in xl / libxl Wei Liu
@ 2014-04-25 10:36 ` Ian Campbell
2014-04-25 15:07 ` Daniel De Graaf
2014-04-28 5:52 ` Juergen Gross
2 siblings, 0 replies; 4+ messages in thread
From: Ian Campbell @ 2014-04-25 10:36 UTC (permalink / raw)
To: Wei Liu; +Cc: dgdegra, dario.faggioli, Ian Jackson, juergen.gross, xen-devel
On Fri, 2014-04-25 at 11:20 +0100, Wei Liu wrote:
> Hi Daniel, Dario, Juergen and others
>
> I'm trying to overhaul some libxl infrastructure at the moment, so that
> we can preserve domain configurations across save and restore. The first
> step is libxl needs to be able to serialize / deserialize
> configurations.
>
> When I went through the list of xl config file options, most of the
> options can be easily serialized and sent over the wire to the other
> end. But SSID parsing and CPU pool ID parsing look exceptional -- they
> happen in xl (toolstack) level, not libxl (library) level.
>
> Take "init_seclabel" as an example, xl calls libxl_flask_context_to_sid
> to translate a string to an SSID (which is local to host) then passes it
> to libxl. If libxl serialize its data, then the receiving end only sees
> the translated SSID, not the "init_seclabel". The string is actually the
> relavent bit to rebuild a domain, not the SSID (because it's local to
> host). The same situation applies to CPU pool ID parsing.
>
> I plan to push the parsing down to libxl level, but I'm not sure if
> there's any reason it's done in xl in the first place. Please let me
> know if you have any concern.
FWIW when I spoke to Wei about this IRL I couldn't think of/remember any
reason why this parsing was done in xl not libxl.
Ian.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: SSID and CPU pool parsing in xl / libxl
2014-04-25 10:20 SSID and CPU pool parsing in xl / libxl Wei Liu
2014-04-25 10:36 ` Ian Campbell
@ 2014-04-25 15:07 ` Daniel De Graaf
2014-04-28 5:52 ` Juergen Gross
2 siblings, 0 replies; 4+ messages in thread
From: Daniel De Graaf @ 2014-04-25 15:07 UTC (permalink / raw)
To: Wei Liu; +Cc: dario.faggioli, Ian Jackson, juergen.gross, Ian Campbell,
xen-devel
On 04/25/2014 06:20 AM, Wei Liu wrote:
> Hi Daniel, Dario, Juergen and others
>
> I'm trying to overhaul some libxl infrastructure at the moment, so that
> we can preserve domain configurations across save and restore. The first
> step is libxl needs to be able to serialize / deserialize
> configurations.
>
> When I went through the list of xl config file options, most of the
> options can be easily serialized and sent over the wire to the other
> end. But SSID parsing and CPU pool ID parsing look exceptional -- they
> happen in xl (toolstack) level, not libxl (library) level.
>
> Take "init_seclabel" as an example, xl calls libxl_flask_context_to_sid
> to translate a string to an SSID (which is local to host) then passes it
> to libxl. If libxl serialize its data, then the receiving end only sees
> the translated SSID, not the "init_seclabel". The string is actually the
> relavent bit to rebuild a domain, not the SSID (because it's local to
> host). The same situation applies to CPU pool ID parsing.
>
> I plan to push the parsing down to libxl level, but I'm not sure if
> there's any reason it's done in xl in the first place. Please let me
> know if you have any concern.
>
> Thanks
> Wei.
I agree, the label-to-sid conversion should be pushed down to the libxl
level.
--
Daniel De Graaf
National Security Agency
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: SSID and CPU pool parsing in xl / libxl
2014-04-25 10:20 SSID and CPU pool parsing in xl / libxl Wei Liu
2014-04-25 10:36 ` Ian Campbell
2014-04-25 15:07 ` Daniel De Graaf
@ 2014-04-28 5:52 ` Juergen Gross
2 siblings, 0 replies; 4+ messages in thread
From: Juergen Gross @ 2014-04-28 5:52 UTC (permalink / raw)
To: Wei Liu; +Cc: dario.faggioli, xen-devel, Ian Jackson, dgdegra, Ian Campbell
On 25.04.2014 12:20, Wei Liu wrote:
> Hi Daniel, Dario, Juergen and others
>
> I'm trying to overhaul some libxl infrastructure at the moment, so that
> we can preserve domain configurations across save and restore. The first
> step is libxl needs to be able to serialize / deserialize
> configurations.
>
> When I went through the list of xl config file options, most of the
> options can be easily serialized and sent over the wire to the other
> end. But SSID parsing and CPU pool ID parsing look exceptional -- they
> happen in xl (toolstack) level, not libxl (library) level.
>
> Take "init_seclabel" as an example, xl calls libxl_flask_context_to_sid
> to translate a string to an SSID (which is local to host) then passes it
> to libxl. If libxl serialize its data, then the receiving end only sees
> the translated SSID, not the "init_seclabel". The string is actually the
> relavent bit to rebuild a domain, not the SSID (because it's local to
> host). The same situation applies to CPU pool ID parsing.
>
> I plan to push the parsing down to libxl level, but I'm not sure if
> there's any reason it's done in xl in the first place. Please let me
> know if you have any concern.
Just go ahead. CPU pool ID parsing was only used in xl, so I put it there.
Juergen
--
Juergen Gross Principal Developer Operating Systems
PSO PM&D ES&S SWE OS6 Telephone: +49 (0) 89 62060 2932
Fujitsu e-mail: juergen.gross@ts.fujitsu.com
Mies-van-der-Rohe-Str. 8 Internet: ts.fujitsu.com
D-80807 Muenchen Company details: ts.fujitsu.com/imprint.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-04-28 5:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-25 10:20 SSID and CPU pool parsing in xl / libxl Wei Liu
2014-04-25 10:36 ` Ian Campbell
2014-04-25 15:07 ` Daniel De Graaf
2014-04-28 5:52 ` Juergen Gross
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.